Report of resources that Touch library needs

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
GiMa_1343986
Level 1
Level 1
5 questions asked First like received First reply posted

Hi,

I have an an application that requires 6 button in CDS (self) mode with a shield signal to improve water immunity.

Could you please let me know how check what is the amount of resources (flash an RAM) that this library needs?

Or, do you have a roughly indication of that (for sure it depends if the parameter are fixed or if auto calibration is enable). Thanks a lot,

BR,

Giordano

0 Likes
1 Solution
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins

Hi @GiMa_1343986,

I observe that you are using PSoC 6. PSoC 6 has a dual-core in it, CM0+ and CM4. The flash architecture is split into these two cores. Hence, all the startup/configuration files would be double when compared to PSoC 4 as PSoC 6 is dual-core.

Below are the memory consumptions for an empty application for CY8CKIT-062S2-43012:

==============================================================================

Calculating memory consumption: CY8C624ABZI-S2D44 GCC_ARM -Og

----------------------------------------------------
| Section Name | Address | Size |
----------------------------------------------------
| .cy_m0p_image | 0x10000000 | 6216 |
| .text | 0x10002000 | 13640 |
| .ARM.exidx | 0x10005548 | 8 |
| .copy.table | 0x10005550 | 24 |
| .zero.table | 0x10005568 | 8 |
| .data | 0x080022e0 | 1000 |
| .cy_sharedmem | 0x080026c8 | 8 |
| .noinit | 0x080026d0 | 148 |
| .bss | 0x08002764 | 728 |
| .heap | 0x08002a40 | 1031616 |
----------------------------------------------------

Total Internal Flash (Available) 2097152
Total Internal Flash (Utilized) 22888

Total Internal SRAM (Available) 1046528
Total Internal SRAM (Utilized with heap) 1033500

 

When compared with the empty application, the required application [6 sensors and a shield pin] is observed to have the following memory consumptions:

  • .text region would have an excess of 23.7kB
  • .data region would have an excess of 680B
  • .bss region would have an excess of 500B

Overall, the total internal flash consumption increases by 24.3kB, and internal SRAM consumption increases by 4B.

Regards,
Nikhil

View solution in original post

0 Likes
3 Replies
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins

Hi @GiMa_1343986,

I understand that you require the memory consumption of a PSoC creator project, having support for 6 sensors and a shield pin.

You may build a PSoC creator project with the device you are using, and check the memory usage during the build step.

The below picture shows the same for CY8CKIT-149 PSoC™ 4100S Plus Prototyping Kit.

ncbs_0-1645178243484.png

Regards,
Nikhil

0 Likes

Hi Nikhil,

yes, this is my needs. My target MCU will PSOC6. I start from the example of "CAPSENSE_buttom_and SLICE" available on BSP of PSOC6 dev kit CY8CKIT-062S2-43012: I remove the slider, change the 2 buttons from CDX to CSD, I add 4 more self buttons + one shield. 

I also remove the call to modustoolbox capsense tuner and to  runtime tuning, but what I obtain is little bit more:

Calculating memory consumption: CY8C624ABZI-S2D44 GCC_ARM -Og

----------------------------------------------------
| Section Name | Address | Size |
----------------------------------------------------
| .cy_m0p_image | 0x10000000 | 6224 |
| .text | 0x10002000 | 37328 |
| .ARM.exidx | 0x1000b1d0 | 8 |
| .copy.table | 0x1000b1d8 | 24 |
| .zero.table | 0x1000b1f0 | 8 |
| .data | 0x080022e0 | 1680 |
| .cy_sharedmem | 0x08002970 | 8 |
| .noinit | 0x08002978 | 148 |
| .bss | 0x08002a0c | 1228 |
| .heap | 0x08002ed8 | 1030440 |
----------------------------------------------------

Total Internal Flash (Available) 2097152
Total Internal Flash (Utilized) 47256

Total Internal SRAM (Available) 1046528
Total Internal SRAM (Utilized with heap) 1033504

 

47KByte is a lot of memory and also 1MByte of RAM, but for sure there  are some issue in what I see and on  configuration of my project. Can you please give me some hints?

Thanks 

Giordano

0 Likes
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins

Hi @GiMa_1343986,

I observe that you are using PSoC 6. PSoC 6 has a dual-core in it, CM0+ and CM4. The flash architecture is split into these two cores. Hence, all the startup/configuration files would be double when compared to PSoC 4 as PSoC 6 is dual-core.

Below are the memory consumptions for an empty application for CY8CKIT-062S2-43012:

==============================================================================

Calculating memory consumption: CY8C624ABZI-S2D44 GCC_ARM -Og

----------------------------------------------------
| Section Name | Address | Size |
----------------------------------------------------
| .cy_m0p_image | 0x10000000 | 6216 |
| .text | 0x10002000 | 13640 |
| .ARM.exidx | 0x10005548 | 8 |
| .copy.table | 0x10005550 | 24 |
| .zero.table | 0x10005568 | 8 |
| .data | 0x080022e0 | 1000 |
| .cy_sharedmem | 0x080026c8 | 8 |
| .noinit | 0x080026d0 | 148 |
| .bss | 0x08002764 | 728 |
| .heap | 0x08002a40 | 1031616 |
----------------------------------------------------

Total Internal Flash (Available) 2097152
Total Internal Flash (Utilized) 22888

Total Internal SRAM (Available) 1046528
Total Internal SRAM (Utilized with heap) 1033500

 

When compared with the empty application, the required application [6 sensors and a shield pin] is observed to have the following memory consumptions:

  • .text region would have an excess of 23.7kB
  • .data region would have an excess of 680B
  • .bss region would have an excess of 500B

Overall, the total internal flash consumption increases by 24.3kB, and internal SRAM consumption increases by 4B.

Regards,
Nikhil

0 Likes