PSoC >> PSoC Mixed-Signal Array

alager
Tester - PRO for PSoC


Reged: Aug 02 2007
Posts: 46
flash routine / linker overwritting code
      Thu May 15 2008 04:23 PM

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

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* flash routine / linker overwritting code alager Thu May 15 2008 04:23 PM
. * * Re: flash routine / linker overwritting code clydeAdministrator   Thu May 15 2008 04:51 PM
. * * Re: flash routine / linker overwritting code alager   Thu May 15 2008 04:45 PM
. * * Re: flash routine / linker overwritting code clydeAdministrator   Thu May 15 2008 04:57 PM
. * * Re: flash routine / linker overwritting code alager   Thu May 15 2008 06:04 PM
. * * Re: flash routine / linker overwritting code clydeAdministrator   Fri May 16 2008 01:09 AM
. * * Re: flash routine / linker overwritting code alager   Fri May 16 2008 11:09 AM
. * * Re: flash routine / linker overwritting code clydeAdministrator   Fri May 16 2008 05:31 PM
. * * Re: flash routine / linker overwritting code alager   Mon May 19 2008 11:53 AM

Extra information
0 registered and 0 anonymous users are browsing this forum.

Moderator:  ndouglas, Dan Henry, jtemples, jeff, Andrew L, mikerj, dave g, meisty, josh stevo 



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Thread views: 1472

Rate this thread

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5