2025-02-06 05:46 AM
Using STM32CubeIDE 1.17.0, STM32CubeMX 6.13.0, MCU is STM32WB09KEV6TR
.ioc file attached
Hello,
I am trying to write code for a PCB with an STM32WB09KEV6TR. I am very new to STM development. Before going any further in our project, I am simply trying to drive a GPIO high / low through code and observe the changes on a multimeter to ensure that there are no issues. However, it doesn't seem like my code is executing. I am programming the chip through STM32CubeProgrammer and I have verified that the flash memory matches the hex file I am flashing, but nothing is happening. I am driving the pin low in my while loop and I cannot observe the drop on a multimeter. I have tried many troubleshooting options such as using other STlink programmers, cords, restarting the MCU, etc. Any help here would be really helpful. It is also worth noting that I am not able to debug through the CubeIDE, as I get this error: "Error message from debugger back end: Error finishing flash operation Failed to execute MI command: (my elf file)". My while loop in my main looks like this:
while (1)
{
HAL_GPIO_WritePin(test_GPIO_Port, test_Pin, GPIO_PIN_RESET);
/* USER CODE END WHILE */
MX_APPE_Process();
/* USER CODE BEGIN 3 */
}
2025-02-06 08:46 AM
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.