Hi @Amit_Jain, @yugandhar,
From the logs in flash_ntz.nn.bin, I observed the following messages:
[SPIF Err]Invalid ID
[SPIF Err]spic_init : Calibration Fail, switch back to one bit mode!
[SPIF Err]spic_config_auto_mode : Invalid Bit Mode
[MISC Err]boot_load: Crypto Init Failed!
[BOOT Err]Boot Load Err!
To help isolate the issue, could you help me by performing the following test and share the output with me?
Test 1:
Please flash the firmware I provided and check whether it works. Then share the following information with me:
- JEDEC ID
- Manufacturer
- Device ID
- Status Register 1
- Status Register 2
- Status Register 3
What changes in this firmware,
1. In user_boot.c, force the bootloader to use 1-bit SPI mode in spic_user_select. This is to help isolate whether the issue is caused by Quad I/O operation.
void spic_user_select(pspic_user_define_t pspic_user_define)
{
pspic_user_define->spic_bit_mode = SpicOneIOMode;
pspic_user_define->flash_speed = HIGH_SPEED_FLASH;
}
FW:
flash_ntz.zip (443.4 KB)
main.c that is using (No OTA),
main.zip (1.6 KB)
Test 2:
Using the same 1-bit SPI bootloader setting above, please perform OTA as usual and check whether the same bootloader error still occurs:
[SPIF Err]Invalid ID
Reason for this test
This test helps us check whether the issue is caused by:
- Quad I/O mode
- QE bit dependency
- SPIC calibration
- signal integrity on IO2/IO3
- flash state after OTA
Please share the full boot log before and after OTA.
Thank you.