how to change the BCA data with host application?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to change the BCA data with host application?

ソリューションへジャンプ
1,193件の閲覧回数
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 解決策
969件の閲覧回数
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 件の賞賛
返信
3 返答(返信)
970件の閲覧回数
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 件の賞賛
返信
969件の閲覧回数
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 件の賞賛
返信
969件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------