cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor II

Hi all,

   

The datasheet for the SPI master says that it requires 849 bytes of FLASH. However, actually seems to use 1693 bytes!

   

In fact, all of the components seem to use more FLASH than their datasheets claim. This is a problem because the components in the project are using up about 9k of a total of 16k!

   

 

   

Am I doing something wrong, or is the extra is coming from all the pins? 

   

 

   

Hugo Elias

0 Likes
Reply
6 Replies
Esteemed Contributor II

I just created a (very) small project: 2 pins, 1 SPI Master. Came up to 2882 Bytes flash. Then I deleted the SPI, set the pins to no hardware-connection and it used 280 bytes less. Did not try to initialize the module.

   

Optimization was turned on to level 5.

   

 

   

Bob

0 Likes
Reply
New Contributor II

 Woah! That means the SPI master component was using 2602 bytes !

0 Likes
Reply
Esteemed Contributor II

No, when deleting the SPI-module the amount of flash LESSENED by 280 bytes!

   

Bob

0 Likes
Reply
New Contributor II

 Oh, right, sorry. Mis-read that. So the rest must be used by the pins.

0 Likes
Reply
Esteemed Contributor II

Do not forget the bootloader! This will put all the pins, modules,clocks etc to a known state and that costs 2.5K.

   

When compiling an empty project, you'll see the amount of overhead, there are some basic functions that have to be maintained including programming of flash, which is not performed from the outside, though initialized and controlled.

   

 

   

Bob

0 Likes
Reply
Anonymous
Not applicable

Guys. Remeber that PSoC3 is not a microcontroller. It needs to be confiured first. We call it the boot code(cy_boot) that configures the device as in your topdesign. And that is the poertion that might have taken the initial 2k Flash and not the pin component.

0 Likes
Reply