The size of the SFlash is set based on the device you are using; If you only want to use part of the SFlash, why not just use only part of it? I'm confused why you are wanting the compiler to lie to you and say that the SFlash is smaller than it is. (SFlash is separate from code/program space)
Basically my code is already using 92% of 256kb flash. I was under the impression that SFlash is also a part of this 256kb flash. If it is not a part of this, then I don't think I can get anything out of this memory.
I am not using the entire 4K flash. I am just using like maximum 100 bytes or something in this SFlash.
If you tell me that SFlash is different, then I will update my strategy.
The Sflash is different from flash.
First approach when running short of flash is to set the build option from "Debug" to "Release" which will use some optimization.
Thanks for answering. Yes, sure.
So my flash size is 256kBytes. How much would be the SFlash size ?
And the PSoC generated code says this -->
#define CYDEV_SFLASH_BASE 0x0ffff000u
#define CYDEV_SFLASH_SIZE 0x00001000u
So What is the size of the SFLASH
1 of 1 people found this helpful