MC9S08SG32 and AN2295 bootloader

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

MC9S08SG32 and AN2295 bootloader

1,025件の閲覧回数
Witya
Contributor I

Hello everyone,

 

Currently I am developing a bootloader for this (MC9S08SG32) MCU. There is an application developed by my co-workers that runs perfectly if it is flashed directly to MCU.

 

MCU is connected via UART to serial usb connector using serializer and deserializer (serializer is next to MCU and deserializer on the board where serial usb connector is connected)

I used  S08SH .mcp (codewarrior project) and TB1RB0 platform

 

What I need bootloader to execute:

- establish UART connection between MCU and serial connector through serializer-deserializer

- make bootloader load the application to the MCU through this UART connection

- application should be running

 

What have I accomplished:

- UART connetion is stable. I set the pins needed for Rx-Tx transfer; implemented the delay, needed to set stable connection between serializer and deserializer

this took me a lot of ROM memory so I increased with the values in .prm file and set boundries in .asm file.

Result: bootloader is flashed to MCU and $ACK is visible in Tx and Rx, means UART is established and running (also there is LED that lits up when there is no link).

- Application is loaded to the MCU through this UART by serial usb connector, even though, in the beginning, it was saying that there is not enough space for .s19 file, but increasing memory worked like charm and no more notifications like this. Tx and Rx still show $ACK, which is ok if we need to reload the application

 

My problem:

the application does not run from MCU, even the very simple one that sets some unused pin to high, so it can be seen in the osciloscope.

 

any ideas why it is not running?

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

441件の閲覧回数
Witya
Contributor I

hello everyone,

 

problem is solved. had to do some memory changes...

 

 

but the application does not seem to do what it should do.

 

Is there any way to debug the application that is running through bootloader?

0 件の賞賛
返信

441件の閲覧回数
bigmac
Specialist III

Hello,

 

I notice that this thread is similar to another recent thread on the same topic, to be found here.

 

Please do not start multiple threads for a single topic.

 

Regards,

Mac

0 件の賞賛
返信