RS-485 Bootloader for Kinetis K60

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

RS-485 Bootloader for Kinetis K60

2,241 Views
drb
Contributor II

Hello,

 

I would like to develop an RS-485 bootloader for Kinetis K60. Any reference document/software to be able to help me get started on the bootloader firmware development?

 

thank you so much :smileyhappy:

0 Kudos
5 Replies

560 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

 

Check AN2295 bootloader:

 

https://community.freescale.com/message/97604#97604

 

 

Best Regards,

 

Luis

0 Kudos

560 Views
albertolubeiro
Contributor III

Hi luis,

I have checked AN2295.

I am working with K60 and CW10.2. I have copied the function "JumpToUserApplication" to my proyect in order to jump to an absolut address.

First off all, when i build the code, I get some errors and I eliminate these errors doing this:

asm static void JumpToUserApplication(_SOFT_U32BITS userStartup)

{

    /* set up stack pointer */

    LDR      r13, [r0];

    /* jump to application reset vector */

    ADD      r0,r0,#0x04;

    LDR      r0, [r0];

    BX       r0;

}

The problem is that when I pass the address to this function, it branches to a diferent address.

Can you help me?

Thanks and best regards

Hi Luis, I have just seen your response in the other thread. I´m going to test it and will tell you.

Thanks again!!

0 Kudos

560 Views
LuisCasado
NXP Employee
NXP Employee

Hi,

What is the content of R0 before the BX instruction?

Luis

0 Kudos

560 Views
mjbcswitzerland
Specialist V

Hi

 

What are the special requirements of RS485 (is it bus oriented?)

 

For UART you can look at the uTasker project's serial loader - this supports SREC loading via any UART as well as USB (and from SD cards).

 

http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF

 

There are additional enryption possibilites as discussed here: http://www.utasker.com/docs/uTasker/uTaskerSecureSREC.pdf

 

Regards

 

Mark

 

 

0 Kudos

560 Views
J2MEJediMaster
Specialist I

There are number of Freescale Kinetis-specific application notes posted https://community.freescale.com/message/102108#102108 on this board that discuss bootloader implementations. Two in particular are AN4367 and AN4368. (They're located far down the list.)

 

---Tom

0 Kudos