The bootloader with SD card

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

The bootloader with SD card

956 Views
小勇邹
Contributor II

There are two parts in my application- the bootloader part(without MQX OS)  +  the user application part(with MQX OS).

The SD card is used in my application. The new firmware is stored in the SD card.

The bootloader should get the new firmware from the SD card and copy it to the MCU.

If the bootloader does not support MQX system, is it possible to access the firmare in SD card by file address?

For example,the firmware is put in the address \Firmware\BasicUnit in the SD card.

The bootloader without MQX OS  want to get the firmware from the address in the SD card.

How should I do? Is there any example to do that?

The hardware is K64 and the OS is Freescale_MQX_4_1_TWRK64F120M.

0 Kudos
Reply
2 Replies

780 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Robin:

We have a bootloader based on USB stack, it uses the FAT file system-supporting module to read an image file and then uses the bootloader driver to program the image file to the flash memory of the device. So it is possible to access the image file in USB stick.

pastedImage_0.png

For details, please refer to the document

http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4368.pdf

You also can download the associated source code AN4368 from Freescale website.  The demo is based on K60, not K64

For SD card support, we do not have an existing demo, I think you need to add sd card support into this bootloader package.

Have a nice day,
Daniel

0 Kudos
Reply

780 Views
小勇邹
Contributor II

Dear Daniel,

Thank you very much for your help.

Does the SD card example in C:\Freescale\MQX_KSDK_1.0.0\demos\sdhc_sdcard\iar\twrk64f120m work without MQX? 

I think there are two solutions for me.

Solution 1:

Let the boot loader work without MFS.

Is it possible to put the firmware to specific address (for example:0xffff000) in the SD card by the user application with MQX OS and get the firmware from specific address(for example:0xffff000)  in the SD card by the boot loader without MQX OS? I just want to get the firmware from the SD card in
specific address and do not care about the file address or file format.

Solution 2:

Let the boot loader work with  MFS.

I want to modify the source code based on the example C:\Freescale\MQX_KSDK_1.0.0\demos\sdhc_sdcard\iar\twrk64f120m.
Is it possible to add the mfs module to the example?

Best regards.

Robin Zou.

0 Kudos
Reply