alager
(Tester - PRO for PSoC)
Mon May 19 2008 11:53 AM
Re: flash routine / linker overwritting code

Thanks Clyde!

The macro: EEPROM_RESERVE_BLOCKS(1); Does the trick. As you state, it reserves the block, so that no code is placed in that block, and therefore not over written.

I guess what threw me off in the beginning, was that when I declared the constant variable at a specific address, the linker would move the code around so that there was code always in the same block as my constant variable.
I presume this is happening so that LJMP can be avoided within the compiler generated code.

Aaron



Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5