Kinetis K70: Bootloader with USB?

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

Kinetis K70: Bootloader with USB?

Jump to solution
1,488 Views
arnogir
Senior Contributor II

Hello every body.

I'm looking for a Bootloader which allow to get a program (In S19 or other type file) from the USB (i.e an USB KEY) and then flash into internal flash.

I see this link,

Kinetis Bootloader|Freescale

But it seem not work for K70.

Is existing a sample?

Thank

0 Kudos
1 Solution
796 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Arno Gir:

The document in the next link by colleague Adrian Sanchez might be what you are looking for:

TWR-K70 MSD HOST Bootloader based on AN4368 source code


Regards!,
Jorge Gonzalez

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

View solution in original post

0 Kudos
8 Replies
796 Views
arnogir
Senior Contributor II

Hi

Is existing an "Add-on" to this bootlaoder to Get file on an external NandFlash (NFC) instead of USB?

0 Kudos
796 Views
arnogir
Senior Contributor II

Hi,

In waiting answer for the possible Add-on to use NandFlash, I discovers a problem with  the  current boot.

When I flash with P&E and start with It, bootloader start. But in standalone, nothing start.

I use the Flash build option (Not RAM).

Do you have an Idea?

0 Kudos
796 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Arno Gir:

Unfortunately there is not an addition to implement bootloader with a NandFlash, sorry.

As for the issue, maybe it is the project library configuration, check the next thread for the solution:

Re: MK10DX256VLK7 doesn't run standalone, just when debugging. Verified it's running from FLASH, not...

Regards!

Jorge Gonzalez

796 Views
arnogir
Senior Contributor II

Hi

I will read this topic for the Load problem.

For the NandFlash, in fact my need is to copy:

USB\image.s19 -> Internal flash

USB\resource.pbr (PEG resource file) -> External NandFlash.

This is why I asked I exist a standalone Nandflash drivers which work without MQX? (Or a simpliest extract of MQX which use Nandflash drivers?)

Thank

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

Edit:

Thank! For the standalone problem! Project librarian option was on "ewl". I set it to "ewl_noio" and all work correctly!

:smileyhappy:

Still Nandflash simple driver problem:smileyblush:

0 Kudos
796 Views
mjbcswitzerland
Specialist V

Hi

The uTasker project includes support to load firmware from NAND flash.

However NAND is not a removable source such as a memory stick so there also needs to be a method of copying the firmware there before loading to application space. The uTasker project uses Ethernet web serve as standard loading technique to NAND on the board.

Generally however I don't see the relationship between the two loading techniques.

Regards

Mark

Kinetis:http://www.utasker.com/kinetis.html

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

0 Kudos
796 Views
mjbcswitzerland
Specialist V
0 Kudos
797 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Arno Gir:

The document in the next link by colleague Adrian Sanchez might be what you are looking for:

TWR-K70 MSD HOST Bootloader based on AN4368 source code


Regards!,
Jorge Gonzalez

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

0 Kudos
796 Views
arnogir
Senior Contributor II

Hi every body.

I taken code from

TWR-K70 MSD HOST Bootloader based on AN4368 source code

It work fine. I just need to do some correction because the Boot was Max address for a K60 (512K) no for a K70 (1M)

Then I modified following:

#define MAX_FLASH_ADDRESS 0x0007FFFF

to

#define MAX_FLASH_ADDRESS 0x000FFFFF

and in main.c

uint_8 erase_flash(void) {     /* Body */     uint_8 error = FALSE;     uint_8 i;

[...]

to

uint_8 erase_flash(void) {     /* Body */     uint_8 error = FALSE;     uint_16 I;

Many thank.

0 Kudos