- Problem with running Zephyr from external flash on STM32xx
Re: Problem with running Zephyr from external flash on STM32xx
toggle quoted messageShow quoted text
If you're able to go till the main function, I guess this means QSPI configuration is working correctly.
If issue happens following k_sleep call, I'd check potential syscall check issue, but on that side
a kernel expert might be more helpful than myself.
One point though, are you using same usart peripheral on console and shell ?
which has been seen on internal flash as well.
I'm trying to run zephyr using external QSPI flash on custom board with stm32h750vb cpu. I thought that it should be as easy as just changing FLASH_BASE_ADDRESS to correct value (0x90000000 for stm32x) but unfortunately that is not the case.
I have very simple bootloader sitting in internal flash that just sets up the QSPI peripheral to memory mapped mode, correct stack pointer and jumps to starting address of zephyr in external flash. There is just hello world application with shell and logging enabled. Zephyr unfortunately ends in arch_system_halt very soon - immediately when k_sleep is called from main function. I was not able yet to find the source of the problem. When the same application is linked to internal flash, everything works fine.
Can someone give me any hint, please?
Join firstname.lastname@example.org to automatically receive all group messages.