[solved] Static EEPROM Data

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
dbasnett
Posts: 125
Joined: Mon Aug 15, 2011 1:54 pm
Has thanked: 8 times
Been thanked: 11 times

[solved] Static EEPROM Data

Post by dbasnett »

Lets say I have some static data like copyright information. I know that I can write that data to the eeprom using code, but is there a way that data can be written to the eeprom during programming of the chip by PPP?
Last edited by dbasnett on Tue Oct 04, 2011 1:49 pm, edited 1 time in total.

User avatar
Steve
Matrix Staff
Posts: 3434
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: Static EEPROM Data

Post by Steve »

Please see the #pragma data technique described here:

http://www.matrixmultimedia.com/mmforum ... ata#p16442

dbasnett
Posts: 125
Joined: Mon Aug 15, 2011 1:54 pm
Has thanked: 8 times
Been thanked: 11 times

Re: Static EEPROM Data

Post by dbasnett »

I assume you meant this;

Alternatively you can place the EEPROM data into your program using the following BoostC directives.

// Initializes EEPROM with data: 0x0C 0x22 0x38 0x48 0x45 0x4C 0x4C 0x4F 0x00 0xFE 0x99
#pragma DATA _EEPROM, 12, 34, 56, "HELLO", 0xFE, 0b10011001


Where does that go? I tried adding a c code block to my application with that in it and received errors.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Static EEPROM Data

Post by Benj »

Hello,

If you click View -> Project Options.

Then tick the box that says include supplementary code.

Then click the edit supplementary code button and add the line of C code to the top supp code window.

dbasnett
Posts: 125
Joined: Mon Aug 15, 2011 1:54 pm
Has thanked: 8 times
Been thanked: 11 times

Re: Static EEPROM Data

Post by dbasnett »

Thanks.

Post Reply