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.

AM335X GPMC多字节连续写出错,顺序被善意修改!



将GPMC设置为8bit模式,定义指针char *p指向该区域。同时设置为MMU_MEMTYPE_NORMAL_NON_SHAREABLE(MMU_NON_CACHEABLE, MMU_NON_CACHEABLE)。

做如下操作:

p[0x400]=12;

p[0x200]=34;

p[0x201]=56;

p[0x202]=78;

p[0x401]=90;

 

用逻辑分析仪观察,发现顺序被调整为:

p[0x400]=12;

p[0x401]=90;

p[0x200]=34;

p[0x201]=56;

p[0x202]=78;

直接导致外设无法解析命令!

实在令人无法理解!