07-14-2005 02:50 AM
07-14-2005 04:54 PM
07-14-2005 10:18 PM
hello P.J,
that was very helpful. couple more queries:
i understand that there is no easy way to write data to add on flash, but can we write data to system onboard Flash( the one on which code resides) ? just in a form of simple CSV files ? if that is the case, is there a way to read those files from Board using PC ?
i appreciate ur help 🙂
Thanks
Ahmed
07-15-2005 09:53 AM
07-17-2005 09:11 PM
hello PJ,
that was incredibly helpful. So that's what i understood from your email.
we can write data such as CSV files or some other format, one byte at a time to on board flash. Once filled up, we need to reset the whole flash and that will also reset the code residing on flash. Here are questions that i can think of:
1) how would i know the legitimate address on which data can be written ? Since in stand alone mode, the code also resides on same flash and with no base address discrimination scheme, its very easy to corrupt the flash.
2) will the flash write function will let us know that the write was successful ? in case of flash full or unsuccessful write operation.
Thanks for all ur help.
ahmed
07-18-2005 01:21 PM
Hi Ahmed...
Here are the answers to your questions...
1) how would i know the legitimate address on which data can be written ? Since in stand alone mode, the code also resides on same flash and with no base address discrimination scheme, its very easy to corrupt the flash.
This is true. The answer is, really, you don't know and could corrupt your flash unless you're REALLY careful. These Elemental I/O memory peeks and pokes were intended to be used to read and write registers, not program data.
2) will the flash write function will let us know that the write was successful ? in case of flash full or unsuccessful write operation.
No. There is no indication. Keep in mind that this approach is neither the intended nor recommended use of this functionality.
I would discourage you from continuing down this path unless it is absolutely your only option. I think that your very reasonable questions demonstrate just a couple of the many ways that you could make a simple mistake and crash your application by writing the wrong memory address...
Regards,
P.J.