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

I have to apologize a little on this one. I evidently did use the ROM command in an old project to work around this problem. But I couldn't find anything related in the search of this forum.

I'm just trying to store a value that I can read on power up.
Instead of using the flash read function, I took the advice of the header file and defined a variable directly to the address where my variable will be stored.

I just tried the macro EEPROM_RESERVE_BLOCKS(1), and it behaves similar to my work around. It does work, but the code is relocated to the end of flash (0xba2). I guess this isn't a big deal, but it sure wasn't expected in either case.

Aaron



Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5