uTasker serial bootloader "bad format" on a TWR-K53N512

cancel
Showing results for 
Search instead for 
Did you mean: 

uTasker serial bootloader "bad format" on a TWR-K53N512

580 Views
Contributor I

Hi,

I'm using the uTasker serial bootloader 1.4.7 but when i try to send the file by serial, the bootloader answer  "BAD FORMAT", I followed the steps on this post How to create .s19 file from project settings to get the s19 file from the application proyect.

I'll be thankful for your help.

Regards

Labels (2)
0 Kudos
4 Replies

32 Views
Specialist V

Hello Alberto

The uTasker SREC serial loader doesn't return a message "BAD FORMAT".

It can return "SREC-error!! (Ctrl+r to reset)" or "CS-error!! (Ctrl+r to reset)" when the SREC format has an error or the checksum of the line doesn't match.

This may mean that you are sending the file to a different SW or to an incorrect interface.

So that your SREF content can be checked, please attach it to your post.

Regards

Mark

0 Kudos

32 Views
Contributor I

Hello Mark

Attached you can find the bootloader uTasker project with the configuration that i'm using, the application project and the srec file. Also some screenshots of Teraterm where shows the "BAD FORMAT" message.

I follow these posts about the uTasker configuration and the other to get the srec file on CW

uTasker Bootloader Porting Guide

S-Record Generation with gcc for ARM/Kinetis | MCU on Eclipse

Regards

Alberto

0 Kudos

32 Views
Specialist V

Hi Alberto

I see what the problem is.

You are not using the uTasker Serial SREC loader but instead you have built the uTasker project, configured with USB-CDC command line interface. You are then using its firmware loader function to send new code to it via the USB-CDC (virtual COM) interface.

This is a different technique to UART SREC loading, which requires the uTasker "Bare-Minium" loader to be installed and the new code to be sent in binary format, with an authentication header, which is described in chapter 8 of http://www.utasker.com/docs/uTasker/uTaskerV1.3_USB_Demo.PDF and the uTasker "BM" loader is described in http://www.utasker.com/docs/uTasker/uTasker_BM_Loader.pdf

To use the uTasker serial loader you need to choose the serial loader target rather than the uTaskerV1.4 target in CW. Then you can follow the serial loader guide http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF

Your SREC format is OK but needs to be linked to the application address rather than 0x00000000.

Regards

Mark

0 Kudos

32 Views
Contributor I

Thanks Mark

Let me read this docs and i'll let you know what happen

Regards

Albeto

0 Kudos