MCF5272C3 Evaluation Board - Flash Code Download Procedure

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCF5272C3 Evaluation Board - Flash Code Download Procedure

1,988 Views
AshwinBhamburka
Contributor I
Hello,
 
We are using the MCF5272C3 evaluation board. For the downloading the code into memory, as per the user manual, we used 'dn' command, we get the message "Downloading....." but this doesnt show any activity on the Eval board and also no indications on the dBUG interface. We have waited for around 1-2 minutes, after the downloading message appears. But this message continues to last till we give hard RESET to the board. Not sure how much time it takes for download. The file we are downloading is a '*.S19' generated through Code-warrior IDE. Also the codes we are using are the ones downloaded from the Freescale web-site, with No alternations done to it. Hope we can use it as it is for the eval board.
 
Also we tried using the command 'dl' for downloading the code into memory through Serial interface. But in this command, we are not sure where do we supply the file/code to be downloaded?
 
Using Eval board, we do get the proper Start up command prompt message, help menu on the Hyper-terminal interface, as mentioned in the User Manual. (Snap shot is pasted below)
 

Hard Reset
SDRAM Size: 4M

Copyright 1995-2001 Motorola, Inc.  All Rights Reserved.
ColdFire MCF5272 EVS Firmware v3a.1a.1a (Build 17 on May 14 2002 09:45:52)

Enter 'help' for help.

dBUG>

 
Can anyone guide us or provide us a procedure for Code download into into Flash and also for SDRAM.
 
Let us know how whether the '*.s19' file is accepatable by the dBUG interface.
Also let us know the procedure for using the BDM interface on the Eval board MCF5272C3.
 
Regards,
Ashwin.


Message Edited by Ashwin Bhamburkar on 2007-12-04 10:37 AM
Labels (1)
0 Kudos
2 Replies

295 Views
TudorS_
NXP Employee
NXP Employee
Hello.
 
Have you tried using CodeWarrior's built-in Flash Programmer? This tools enables the programming of the flash chip on the M5272C3 board via the BDM interface using a BDM probe.
0 Kudos

295 Views
AshwinBhamburka
Contributor I
Hello,
 
We are using MCF5272C3 Evaluation board.
 
We are successful in downloading code (*.s19 file) into SDRAM and code execution of the same. We did this using the dBUG serial interface. 
 
But we are unable to program FLASH using the BDM Interface. We are using the same code as used for SDRAM, as it worked fine on it. The only change we have done is in the Linker command file, now we have mapped the USER section into FLASH memory. As shown in the memory map below,

MEMORY
{
          sdram           (RWX) : ORIGIN = 0x00000000, LENGTH = 0x01000000
          vector_ram    (RWX) : ORIGIN = 0x00000000, LENGTH = 0x00000400
 
          user              (RWX) : ORIGIN = 0xFFF00000, LENGTH = 0x00100000
          mbar             (RWX) : ORIGIN = 0x10000000, LENGTH = 0x00001800
          sram             (RWX) : ORIGIN = 0x20000000, LENGTH = 0x00001000
          ext_sram       (RWX) : ORIGIN = 0x30000000, LENGTH = 0x00080000
          flash             (RWX) : ORIGIN = 0xFFE00000, LENGTH = 0x00200000
}

This USER section doesnt have any conflict with the dBUG firmware in Flash sector-0.

But we are still unable to program the Flash.

Kindly let us know if you have suggestions on how to use BDM for Flash programming. Are there any specific steps to be followed or any BDM specific code needs to be added to the system firmware.

Regards,
Ashwin.

 

 

0 Kudos