2024-06-25 10:05 AM
I'm trying to use Arduino 2.3.2 with an STM32F405 board and I configured it to use these recommended settings, but I can't open the Serial monitor for the board. It can connect to my laptop and even upload code successfully, but I can't access the ports menu and receive Serial output from the board.
I'm able to get the Ports menu to open back up if I go into the Device Manager and add additional ports, but usually my boards use COM3 or COM5, which I cannot access through the ports menu. All of the legacy hardware I install (tried the Arduino USB Serial adapter and the STMicroelectronics Virtual COM port) will only install in ports after 5. I was only able to get it working once, and that was when I was able to connect to COM5, but I don't know what happened to allow access to COM5, and it stopped working as soon as I attempted to upload a different sketch to the board.
2024-06-25 10:15 AM - edited 2024-06-25 10:17 AM
@vs13 wrote:it stopped working as soon as I attempted to upload a different sketch to the board.
So what, exactly, was the sketch that you uploaded?
Have you tried erasing it, and starting again from scratch?
@vs13 wrote:I configured it to use these recommended settings, .
That page says you have to manually put the board into bootloader mode every time you want to upload - are you doing that?
Not sure if this is really an ST problem - or something for Arduino and/or Adafruit?
https://forum.arduino.cc/c/software/ide-2-x/93
2024-06-25 10:24 AM
You'd need a loader on the board to manifest a serial port, or the code you upload would need to a USB Device.
The ROM based loader can present as a DFU Device, "STM32 BOOT LOADER" type instance, and STM32 Cube Programmer can push code in that way.
This is not an Arduino centric forum, there are others which are.
2024-06-25 10:28 AM
So what, exactly, was the sketch that you uploaded?
Have you tried erasing it, and starting again from scratch?
Here's the sketch. I've just been going through trying to figure out how to use all of the board's features, and Serial has had the biggest hang up.
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Can read Serial!");
delay(500);
}
I haven't tried erasing the sketch, but I've tried to upload separate programs and new versions of this one and none have fixed the issue.
That page says you have to manually put the board into bootloader mode every time you want to upload - are you doing that?
Yes, I am putting the board into bootloader mode every time I upload. The upload seems to be happening successfully, but I can't connect to and read the Serial output after I disconnect the wire and press the Reset button.
2024-06-25 11:12 AM
@Tesla DeLorean wrote:You'd need a loader on the board to manifest a serial port, or the code you upload would need to a USB Device.
The ROM based loader can present as a DFU Device, "STM32 BOOT LOADER" type instance, and STM32 Cube Programmer can push code in that way.
My feather board shows up as "STM32 BOOTLOADER" in my Device Manager when I connect it to my laptop, and Cube Programmmer is able to push code to the board, but I can't open Serial using the SWV.
@Tesla DeLorean wrote:This is not an Arduino centric forum, there are others which are.
I've also made this post on Arduino's forum, but I thought I would also reach out here in case my problem was actually specific to the board I am using.
2024-06-25 04:05 PM
@vs13 wrote:My feather board shows up as "STM32 BOOTLOADER" in my Device Manager .
So it's just in the bootloader - not running your app?
2024-06-25 06:32 PM
After the code is uploaded, press reset, check device manager, serial ports. In arduino change the serial port as per device manager and then open serial monitor
2024-06-26 07:07 AM - edited 2024-06-26 07:07 AM
@Andrew Neil wrote:So it's just in the bootloader - not running your app?
After I upload the code to the board, I disconnect the wire pulling B0 high and press the Reset button to start running the program. Once I disconnect the wire, it doesn't show up in my Device Manager anymore, and the Serial Monitor can't connect in any stage of this process.
2024-06-26 07:09 AM - edited 2024-06-26 07:09 AM
@Techn wrote:After the code is uploaded, press reset, check device manager, serial ports. In arduino change the serial port as per device manager and then open serial monitor
When the board is connected in bootloader mode, all of the serial ports show as disconnected (greyed out and hidden) in the Device Manager. When I disconnect bootloader mode, the board disappears from my device list and the Serial ports are still hidden and grayed out.
2024-06-26 07:12 AM
Is B0 connected to gnd via resistor else ground b0 and press reset. Can you send me the schematic of your board?