Dear all,
I played around with TCM on a SAME70 device. After a while I get it to work. During my experiments I came across the point to copy function code from the internal flash to the TCM memory. According to the Application Note AN44047 from Atmel/Microchip this needs to be done after the GPNVM bits are set according to the size of TCM memory you are requesting and after enabling the TCM in the System Control Block register.
If you setup a project for a SAME70 device the thumb_crt0.s contains already the part for copying code and data to the corresponding TCM memory areas. It is covered by a ifdefine (INITIALIZE_TCM_SECTIONS) so it can be activated easily. However, the part for setting the GPNVM bits and enabling TCM is missing. For me that makes not much sense. Anyone has any suggestions?
Best Regards
Markus
I played around with TCM on a SAME70 device. After a while I get it to work. During my experiments I came across the point to copy function code from the internal flash to the TCM memory. According to the Application Note AN44047 from Atmel/Microchip this needs to be done after the GPNVM bits are set according to the size of TCM memory you are requesting and after enabling the TCM in the System Control Block register.
If you setup a project for a SAME70 device the thumb_crt0.s contains already the part for copying code and data to the corresponding TCM memory areas. It is covered by a ifdefine (INITIALIZE_TCM_SECTIONS) so it can be activated easily. However, the part for setting the GPNVM bits and enabling TCM is missing. For me that makes not much sense. Anyone has any suggestions?
Best Regards
Markus