2021-05-27 10:48 PM
Hello Community,
I want to use __no_init CHAR gPassthruMode[4] @ APP_WORKSPACE_BLOCK_START;
Here APP_WORKSPACE_BLOCK_START is the flash address.
Can anyone suggest, how can we use this.
Thanks in advance,
Hiren
Solved! Go to Solution.
2021-06-07 05:42 AM
You can, but that doesn't eliminate the limitations of flash, namely that it must be unlocked and erased before written. There is no limitation on reading it.
2021-05-28 07:22 AM
Different IDEs have different ways of doing this. Not familiar with IAR.
Another option is to just use a pointer, which is compatible across IDEs.
CHAR * gPassThruMode = (CHAR *) APP_WORKSPACE_BLOCK_START;
You'd need to ensure that space isn't being used for other things by the linker.
2021-06-07 04:20 AM
Hi @TDK ,
Thanks for the reply,
I just want to know that can we use flash address( Instead of RAM) directly for this?
Thanks,
Hiren
2021-06-07 05:42 AM
You can, but that doesn't eliminate the limitations of flash, namely that it must be unlocked and erased before written. There is no limitation on reading it.