From: Tarek B. <tar...@gm...> - 2020-05-17 23:08:46
|
Hi Mario, >> my RPI by default boots with the CPU in 32 bit mode. >> This kind of incoherence (correct hardware specficiation but incorrect bit mode) seems to be the problem because I have forced my RPI to boot on 64 bit mode and all problems mentioned above have gone. >> If anyone knows how to tell openOCD to expect a armv8-a core on 32 bit please let me know, also if i am wrong on any assumption tell me as well. OpenOCD is capable to auto-detect the PE state and this is already proven by your log : >> Debug: 709 209423 armv8.c:713 armv8_set_cpsr(): set CPSR 0x600001da: UNRECOGNIZED mode, *AArch32 state* the mode is different than the state, and your first issue was related HYP mode. what I can tell is that AArch32 support is usable but not complete yet, as there is still some patches not yet merged : http://openocd.zylin.com/#/q/aarch64+status:open again, if you specify the target type "aarch64", this does not limit OpenOCD to AArch64 state only. in fact openocd aarch64 driver supports both PE states (AArch32 (compatibility) and AArch64) If you can test at least the change http://openocd.zylin.com/5255 and check if there is some enhancement and maybe share with us the *full log* and then we can proceed with enhancing things. Unfortunately right now I don't have a HW to test, but starting from next week, I will be able to play with an AArch64 in AArch32 state, and maybe I can help further. |