I have been developing for the BlackPill STM32F401 board in Arduino IDE for the past couple of months using STM32duino and it has been a easy transition from ATmega boards. Kudos to the team



I have started exploring the possibility of bare metal programming using STM32CubeIDE & STM32CubeMX. I ran a simple Blinking LED code by following this article https://daniellethurow.com/blog/2021/6/ ... 32cube-ide.
In the CubeMX, I set the PC13 pin as GPIO output and compiled the code and got a elf file as output. Since, I didn't have the ST-LINK programmer with me, I put the board in DFU mode and used the STM32CubeMXProgrammer to flash the elf file to the board.
Success !! LED blinks with a delay of 1 second. Happy that the basic setup has been completed, I wanted to flash the STM32duino program back to the board to check if things can be brought back to my usual set-up. However, the Arduino IDE fails to recognize the port and hence i'm unable to flash the STM32duino program to the board.
I am able to detect the board in DFU mode in the STM32CubeMXProgrammer utility but the same does not show up in the Arduino IDE. Further, when the program is running on the board, the Arduino IDE lists a port that belongs to the board. However, after my configuration in STM32CubeMX, the USB port is not showing up in the Arduino IDE.
I feel I have made a mistake in configuring the board properly (in STM32CubeMX) and hence I'm unable to connect to the USB port through the Arduino IDE.
Any pointers as to how to solve this would be greatly helpful.
OS : Mac OS 12.0.1
Board: STM32F401 Black Pill
Arduino : 1.8.13
Stm32duino : 2.2.0