In R5F_MCU_0 core, i create a structure with a length of 7 (as shown below, sizeof( struct Test )=7 ). On line 20, memcpy() runs normally, But, on line 22, memcpy() causes the program to crash.
The address is in the region of shared memory between MCU and main domain. The region configuration is :
exeNeverControl=1: no instruction fetches enabled.
shareable=0: non-shared.
cacheable=FALSE: Memory region is non-cached.
How to solve this problem? In addition, when the length of the structure is 5 or 6, it runs normally.