how to change the BCA data with host application?

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

how to change the BCA data with host application?

Jump to solution
845 Views
dugg
Contributor II

hello,

     the data of "crcExpectedValue" in BCA area  is different for different application bin file, so,before loading the bin file with the bootloader,how to change the BCA data?  i don't find related command in the blhost.exe.

1 Solution
621 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi du gg,

   Please use the kinetisFlashTool in the KBOOT2.0 do modify the BCA data.

   Please read Kinetis Flash Tool User's Guide.pdf for more details, this document folder:NXP_Kinetis_Bootloader_2_0_0\doc

pastedImage_1.png

   KinetisFlashTool folder:NXP_Kinetis_Bootloader_2_0_0\bin\Tools\KinetisFlashTool\win

Wish it helps you!


Have a great day,
Kerry

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

View solution in original post

0 Kudos
3 Replies
622 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi du gg,

   Please use the kinetisFlashTool in the KBOOT2.0 do modify the BCA data.

   Please read Kinetis Flash Tool User's Guide.pdf for more details, this document folder:NXP_Kinetis_Bootloader_2_0_0\doc

pastedImage_1.png

   KinetisFlashTool folder:NXP_Kinetis_Bootloader_2_0_0\bin\Tools\KinetisFlashTool\win

Wish it helps you!


Have a great day,
Kerry

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

0 Kudos
621 Views
dugg
Contributor II

thanks for your response,

there are some other questions to answer,

how to understand " The BCA resides in flash memory at offset0x3C0 from the beginning of the user application "?

does the bin file of the user's application contain the BCA data?  if so, we should put the bootloader_config.c that created 

flash tool to our application project?

0 Kudos
621 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi du gg,

    BCA are have the fixed address, you can find it from the chip's reference manual, but take care, just those chip have the ROM bootloader contains the  BCA area:

   pastedImage_1.png

     So, you can create a project which start from flash address 0, then add the BCA area.

pastedImage_2.png

pastedImage_3.png

Build it, generate the .bin file, you will build the BCA by your self.

I also attached the KDS project for BCA, just for your reference.

Another way, you also can import your application code which didn't have the BCA data before, then import it to the BCA area int the kinetisFlashTool, then config it, and save it:

pastedImage_1.png

Then, check your original code, you will find your BCA area(0X3C0) is modified.

Wish it helps you!


Have a great day,
Kerry

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