2022-09-02 10:55 AM
I Have STM32F746 Disco and i have a memory section that sould be initialized to zero.
and the aim behind this is to keep the memory content whenever the board is rest.
but unfortanlty, this section is being clear every time i restart the debuger.
the section is holding structure which is defined as the following:
PROBE_strExceptionInfoType objstrExceptionInfo __attribute__ ((section (".ramException")));
i tried the same criteria with STM32F3 and STM32F4 and it worked but it didn't work with STM32F7
the linker is attached.
Any idea?
Best Regards,
Solved! Go to Solution.
2022-09-04 05:46 PM
I suspect Google, or Programming Manual, might be enlightening if you feel curious..
STM32Cube_FW_H7_V1.8.0\Drivers\CMSIS\Core\Include\core_cm7.h
/**
\brief D-Cache Clean by address
\details Cleans D-Cache for the given address
\param[in] addr address (aligned to 32-byte boundary)
\param[in] dsize size of memory block (in number of bytes)
*/
__STATIC_INLINE void SCB_CleanDCache_by_Addr (uint32_t *addr, int32_t dsize)
/**
\brief Clean D-Cache
\details Cleans D-Cache
*/
__STATIC_INLINE void SCB_CleanDCache (void)
2022-09-04 06:28 PM
By the way, CubeH7 v1.8.0 comes with a CMSIS-Core version before this commit with critical fixes for SCB_***Cache_by_Addr() functions. ST updated those files in CubeH7 v1.9.0.
And in current CMSIS version, the SCB_***() functions have been moved to a separate file:
https://github.com/ARM-software/CMSIS_5/blob/master/CMSIS/Core/Include/cachel1_armv7.h