Forum Discussion
Altera_Forum
Honored Contributor
21 years agoRun from flash and use flash device driver?
I'm planning to store my program in flash and also store data using the flash device driver. Individually everything works: I can run out of RAM and write data to flash. If I run from flash (e.g....
Altera_Forum
Honored Contributor
21 years agoHi Andrew,
> it looks like the flash device driver is disabled if it collides with the program. This makes sense ... If you do something as simple as (trying) to read the manufacturer and device IDs, you won't be fetching instructions any longer -- you'll be trying to execute the IDs ;-) > My program determines its own end so I think I can protect myself from > overwriting the program code. Fair enough ... but that's not the problem. If you're executing code that's being fetched from the device that you're programming, a (typical) device will not be driving array data onto the data bus. It will insted be driving the write status (e.g. toggle bits, etc.). So you won't be fetching valid instructions. Regards, --Scott