cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor II

 Hi,

   

 

   

In a previous post, I belatedly realised that the pin component used 110 bytes of FLASH. It may not seem like a lot, but for a device with about 62 IO lines, that means that 41% of the FLASH is used just by the API for the pins!

   

 

   

Feature request: An option for the pin component to use less FLASH by not generating the ReadPin() function etc.

   

 

   

Hugo Elias

0 Likes
Reply
2 Replies
Esteemed Contributor II

I ran some tests and they show something different.

   

See attached project, use it as suggested with no, 4 or 2 input/output pins. If your values tend to differ from mine, try to play around with the optimization-features.

   

Some of the flash-bytes are used to define/program the control-registers for the modules at startup. To save flash, you may use the ECC-part of the memory to store these initialization data.

   

 

   

Bob

0 Likes
Reply
Esteemed Contributor II

Sorry here's the project.

   

An additional hint: the linkerr removes all unused code when allowed to do so. That reduces the code-size ether.

   

 

   

Bob

0 Likes
Reply