AnsweredAssumed Answered

MCF51AG128 reprogramming via SPI

Question asked by Christian JARNOT on Jul 9, 2019
Latest reply on Jul 9, 2019 by vicentegomez

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

Outcomes