sln_alexa_iot_secure_boot blhost receive-cb-file not work.

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

sln_alexa_iot_secure_boot blhost receive-cb-file not work.

ソリューションへジャンプ
993件の閲覧回数
artisty01
Contributor I

I am currently developing a product based on NXP Alexa-IOT. I am trying to enable HAB for Alexa authentication. Here is my result.
My board does not use HyperFlash used by NXP Alexa-IOT, but uses QSPI Flash. Does this matter?

 

(env) d:\Job\MX-1400\Tools\FactoryTool\Ivaldi_sln_alexa_iot\Scripts\sln_alexa_iot_secure_boot\m
anf>python prog_sec_app.py --signed-only -cf ../../sln_platforms_config/mx_1400_qspi_an_config/

Importing board_config.py from ../../sln_platforms_config/mx_1400_qspi_an_config/ folder

NOTE: Move jumper J27 from position 1 (Serial mode off) to position 0 (Serial mode on)

Establishing connection...
SUCCESS: Communication established with device.
Loading flashloader...
SUCCESS: Flashloader loaded successfully.
Jumping to flashloader entry point...
SUCCESS: Device jumped to execute flashloader.
Waiting for device to be ready for blhost...
get-property
SUCCESS: Device is ready for blhost!
Reading device unique ID...
get-property
SUCCESS: Device serial number is 0f4309d263e39b9b
File size 1225
File CRC 0x6db1a57b
File size 452
File CRC 0xbae048c8
File size 1680
File CRC 0xc46b52d7

'thing' data for records:

{'thing': {'name': '0f4309d263e39b9b', 'arn': 'arn:aws:iot:us-east-1:302971577727:thing/0f4309d
263e39b9b', 'id': '0292db8e-ff08-414c-92d7-626fdd572dac'}, 'certificate': {'arn': 'arn:aws:iot:
us-east-1:302971577727:cert/601ff8e4a469599b6337cb63c6e899f33527e4b7d38039d651dcc1113d7e6401',
'id': '601ff8e4a469599b6337cb63c6e899f33527e4b7d38039d651dcc1113d7e6401'}}

Writing memory config option block...
fill-memory
SUCCESS: Config option block loaded into RAM.
Configuring FlexSPI...
configure-memory
SUCCESS: FlexSPI configured.
Erasing flash...
flash-erase-all
SUCCESS: Flash erased.
Programming flash with certificates for this "thing"...
write-memory
SUCCESS: Programmed flash with certificates for this "thing".
Programming flash with credentials for this "thing"...
write-memory
SUCCESS: Programmed flash with credentials for this "thing".
Programming flash with root cert...
write-memory
SUCCESS: Programmed flash with certificates for this "thing".
Programming flash with app cert application A...
write-memory
SUCCESS: Programmed flash with certificates for this "thing".
Programming flash with app cert for bootloader...
write-memory
SUCCESS: Programmed flash with certificates for this "thing".
Programming FICA table...
write-memory
SUCCESS: Programmed flash with certificates for this "thing".
Programming flash with secure app file...
receive-sb-file
ERROR: Could not program secure app file!

 

It seems to be a problem only with receive-sb-file, so I tried only receive-sb-file with blhost, but it fails as the following result.

 

D:\Job\MX-1400\Sources\Bin\20220623_receive_sb\Debug>..\sdphost -u 0x1fc9,0x0135 -- write-file
0x20000000 ..\ivt_flashloader.bin
Preparing to send 102400 (0x19000) bytes to the target.
(1/1)1%Status (HAB mode) = 305411090 (0x12343412) HAB enabled.
Reponse Status = 2290649224 (0x88888888) Write File complete.

D:\Job\MX-1400\Sources\Bin\20220623_receive_sb\Debug>..\sdphost -u 0x1fc9,0x0135 -- jump-addres
s 0x20000400
Status (HAB mode) = 305411090 (0x12343412) HAB enabled.

D:\Job\MX-1400\Sources\Bin\20220623_receive_sb\Debug>timeout /t 2

1 초 기다리는 중, 계속하려면 아무 키나 누르십시오 ...

D:\Job\MX-1400\Sources\Bin\20220623_receive_sb\Debug>..\blhost -u -- get-property 0x01
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 1258422528 (0x4b020100)
Current Version = K2.1.0

D:\Job\MX-1400\Sources\Bin\20220623_receive_sb\Debug>..\blhost -u -- fill-memory 0x2000 4 0xc0
000006
Inject command 'fill-memory'
Successful generic response to command 'fill-memory'
Response status = 0 (0x0) Success.

D:\Job\MX-1400\Sources\Bin\20220623_receive_sb\Debug>..\blhost -u -- configure-memory 0x9 0x20
00
Inject command 'configure-memory'
Successful generic response to command 'configure-memory'
Response status = 0 (0x0) Success.

D:\Job\MX-1400\Sources\Bin\20220623_receive_sb\Debug>..\blhost -u -- receive-sb-file boot_sign
_image.sb
Inject command 'receive-sb-file'
Preparing to send 9972112 (0x982990) bytes to the target.
Successful generic response to command 'receive-sb-file'
(1/1) 0%WaitForSingleObject failed with error 997: Data phase write aborted by status 0x1 Failu
re.
Response status = 10004 (0x2714) No response packet from target device.
Wrote 1016 of 9972112 bytes.

ラベル(1)
0 件の賞賛
返信
1 解決策
968件の閲覧回数
artisty01
Contributor I

Thank you for your support.

Fortunately, this problem is solved by upgrading FlashLoader v2.7 to v2.8. 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
972件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

I will support your case, Could you tell me what kind of MCU you are using? Is this an evaluation board or a custom board? What is the documentation you are using? or Where are the steps you are based on?

Best regards,
Pavel

 

0 件の賞賛
返信
969件の閲覧回数
artisty01
Contributor I

Thank you for your support.

Fortunately, this problem is solved by upgrading FlashLoader v2.7 to v2.8. 

0 件の賞賛
返信