[sdiy] self-modifying code was: Re: My latest project

Neil Johnson neil.johnson97 at ntlworld.com
Thu Feb 18 12:33:31 CET 2010


Hi,

Antti Huovilainen wrote: 
> cheater cheater wrote:
> > Out of curiosity: how difficult is it to keep program data in RAM?
> 
> Impossible. Most microcontrollers can only execute from flash rom.
> You could write to flash, but it takes time (milliseconds per block 
> often) and the flash can only handle 10k - 100k write cycles typically.

ARM7 based microcontrollers from NXP can execute from internal SRAM.  Although you are limited in size - e.g., LPC2148 (I'm currently using) has 512kB FLASH, 40kB SRAM.  But its enough for debugging drivers and core chunks of functionality.

Neil
--
http://www.njohnson.co.uk




More information about the Synth-diy mailing list