MCF51AG128 reprogramming via SPI

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

MCF51AG128 reprogramming via SPI

625 Views
christian_jarno
Contributor I

Hi,

I would like to reprogramming the MCU MCF51AG128 via SPI. Actually i use the BDM Port but in my application the SPI bus is only available for reprogramming the MCU.

Is there a sofware for programming via serial port SPI.

If i need to make a software, do you known the sequence for programming via SPI?

For exemple :

- Enable/configure SPI port in the first programme via BDM port then you can communicate via SPI

- Reset MCU (through software or hardware ?)

- Change some registers in Flash memory  (clock between 150 kHz and 200kHz, protection...)

- erase Memory

- Program ( transfert .elf file...)

- another reset ?

...

thanks in advance,

Christian

0 Kudos
1 Reply

532 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi 

Unfortunately, there is not a sample code for a bootloader using the SPI port, but you can use the same concept of a bootloader described on the application note AN2295  Serial bootloader, also please check the AN3748 and AN4379

I hope this will help you.

0 Kudos