Kinetis Boot Loader for SREC UART, SD Card and USB-MSD loading

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

Kinetis Boot Loader for SREC UART, SD Card and USB-MSD loading

66,543件の閲覧回数
mjbcswitzerland
Specialist V

Hi All

There has always been a high demand for boot loader solutions and the uTasker project includes a number of these which have proven to be quite popular, even for use with applications from different sources.

The demands as to how the loader operates are quite varied and so a flexible loader has been put together which allows the following modes of boot loader operation in one single loader:

- UART S-REC loading at 115200 Baud

- SD Card loading (a new software is copied to an SD card and inserted)

- USB-MSD (the board apears as a disk drive and the software can be copied)

This allows all of the three possibilites to be used in a compatible manner. The boot loader size (with all modes enabled together) is about 25k. If some modes are not required they can be mixed as necessary in the project and so much smaller Flash size needed.

For K60 Tower Kit users there is a package at µTasker Test Software and Demos which allows it to be used immediately for any application up to 130k in size. The loader is documented at http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF and there is also a video showing its flexible operation at Kinetis K60 Tower Kit - Flexible Boot Loader - YouTube

Note that the complete package also supports encryption (to allow code distribution without reverse enginering possibility), USB-DFU, HS-USB and Ethernet loader (Web Server based - about 18k Flash) for chips with Ethernet.

Regards

Mark

ラベル(2)
148 返答(返信)

16,035件の閲覧回数
luishs
Senior Contributor I

Thank you Mark.


I have download from your Github, and do not know exactly where is the source code or example to do the bootloader with SD card for a Kinetis MK66.

May you help me please ?, I work with KDS, also with Eclipse and with Teensy 3.6/Arduino.


Kind Regards 

0 件の賞賛
返信

16,035件の閲覧回数
laibarashid
Contributor I

Hi Mark

I am confused and want your help , when i build my project using KDS ,

there was a .bin file in

application>uTaskerSerialBoot>KinetisDesignStudio>uTaskerSerialLoader_FLASH

, Now my point is that i want to bootload(standalone) my frdm k64f board,

what should be my next step, should i drag and drop that bin file to the

frdmboard(F:) ,

what exactly should i do , to get the output on teraterm like

uTasker Serial Loader

=======================

me = mass erase

bc = blank check

dc = delete code

ld = start load

go = start application

waiting for your reply Mark. I shall be very thankful, Please help.

Regards.

0 件の賞賛
返信

16,033件の閲覧回数
mjbcswitzerland
Specialist V

Hi

I have created a video to answer the questions at https://youtu.be/bilc_4Cr7eo
It shows the FRDM-K66F target being configured for UART SREC and iHEX, plus SD-Card loading.
The Binary/iHex/SREC files used are available at http://www.utasker.com/kinetis/FRDM-K66F.html to try on a FRDM-K66F board.
FRDM-K64F board is equivalent (just set the define FRDM_K64F rather than FRDM_K66F).

Attached are updated config.h and app_hw_kinetis.h files which contain the FRDM-K66F target setup for this. These are also checked in to the uTasker Open Source version on GitHb (alternatively synchronise to get them).
Supported users have these in the private developer's repository.

Regards

Mark

0 件の賞賛
返信

16,033件の閲覧回数
laibarashid
Contributor I

Hi Mark

I want to ask , after draging and droping the .bin file generated as a

result of build to the hard disk that appears from board , the tera term is

loading utasker serial loadet , but its not giving any kind of messages

regarding usb enumeration or sd card.

Other than that after choosing start load option , as we have to drag and

drop the .srec file , i don't have this file in my project. So what should

i do.

One more thing , after doing the standalone bootloading will i be able to

update the board through sd card or usb msd ( without using opensda port).

0 件の賞賛
返信

16,033件の閲覧回数
mjbcswitzerland
Specialist V

Hi

1. (usb enumeration and SD card).
It depends on your configuration. You can enable just SREC loading via UART, iHex loading via UART (or both) and add USB loading and SD card loading in parallel.
If you haven't enabled "SDCARD_SUPPORT" there will be no SD card messages.
If you haven't enabled "USB_INTERFACE" there will be no USB enumeration.

The serial loader guide gives details to configuring the various loader modes: http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF

2. The SREC to be loaded is the application that you want to load. This has to be generated by whatever IDE and project you are using.

The uTasker project includes an application that always generates the required output formats and you can also download reference application outputs from http://www.utasker.com/kinetis.html to verify the operation.

Regards

Mark

0 件の賞賛
返信

16,033件の閲覧回数
laibarashid
Contributor I

Hi Mark

I have enabled usb interface and sd card support , and it has worked ,

however the srec i want to load, I am unable to find it , the respective

folder in which the .srec has to be generated has .ld files (instead of

.srec) and the link you have mentioned has .bin files.

Regards

0 件の賞賛
返信

16,033件の閲覧回数
mjbcswitzerland
Specialist V

Hi

Which application are you using? If you are using the uTasker (BM target) application with KDS it will generate all files needed into

\Applications\uTaskerV1.4\KinetisDesignStudio\uTaskerV1.4_BM_FLASH

If you are using a different application you will need to work out how to generate an .srec output and link it to the boot loader address - see the appendix of http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF for a list of points to check to ensure compatibility.

So that you can check on the FRDM-K64F I have just built a simple project which flashes the green LED at 2.5Hz using the uTasker OS via a uTasker task. In parallel it also runs FreeRTOS to flash the red LED at 0.7Hz via a FreeRTOS task. I have attached the output that you can load to the FRDM-K64F using the three loaders that you have installed in order to verify operation (linked to 0x8080 to match the default serial loader address)

