EZ port programming.

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

EZ port programming.

1,660 次查看
coder
Contributor I

Hello,

 

I am using Coldfire microcontroller MCF5213 to download bootloader firmware serially(using EZ port) in to another coldfire board .

I am facing following problem:

First : I am able to  Write 256 bytes of data using PAGE_PROGRAM COMMAND and then verify it using FAST_READ COMMAND which worked fine.

When i send the next 256 Byte data using page program command it is getting programmed which i could make out when i read EZ port STATUS REGISTER ,but when i verify the sent data using FAST_READ COMMAND the data is seen corrupted.

 

Secondly:

After my first 256 byte is send and verified.when i send WRITEENABLE command to EZ port and then read the EzPort STATUS_REGISTER  it shows that the WEN(Write Enable)bit in status register is not set............................

 

 

 

Kindly Help..................I need to dump 2K bytes into the other coldfire board..................

Pls provide the example source code ............

 

Regards

Angel

标签 (1)
0 项奖励
回复
1 回复

912 次查看
RichTestardi
Senior Contributor II

Hi,

 

I actually use EzPort to program form one MCU to another as well.

 

I allow both cloning of one MCU's flash to another, as well as downloading of an S19 file into one MCU (via UART, USB CDC/ACM, Ethernet, or even 2.4GHz wireless...) to program the other.

 

You can see all the code that does this in the skeleton project at the bottom of this page: http://www.cpustick.com/downloads.htm

 

The bulk of the work is in sources/clone.c, sources/flash.c, and sources/qspi.c.

 

You probably want the 1.72 bits that work on the 5211 -- just follow the MCF5211 #if's.

 

Or if you just want to use one MCU as a gateway to flash another, you could just load up StickOS on one MCU and use the "download" command interactively (and then paste in the S19 file) to flash the other MCU...

 

-- Rich

0 项奖励
回复