New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ox64 16Mb crashes at early init stage #92
Comments
To save others time, the incorrect data in xip-dump1 is the data from offset 0x4a40. |
@gamelaster did you find a solution for this? |
@DavidVentura sadly, nothing new. |
@dwillmore, did you mean that it's from 0x2a40 (not 0x4a40) ? At least that's what I see in the hexdump: |
Another thought: does reading the Flash after the problem has occurred with XIP still produce the original result ? |
No, reading the firmware again after crash reads OK binary without bitshift. Sadly, I didn't had time to hookup logic analyzer to the flash to check if it is also visible on the bus |
I have following test firmware: gpio_input_output_bl808_m0.bin.zip
I flashed it to Ox64. After that, I read the contents of SPI Flash, contents are OK: flash.bin.zip
(NOTE: Firmware is on 0x2000 offset)
But after execution, firmware fails and Illegal instruction exception is thrown.
So, with CK-Link, I did this:
dump binary memory ./xip-dump1.bin 0x58000000 0x58008000
The result is here: xip-dump1.bin.zip
As we can see, there is difference in 10 bytes, which can trigger invalid instruction:
(left is XIP dump, right is final binary).
After doing another dump:
dump binary memory ./xip-dump2.bin 0x58000000 0x58008000
: xip-dump2.bin.zipThe 0x2A20 offset is again correct. (ICACHE?)
I tried to switch to DIO mode, but it did not helped. This seems to be XIP issue? Or some interference?
Sadly, since I can't properly reset the chip, I can't debug this more.
The text was updated successfully, but these errors were encountered: