Hello NXP Support Team,
I am implementing secure boot on a custom i.MX RT1176 board and am preparing to program the SRK_HASH and SEC_CONFIG fuses. Before I do this, I need to verify that my image authentication is working correctly by capturing and analyzing the HAB status and event logs.
I have successfully signed my bootselector image using CST and the device boots in the open configuration. However, I am unsure of the practical steps to retrieve the HAB runtime information.
My current setup is as follows:
Target: i.MX RT1176 Custom Board
Boot Device: FlexSPI NOR Flash (XIP)
Image: A signed bootselector.bin placed at 0x60000000, with its CSF at 0x60010000.
Fuses: SEC_CONFIG and SRK_HASH are not yet programmed.
Tools: MCUXpresso IDE, CST 4.0.1, Custom flashloader.
My specific questions are:
Runtime Access: What is the recommended method to access the HAB API from my application code? I am aware of the HAB RVT at 0x00211C0C . and where exactly do i find a header or a rom table for such APIs.
Data Retrieval: when i use The hab_report_event() function or hab_entry() the boot fail in those .
Example Code: Could you provide a simple code snippet outlining the essential steps to:
Initialize the HAB API interface.
Retrieve and print the overall status.
Loop through and print all available events from the audit log?
Objective: My primary goal is to confirm that the authentication process finds my CSF and executes the commands. Eventually, I need to see the status change from a failure (due to missing SRK) to a success (after SRK is fused) before locking the device.
A simple code example or a pointer to the relevant section of the documentation that covers this retrieval process would be extremely helpful. (i have documentation in CST but i only lists the HAB functions ) nor does it provide any offset of any HAB API .
Thank you for your assistance.
I manage to solve the issue with the bootselector authentication and the event logs , now i have a status HAB_success when i check Bootselector(first stage bootloader) . my problem is when i try to do a POST_ROM authentication using a call to HABRVT APIs i get an event logs like this attached . i need some explanations please . (no one seems to reply)