MCF51AG128 reprogramming via SPI

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

MCF51AG128 reprogramming via SPI

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

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