K64 bootloader example for MCUXpresso ?

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

K64 bootloader example for MCUXpresso ?

Jump to solution
1,394 Views
leo_thirifays
Contributor I

Hello,

I'm currently working on a bootloader for a K64 board.

I'm nearly there, the flashing seems correct but I'm stuck when I have to launch the user application I just flashed. I tried a few technics that just reset my MCU back to the beggining of the bootloader program.

I saw there was an bootloader example for KDSv3.2 but it unfortunately doesn't compile on MCUXpresso. Kinetis Bootloader for FRDM-K64

Does a MCUXpresso ready version of this bootloader (or any other one for the K64) exists so I can test it?

Thanks,

Léo

Labels (1)
0 Kudos
1 Solution
744 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Léo,

The new release of the SDK will come with a example of Flash bootloader. This new version will be release sometime during this month. 

Hope it helps!

Victor.

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

----------------------------------------------------------------------------------------------------------------------- 

View solution in original post

3 Replies
745 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Léo,

The new release of the SDK will come with a example of Flash bootloader. This new version will be release sometime during this month. 

Hope it helps!

Victor.

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

----------------------------------------------------------------------------------------------------------------------- 

744 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Léo,

The new version of the SDK is out now. When you download it please select mcu-boot in the section Add software component. 

pastedImage_2.png

Regards, 

Victor.

0 Kudos
742 Views
mjbcswitzerland
Specialist V

Hi Léo

You can use the uTasker K64 serial loader (Kboot, USB, UART, SD-Card, Memory Stick, I2C, Ethernet) as reference:
Serial Loader: http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf

It works with KDS, MCUXpresso, Codewarrior, Rowley, IAR, Keil, Green Hills, Atollic, GCC, Visual Studio.

The jump code for the K64 is :

// Allow the jump to a foreign application as if it were a reset (load SP and PC)
//
extern void start_application(unsigned long app_link_location)
{
                                                                         // cortex-M3/M4/M7 assembler code
    asm(" ldr sp, [r0,#0]");                                             // load the stack pointer value from the program's reset vector
    asm(" ldr pc, [r0,#4]");                                             // load the program counter value from the program's reset vector to cause operation to continue from there
}


and there is a guide to application compatibility in the appendix of its user's guide.

It is free open source on GitHub or there is a supported version for professionals, and operates on virtually all Kinetis parts without any porting requirements.

Regards

Mark


Kinetis: http://www.utasker.com/kinetis.html
Kinetis K64:
- http://www.utasker.com/kinetis/FRDM-K64F.html
- http://www.utasker.com/kinetis/TWR-K64F120M.html
- http://www.utasker.com/kinetis/TEENSY_3.5.html
- http://www.utasker.com/kinetis/Hexiwear-K64F.html