Pages: 1 [2]   Go Down
Author Topic: PROGMEM: real FLASH memory address access  (Read 1441 times)
0 Members and 1 Guest are viewing this topic.
Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The problem is that I'm removing the bootloader when I make the final deployment of the solution.
John's suggestion isn't to use the Arduino bootloader.  Instead it is to look at how it writes to PROGMEM.  You'll need to write your own bootloader in this case.

Any other form of coding without using the bootloader?
To write to PROGMEM?  No.  Only the bootloader sector can write to PROGMEM.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18811
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Only the Boot Loader Section is allowed to write into the Application Program Section of FLASH at run time. 

Example code in boot.h (the low-level stuff) and see how it is called in optiboot.c.
Logged


Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18811
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've merged the topics, it seems we were discussing almost exactly the same thing in two threads.
Logged


Pages: 1 [2]   Go Up
Jump to: