How to use blhost to generate image with plain CRC on bootup enabled?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to use blhost to generate image with plain CRC on bootup enabled?

1,056 次查看
pcpro1789
Contributor III

The title says it all.  How can blhost be used to generate an image with the plain CRC check enabled?  We're using load to RAM, not run in place.

标签 (1)
标记 (2)
0 项奖励
回复
3 回复数

1,011 次查看
pcpro1789
Contributor III

@Gavin_Jia Do I understand correctly that to use blhost to get the image CRC, the only way requires programming the target device and reading back the information from the target device?

0 项奖励
回复

1,002 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @pcpro1789 

The CRC is added through the nxpimage(a python tool). It is unnecessary to program the image to the MCU after completion.

0 项奖励
回复

1,037 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @pcpro1789 ,

Thanks for your questions!

1. First, we need to generate an image that runs in RAM, not XIP. And convert it to S-Record type.

Gavin_Jia_0-1733825262347.png

Gavin_Jia_1-1733825328354.png

 

2. Then, we need to generate the corresponding image according to your needs. this step requires the nxpimage tool, which you are advised to modify in the graphical interface in SPT. Its corresponding command line underlying command will be shown in the log, you can record and parse it.

Gavin_Jia_2-1733825489510.png

 

3. Finally, it's time to use blhost. build the FCB, configure the memory, flash the image. and so on. Again, the underlying commands are logged in the log. After I parsed it, it is divided into the following steps:

  • blhost -t 2000 -p COM75,115200 -j -- get-property 1 0    Check connection
  • blhost -t 50281 -p COM75,115200 -j -- flash-erase-region 0x08000000 28168 9   Erase flash
  • blhost -t 5000 -p COM75,115200 -j -- fill-memory 0x0010C000 4 0xF000000F word   Setup FCB
  • blhost -t 5000 -p COM75,115200 -j -- configure-memory 9 0x0010C000   Configure memory
  • blhost -t 5000 -p COM75,115200 -j -- write-memory 0x08000600 "image_version.bin" 0  Write version
  • blhost -t 5000 -p COM75,115200 -j -- write-memory 0x08001000 "evkmimxrt685_gpio_led_output.bin" 0    Write application
 
Each command uses the blhost tool to communicate with the device and perform the required operations to write the image.

 

 

 

0 项奖励
回复