EZ port programming.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

EZ port programming.

1,661件の閲覧回数
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 返信

913件の閲覧回数
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 件の賞賛
返信