[Help] build MKV31F256VLH12 bootloader

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

[Help] build MKV31F256VLH12 bootloader

1,821 Views
nguyenhoainam24
Contributor II

I'm newbie in 31f chip, I want to build freedom bootloader for MKV31f256. I have use sample from https://www.nxp.com/support/developer-resources/software-development-tools/mcuxpresso-software-and-t... (Bootloader 2.0) and make some change for my MKV31F chip. But when compile it's fail. Anyone can help me to create and build this boot loader.

Thanks!

Labels (1)
16 Replies

1,344 Views
nguyenhoainam24
Contributor II

now I complete my project with bootloader, thanks all!

0 Kudos

1,344 Views
zsebecorandrean
Contributor I

Please download the new KSDK for FREEDOM-KV31. It has build the freedom_bootloader for you. dqfanfeedback

0 Kudos

1,344 Views
nguyenhoainam24
Contributor II

I's don't include bootloader for MKV31F256

0 Kudos

1,344 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi Nguyen,

It seems you want to build freedom bootloader on MCUXpresso. Now there is no need to do it by yourself. Please download the new KSDK for FREEDOM-KV31. It has build the freedom_bootloader for you.

Regards,

Jing

1,344 Views
mjbcswitzerland
Specialist V

Hi

There is a pre-built version here: http://www.utasker.com/kinetis/FRDM-KV31F.html

Regards

Mark

1,344 Views
nguyenhoainam24
Contributor II

I want to build by my self not download binary file.

0 Kudos

1,344 Views
mjbcswitzerland
Specialist V

Hi

If you want to build it yourself download the open source uTasker project from GITHUB and configure its serial loader [config.h] with

#define FRDM_KV31F
#define SERIAL_INTERFACE
#define KBOOT_LOADER

and build with KDS, MCUXpresso, Keil, IAR, Green Hills, CooCox, GCC make file, Rowley or simulate the KV31 in Visual Studio.

Regards

Mark

0 Kudos

1,344 Views
nguyenhoainam24
Contributor II

Thanks, but can you give me the link to download? I have download SDK 2.5 for MKV31F256xxx12, but seem it not include sample bootloader for this series. 

0 Kudos

1,344 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

You should add this component when make your own sdk. Please see the screenshot.

Untitled.png

1,344 Views
nguyenhoainam24
Contributor II

Thanks a lot. But I can not select MCU boot. it's require USB stack and my MKV31F is not available.


xxx.png

0 Kudos

1,344 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

Please select MKV31F512 or FRDM-KV31F. They have mcu-boot.

0 Kudos

1,344 Views
nguyenhoainam24
Contributor II

Almost done, but I have error when change from KV31f512 to KV31f256. It's may be not enough memory or something like this.

Capture.JPG

0 Kudos

1,344 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

There is no need to change mkv31f512 to mkv31f256. Because they are only different in flash size.

Did you replace MKV31Fxxx_feature.h and MKV31Fxxx12.h?

0 Kudos

1,344 Views
nguyenhoainam24
Contributor II

yes, i did. I have change all file in folder MKV31F25612

0 Kudos

1,344 Views
jingpan
NXP TechSupport
NXP TechSupport

There are some defined symbol need to be change in properties->C/C++build->Settings->preprocessor, like CPU_MKV31F512VLL12. Didi you modify them?

Or can you send me your project?

0 Kudos

1,344 Views
nguyenhoainam24
Contributor II

yes. I know I change all depend 512 to 256. I have update zip file. you can check it. It's successfully build. but seem some thing wrong. when I flash chip is secure.

0 Kudos