2022-11-03 04:55 AM - last edited on 2023-06-16 09:22 AM by Kevin HUBER
Hello
We are using STM32MP157A-dk1 evaluation board. To this we are writing bare metal code in SEGGER Embedded Studio.
We have written code for all three cores (A7_0,A7_1,M4). Individually we are able to debug(with limitations), For final testing we would like to debug one processor(one of the core) while other are running.
How to load code to other cores to run/simulate actual system.
We are debugging only one core but others should be in running. How to load code and put them in full run state for application testing.
Example situation: In this case STM32MP157 has two cortex A7 and one cortex M4.
We would like to debug cortex M4, while other two cores running independently.
For this We need to put boot mode pins in JTAG mode(for M4 debugging). Then Both A7 will not boot at all.
Alternatively, we put Boot mode to QSPI(any device other than JTAG) so that Both Cortex A7 are running. Also, We can activate M4.
But how to bring M4 in to JATG control? One boot mode other than JTAG has any control on chip/device/any core.
1. If boot mode JATG, both Cortex A7 will not start (no Method). Is any possibility where we can load start up code(or application) to A7 by script and then connect to M4 for debugging?
2. If boot mode is QSPI(any device other, than JTAG) Both A7 will run but no way to get M4 in to JTAG control for debugging.
regards
srikanth
2022-11-08 02:42 AM
Hi @Srikanth ,
Maybe worth to ask to Segger.
With STM32CubeIDE you are able to debug Cortex-M4 FW while Linux is running (we name it 'Production mode"), please look at https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-M4/Modify,_rebuild_and_reload_a_firmware
Regards.
2022-11-08 10:47 PM
Thank you for reply
I will check and let you know