K26 bootloader

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

K26 bootloader

2,367 Views
lah1
Contributor I

I am using Kinetis K26 180MHz MCU and needs to make a bootloader that works over a UART, and I can see that this particular MCU comes with a "Flashloader (Preprogrammed in device flash)", and assuming this flashloader is talking to the Kinetis Bootlaoder programs delivered from NXP that may accommodate my needs. But can anybody here point me to some documentation on which requirements there may be to my HW to make this work, e.g. crystal frequencies, which pins to use for the UART etc.?

I guess the best thing would be if the flashloader SW was available as source code, in which case I could adjust it or remove the parts I do not need, e.g. the USB part. Is this source code available, and if yes, where to find it?

I would expect something like this to be present in the SDK package as an example, and some documentation has also pointed to the existence of such example, but I can not find it in the package I build for my processor, or see any "software component" when building a SDK package, that would suggest a boot/flash-loader is included. Do such an example exist for the K26?

So I am a bit lost on how to start this, and any help to point me in the right direction will be appreciated.

Thank you.

PS for clarity: I need this to work using the MCUXpresso IDE for development.

Tags (1)
0 Kudos
Reply
4 Replies

978 Views
mjbcswitzerland
Specialist V

Hi Lars

See the links below for various bootloaders for your part (K65, K66 are compatible when Ethernet is not used).

This includes KBOOT over serial as well as SREC, iHex, AN2295 developer's loader or Modbus RTU/ASCII as explained in http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf

HW interfaces are simple defines (no porting or drivers to be changed). It is supported and in case of professional requirements can also be fully configured for your final HW with guarantee in order to remove any additional development investment and risk (it has been used in many industrial products and thus has a long history of complete reliability).

Ready-to-run projects are available for KDS, MCUXpresso, Codewarrior, IAR, Keil, GCC, Rowlex Crossworks, CooCox, Greehills, S32 Design Studio, Atollic TrueStudio so there are also little limitations on the preferred environment used.

Regards

Mark


Kinetis: http://www.utasker.com/kinetis.html
Kinetis K66:
- http://www.utasker.com/kinetis/TWR-K65F180M.html
- http://www.utasker.com/kinetis/FRDM-K66F.html
- http://www.utasker.com/kinetis/TEENSY_3.6.html

0 Kudos
Reply

978 Views
lah1
Contributor I

Hi Mark

Thank you for the feedback, but I was not looking for links to a commercial product which claims that it can solve all my problems if I pay xxx$.

I am looking for help to make my own version for the "Flashloader" that is delivered with the K26 MCU, and it would seem obvious that the source code would be available in some form, perhaps even as a part of the "NXP_Kinetis_Bootloader_2_0_0" package that I already have, but need some information to be able to take full advantage off. My problem is however that I am new to NXP and MCUXpresso, and I am so far a bit lost in all the links and documentation. But I will prefer to build the knowledge required to do the bootloader functionality that I need, rather than spending time and money on some commercial solution that may or may not be what I am looking for.

And yes, I could lie and get a free  version by claiming I am a student, but that's not how I am doing business.

0 Kudos
Reply

978 Views
mjbcswitzerland
Specialist V

Lars

The loaders are available as free open source on GitHub if you don't need any support. There is also a porting guide at uTasker Bootloader Porting Guide which was written by someone using the Open Source version.

In fact a royalty-free license for a commercial project (with 3 months personal support and guarantee costs $242.50). If this is still too much for your project budget, or you are not allowed to purchase solutions and professional support, you can get a free commercial license which includes free support via this forum (limited to one product) so that you can experience the time and money that can potentially be saved with ready-made solutions.

In case you need to use Kboot V2.0.0 you need to read its documentation in NXP_Kinetis_Bootloader_2_0_0\doc and the porting guide to other processors in chapter 10 of its reference manual. The time required will depend on your experience with the chip and the tools involved, but it is generally possible. I understand that NXP has done this for the pre-installed factory code on various chips but I don't know whether they release this in any form (I think I remember a statement that they don't release production code, but I may have it mixed up and the strategies change for time to time as well). You'll need to wait for NXP to respond - or file a service request to get an official response within 24 hours.

Good luck

Regards

Mark

0 Kudos
Reply

978 Views
mjbcswitzerland
Specialist V

Hello Lars

Did you manage to get a solution to your problem in the meantime?

Regards

Mark

0 Kudos
Reply