Hi all
I am currently using an external eeprom to store data. The pic32mx allows you to save data by creating a precise area in the Flash.
Attached is an example microchip code for reading and writing in a specific area.
Is it possible to replicate it without using pointers or make a component?
PS:
Alternatively it is possible to emulate the eeprom
attached an example code
Store Rom PIC32MX
Moderator: Benj
-
- Posts: 143
- Joined: Mon Aug 20, 2018 11:04 am
- Has thanked: 42 times
- Been thanked: 41 times
- Contact:
Store Rom PIC32MX
- Attachments
-
- Eeprom_main.c
- (3.69 KiB) Downloaded 183 times
-
- nvm_basic.c
- (5.2 KiB) Downloaded 188 times
- 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: Store Rom PIC32MX
Hello,
How many individual values are you having to store? It's possible but the fact you have to erase a full page makes it a lot more tricky to do. I beleive Kersing created a similar component for PIC 16-bit devices which emulates EEPROM by using two full pages of flash and mirroring values between the pages.
It's something that's on my list but I have a big list at the moment
How many individual values are you having to store? It's possible but the fact you have to erase a full page makes it a lot more tricky to do. I beleive Kersing created a similar component for PIC 16-bit devices which emulates EEPROM by using two full pages of flash and mirroring values between the pages.
It's something that's on my list but I have a big list at the moment
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
-
- Posts: 143
- Joined: Mon Aug 20, 2018 11:04 am
- Has thanked: 42 times
- Been thanked: 41 times
- Contact:
Re: Store Rom PIC32MX
Hi Benj
For the moment I need to save 10 individual bytes.
Let's say a maximum of 32 individual bytes would be a good idea.
No hurry, since at the moment there is an external eeprom on the boards
For the moment I need to save 10 individual bytes.
Let's say a maximum of 32 individual bytes would be a good idea.
No hurry, since at the moment there is an external eeprom on the boards