How to enable the ART accelerator on STM32F76x processors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-23 11:03 AM
I'm wondering if the following is correct for using the ART flash accelerator on the STM32F7 line:
- Change linker script to use the ITCM instead of the AXIM bus for FLASH memory.
- In the startup code, enable the ART accelerator by setting the ARTEN bit of the FLASH_CR register.
- Do I need to do anything to the Flash Latency Registers or should I keep it at the recommended level for my processor clock/voltage (6ws for 200mhz @ 3.3v)
We don't program the flash from application, so is it best to use ITCM with ART or AXIM and enable caching?
- Labels:
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-23 11:09 AM
@Sylvie Boube-Politano​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-23 1:16 PM
I think I've got it now:
- Change the linker script as above to use the ITCM.
- Enable the ART (ARTEN) in the FLASH_ACR Register
- Enable the ART Prefetch Enable flag (PRFTEN) in the FLASH_ACR Register
For future people: you leave the Flash Latency set as described in the reference manual.
The second half of the dm above helped a lot, plus finding and studying the matching code at:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-23 1:51 PM
>>For future people: you leave the Flash Latency set as described in the reference manual.
Yes, because the flash array has a fixed (slow, say 35ns) speed which needs to be accommodated in CPU clock cycles, that the synchronous design also uses for the ART and FLASH interfacing logic.
Up vote any posts that you find helpful, it shows what's working..
