alager
(Tester - PRO for PSoC)
Thu May 15 2008 04:23 PM
flash routine / linker overwritting code

The linker is moving my code around based on this variable:
const BYTE EEPowerUp @ 0x0080;//0x0fc0;

Consequently I can not place my flash variables in "unused" areas of flash because no matter where I put them, other code is placed into the same block. Then when I call flash_writeBlock(), my chip gets corrupted.

The expected behavior is to find a block of flash that is not being used, and then place up to 64 bytes of storage there, and the code stays where it was.

Aaron



Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5