[sdiy] self-modifying code was: Re: My latest project
Antti Huovilainen
ajhuovil at cc.hut.fi
Thu Feb 18 11:13:59 CET 2010
On Thu, 18 Feb 2010, cheater cheater wrote:
>> dsPICs, like most other smaller microcontrollers, and flash based, and maybe
>> Harvard as well, so self-modifying code is pretty much a no-no in this
>> situation (unless you have a *LONG* time to wait for the flash sector to
>> erase before reprogramming it, not mentioning the flash wear issue).
> ah, fair enough!
> 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.
> And similarly.. how does SMC work with FPGA's and its family? Is it even
> possible?
It isn't. FPGAs load the configuration from flash/eeprom serially on
startup.
Antti
"No boom today. Boom tomorrow. There's always a boom tomorrow"
-- Lt. Cmdr. Ivanova
More information about the Synth-diy
mailing list