|
|
|||||||
|
Aaron, can you explain a little more? I'm not sure what you mean by "based on this variable". The address you've chosen for it is quite low - it's just above the vector table. It's also only one byte in size, so the flash locations around it (i.e. 0x7F and below, and 0x81 and above) are still up for grabs. If you want to reserve a block of flash so the compiler doesn't use it, you can either use the --ROM option to the compiler or you can place an array on a constant address, e.g. Code:
would reserve 64 bytes of flash at the given address. There is also a macro in <psoc.h> that will reserve a specified number of blocks at the top of flash: Code:
will reserve 1 block (64 bytes for most PSoC chips) of flash at the very end of the flash memory. The size of a block, and the total size of the flash, are already known by the compiler based on the chip selected. Clyde |