assembly - Writing to the program memory of AVR ATmega16 in runtime? -


is possible write program memory of atmel's atmega16 while runtime? i'm trying write program sort given set of numbers in program memory , have swap data need use spm(store program memory), i'm not sure can change contents of program memory while i'm running program! guess operation write must implemented in somewhere boot section of program memory cant find way this. help? thanks.

you can, , low-level system modules boot loaders (need to) write program memory.

note of avrs allow word-wise write pm, others allow replacing complete flash pages. obviously, code needs ensure it's not using word or page while reprogramming.

generally, sorting numbers in program memory sounds bad idea, though. exhaust flash cycles pretty fast, , main question remains: why don't sort before writing flash?


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -