2020-01-20 01:04 AM
Hello I just got a STM32H747I-DISCO board. I have no idea how to program it. I am using STM32Cube ide. When I use only CM4 main to led blink debugger gives error. When I write led blinking code to both CM4 main and CM7 main then this time debugger is starting fine. However, nothing happens to LED's. How can I program this board with 2 cores? Is there a relevant tutorial or a document that I can learn it? This is the led blink code:
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
HAL_GPIO_TogglePin(GPIOI, GPIO_PIN_12);
HAL_GPIO_TogglePin(GPIOI, GPIO_PIN_13);
HAL_GPIO_TogglePin(GPIOI, GPIO_PIN_14);
HAL_GPIO_TogglePin(GPIOI, GPIO_PIN_15);
HAL_Delay(1000);
/* USER CODE BEGIN 3 */
}
2020-01-23 01:46 PM
Hi
After building the project for the m4 and m7 cores, you can create a bat file. Use the following commands to flash either m7 or m4 target:
::m7
STM32_Programmer_CLI -c port=SWD mode=UR -w <path_to_m7_binary> 0x8000000
::m4
STM32_Programmer_CLI -c port=SWD mode=UR -w <path_to_m4_binary> 0x8100000 -HardRst
At the command prompt, run the bat file.
As for debugging, I recommend document AN5361.