[solved] Static EEPROM Data
Moderator: Benj
[solved] Static EEPROM Data
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.
- 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
Please see the #pragma data technique described here:
http://www.matrixmultimedia.com/mmforum ... ata#p16442
http://www.matrixmultimedia.com/mmforum ... ata#p16442
Re: Static EEPROM Data
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.
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.
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel