2022-10-19 07:08 AM
2022-10-19 09:37 AM
To do so in command line:
(gdb) target remote localhost:3333
You should now be connected and be able to debug your m4 firmware using GDB
2022-11-04 03:27 AM
Getting this after running these command:
Could you suggest if I am doing something wrong!!
2022-11-09 08:21 AM
Hello,
The engineering mode is not supported in Zephyr for the stm32mp15 platform. It has been designed to work in production mode, means that the system is initialized by the Cortex-A and the cortex-M is acting as a coprocessor.
If you want to support the engineering mode, you will have first to implement the system_clock config (expecting that is sufficient).
You can have a look to stm32mp1 cube examples for guidance.
This wiki page can also help:
https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_development_guidelines
2022-11-10 12:53 AM
Hello @ArnaudP ,
Thanks for Response!!
I am debugging with Eclipse using PyOCD in engineering mode by using STLinkV2 (on STM32MP1 Dev kit).
I am able to start with debugging but when breakpoint hits into thread and it goes to SPI driver inside Zephyr and it is getting stuck there and then throws an exception.
To debug Cortex M4 in production mode what configuration is required for the same environment (Zephyr) Could u suggest.
Thanks!
2022-11-14 12:39 AM
> I am debugging with Eclipse using PyOCD in engineering mode by using STLinkV2 (on STM32MP1 Dev kit).
> I am able to start with debugging but when breakpoint hits into thread and it goes to SPI driver > inside Zephyr and it is getting stuck there and then throws an exception.
look like your SPI peripheral is not well clocked, do you configure the clock tree (SystemClock_Config()) as mentioned in my previous comment?
> To debug Cortex M4 in production mode what configuration is required for the same environment (Zephyr) Could u suggest.
No specific configuration is needed on zephyr side.
on Linux side: you should need to use the resource manager ST framework on Linux side to assign SPI to the M4,
https://wiki.st.com/stm32mpu/wiki/How_to_configure_system_resources