This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: Byte alignment causes program crash during memcpy

Part Number: TDA4VM

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.