USB Serial bootloader for K20 in FlexNVM

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

USB Serial bootloader for K20 in FlexNVM

Jump to solution
2,556 Views
jehudimaes
Contributor II

I am trying to use the serial bootloader from AN2295 for a mk20dx128 using the usb port. I would like this bootloader to be in the FlexNVM part. Is there a CW10.3 project for this application note ? What changes do I need to apply to the project to get the bootloader running in FlexNVM (how to partition the FlexNVM, how to start the bootloader when there is no application in flash ?).

Thanks and kind regards,

Jehudi

Labels (1)
Tags (2)
1 Solution
1,786 Views
DavidS
NXP Employee
NXP Employee

Hi Jehudi,

The AN2295 is very good for bootloader working with I2C eeprom.

Freescale has other bootloader appnotes that work with the USB interface.

Please look at following:

AN4368

AN4370

AN4379

Or a link to all of our USB related appnotes.

Hope this helps.

Regards,

David

View solution in original post

0 Kudos
Reply
6 Replies
1,787 Views
DavidS
NXP Employee
NXP Employee

Hi Jehudi,

The AN2295 is very good for bootloader working with I2C eeprom.

Freescale has other bootloader appnotes that work with the USB interface.

Please look at following:

AN4368

AN4370

AN4379

Or a link to all of our USB related appnotes.

Hope this helps.

Regards,

David

0 Kudos
Reply
1,786 Views
jehudimaes
Contributor II

Hi David,

Thank you for your reply. I had a look at the other AN's at it seems that I should start from AN4370. I tried to compile the project for the K20 device on codewarrior 10.3 but this fails:

mingw32-make: *** No rule to make target `C:/Users/source/driver/kinetis/usb_dci_kinetis.c', needed by `Sources/driver/usb_dci_kinetis_c.obj'.

Can I use this application note on codewarrior 10.3 ?

Kind regards,

Jehudi

0 Kudos
Reply
1,786 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

Have you made a clean project before building?

Regards,

Luis

0 Kudos
Reply
1,786 Views
jehudimaes
Contributor II

Hi Luis,

Thanks for your quick reply, I did a clean project, I am still getting the same error. For some reason the project is called "Kinetis_MK60N512VMD100_dfu_bootloader", but I imported the project from the K20 directory.

Kind regards,

Jehudi

0 Kudos
Reply
1,786 Views
DavidS
NXP Employee
NXP Employee

Hi Jehudi,

I just downloaded the ZIP file from web.

Using CW10.3 (with updates via the "Help->Install New Software" online process) and pointing the workspace to the AN4370SW folder/directory.

I imported the following:

C:\Freescale\AN4370SW\Source\Device\app\dfu_bootloader\cw10\kinetis_k20

I then did a clean and build successfully.

The name is just a name as the initial port was to the K60 and the naming was not changed for each additional port.

Hope this helps.

Regards,

David

0 Kudos
Reply
1,786 Views
jehudimaes
Contributor II

Hi David,

Thanks for your reply, the trick was to point the workspace to the AN4370SW folder, and then importing. Now the project compiles.

Thanks,

Jehudi