- uTaskerV1.4.12_FRDM-K64F_BLINKY_PLUS_FreeRTOS_Flash_BM.bin can be dragged and dropped onto the UPLOAD disk (USB-MSD)
- uTaskerV1.4.12_FRDM-K64F_BLINKY_PLUS_FreeRTOS_Flash_BM.srec can be loaded via the UART
- software.bin can be copied to the root directory of the SD card

Regards

Mark

0 件の賞賛
返信

16,033件の閲覧回数
laibarashid
Contributor I

Hi Mark

Mark i want to know if i enable "ETH_INTERFACE" in the configuration

settings.How can it be advantageous and what will be its services.

Regards

0 件の賞賛
返信

16,033件の閲覧回数
mjbcswitzerland
Specialist V

Laiba

If the Ethernet loader is enabled it (also) allows new firmware to be loaded remotely to the board from a Web Browser.
See the corresponding chapter in http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF for details.

Regards

Mark

0 件の賞賛
返信

16,033件の閲覧回数
laibarashid
Contributor I

Thanks Mark

0 件の賞賛
返信

16,033件の閲覧回数
laibarashid
Contributor I

Thanks for the help Mark.

Regards

0 件の賞賛
返信

16,033件の閲覧回数
laibarashid
Contributor I

Thanks alot Mark , Your help is highly appreciated. I am grateful.

Regards

0 件の賞賛
返信

16,033件の閲覧回数
laibarashid
Contributor I

Hi Mark 

i am unable to import the utasker project ; its giving the message "No Projects are found to import" although i am selecting right root directory.

0 件の賞賛
返信

16,033件の閲覧回数
mjbcswitzerland
Specialist V

Hi

Follow the guide for the IDE in question at http://www.utasker.com/kinetis/compilers.html
Assuming you are using KDS, Atollic, S32 Design Szudio, CW10.x or MCUXpresso you need to take the corresponding project files from the uTaskerV1.4 application folder [\Applications\uTaskerV1.4\"IDE name"] and copy them to the root directory and then import to Eclipse.

Choose the uTaskerSerialLoader target and build the project for whatever board/processor is needed.

Regards

Mark

0 件の賞賛
返信

16,028件の閲覧回数
laibarashid
Contributor I

Hi Mark

I have solved the issue i faced and now i have build the project through

Kinetis Design Studio , but i don't know how to debug it, please help me.

0 件の賞賛
返信

16,028件の閲覧回数
mjbcswitzerland
Specialist V

Hi

Debugging is like with any other KDS project. You need to program the *.elf file (\uTaskerSerialLoader_FLASH\uTaskerSerialLoader.elf) using a debugger configuration (depends on the debugger used) and then run/pause/step etc.

Regards

Mark

0 件の賞賛
返信

16,028件の閲覧回数
laibarashid
Contributor I

Hi Mark

I am confused and want your help , when i build my project using KDS ,

there was a .bin file in application>uTaskerSerialBoot>

KinetisDesignStudio>uTaskerSerialLoader_FLASH , Now my point is that i want

to bootload(standalone) my frdm k64f board, what should be my next step,

should i drag and drop that bin file to the frdmboard(F:) ,

what exactly should i do , to get the output on teraterm like

uTasker Serial Loader

=======================

me = mass erase

bc = blank check

dc = delete code

ld = start load

go = start application

waiting for your reply Mark. I shall be very thankful, Please help.

Regards.

On Fri, Jul 28, 2017 at 6:58 PM, laiba rashid <[email protected]>

0 件の賞賛
返信

16,028件の閲覧回数
laibarashid
Contributor I

Would you please like to send me a link , so that i will follow steps ,or

detailed stepwise description on how to debug and run that on my frdm k64f

board. I am using Kinetis Design Studio.

I am really stuck , I shall be really very grateful if you may help.

Regards.

0 件の賞賛
返信

16,028件の閲覧回数
mjbcswitzerland
Specialist V

Hi

I have nothing ready for this so you you will need to consult KDS documentation since this is a KDS question.

Should I find time at the weekend I may be able to make you a short video showing how it is done (which debugger do you use  - or which debugger firmware have you installed on the FRDM-K64F's OpenSDA interface?).

Note also that you can simply drag and drop the generated binary to the FRDM-K64F's OpenSDA USB-MSD interface to program the board. Also, you can run the project in Visual Studio and the uTasker simulator, so target level debugging is not normally needed.

Regards

Mark

0 件の賞賛
返信

16,028件の閲覧回数
laibarashid
Contributor I

Hi Mark

I will be waiting for your video. As i have been trying this for a very

long time and i am unable to do it.

Regards

0 件の賞賛
返信

16,028件の閲覧回数
laibarashid
Contributor I

Hi Mark

Thanks for the help, my problem is still not solved, i have downloaded the

zip file from the link https://github.com/uTasker/uTasker-Kinetis and i

have followed your instructions and i have copied

KinetisDesignStudio>Project_Settings to the root directory. and i have

imported the project on KDS

but now its not showing what it should show like in the video link

https://www.youtube.com/watch?v=uBbiw36Caq4 .

PLEASE help me out. I am stuck on this. I shall me very grateful.

On Fri, Jul 28, 2017 at 12:17 AM, mjbcswitzerland <[email protected]>

0 件の賞賛
返信