EZPort FlexRAM buffer 16 bytes long?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

EZPort FlexRAM buffer 16 bytes long?

跳至解决方案
1,050 次查看
codetrooper
Contributor II

I had some difficulties programming the internal flash via EZPort. The program always went into boot-exception. I noticed that the problem occurred in ROMcopy.c: __copy_rom_sections_to_ram() during initialization.

Looking at the flash with the memory browser shows that the last 4 zero-bytes are missing which are checked in the mentioned function.

I played a bit around with the flashing machanism and figured out that the last chunk I write is 708 bytes long. Enlarging this value to 720 (which is a multiple of 16 bytes) works. A value between 708 and 716 results in no or strange effects.

The documenation mentioned that the size of the data must be a multiple of 8 bytes due to the buffering in the FlexRAM.

 

Is the documenation wrong at this point. I really have to understand this issue so I can be sure future programmings will work.

0 项奖励
回复
1 解答
854 次查看
codetrooper
Contributor II

My question has been answered by freescale in the meantime.

The data must be a multiple of 16bytes indeed.

The documentation is going to be updated soon.

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
855 次查看
codetrooper
Contributor II

My question has been answered by freescale in the meantime.

The data must be a multiple of 16bytes indeed.

The documentation is going to be updated soon.

 

0 项奖励
回复