2011-04-14 10:55 AM
Internal FLASH access through DMA
2011-05-17 05:31 AM
Writing to FLASH using DMA is a pointless exercise, and not an appropriate way of programming the device. Suggest you read the application note about flash programming, and look at some of the example code.
2011-05-17 05:31 AM
Thank you Clive, but I'm not sure I've well-explained my problem. I'm not trying to strictly ''program the flash'', but I'm trying to use the internal flash as ''mass storage'' for the application, in order to avoid an external one, so reducing the product costs. I'm trying to introduce a ''DMA-based'' management of our filesystem instead of using normal access functions. Is it possible in your opinion?
Thanks a lot Luca2011-05-17 05:31 AM
The internal flash can be used for general storage, however be aware of it's erase cycle limits, blocking size and the serious stalling it causes to the CPU when code is executing from FLASH. The latter being an almost fatal problem for any process requiring low interrupt latency.
Become familiar with how to program the flash memory (read the documentation, look at the examples), and realize how that process drastically differs from a generic bus write cycle to say RAM or peripherals. It should be clear at that point why a DMA write to flash is a recipe for failure.2011-05-17 05:31 AM
Ok, thank you a lot,
L.