PC will Read STM32 Bootloader as connected but not Proffieboard

Hey, so decided to add a few new sound fonts to my saber which I have done a few times before a couple of weeks ago. When I went to plug it in today it would not show up in devices and printers or anywhere. Port 3 (my proffieboard) was saying it is not connected. So I set it into bootloader mode and boom it shows up in devices and printers along with zadig and all that. So I unplug it and plug it back in, nothing. Any ideas on why windows will read STM32 bootloader but not Proffieboard?

sounds like it’s not installed the Driver for when the board is a Proffieboard yet.
Put it into bootloader manually, then just hit upload. Let the board program, then it will reboot as a Proffieboard again.
Hopefully Windows will wake up and install the right driver for it then.

how would i select the bootloader on Arduino? Is that where I upload from? No ports I can upload to on the bootloader.

no, just use the BOOT and RESET buttons on the board to put the board in bootloader and just hit upload.

Im sorry sorta new to this stuff, could you give a detailed walk through. Are we talking about uploading on zadig?

Nope. In Arduino.

Open ProffieOS.ino in Arduino.
Make sure your config file is defined.
Plug in the Proffieboard via USB.
Hold the BOOT button, press and release the RESET button, then release BOOT.
Go to the top left corner of the Arduino window and click the Upload button.

Alright so that worked, it uploaded to the board, but it still doesn’t appear as being connected on my pc unless its in bootloader mode

This is weird, it’s usually the opposite where the STM32 BOOTLOADER driver is overridden by another device or something, but typically the Proffieboard driver (usbser.sys) is correctly installed by Windows.
Does nothing at all pop up as connected in Devices and Printers? No CDC data or serial device?

Nothing pops up, let me try to upload my personal config to it and see if it uploads.

@NoSloppy alright, so I went to upload my own config and got this error,

demonik_config.h (83.8 KB)

c:/users/demonik’s/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/…/lib/gcc/arm-none-eabi/9.3.1/…/…/…/…/arm-none-eabi/bin/ld.exe:C:\Users\Demonik’s\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\variants\STM32L433CC-ProffieboardV2/linker_scripts/STM32L433CC_FLASH.ld:224: warning: memory region SRAM2' not declared c:/users/demonik's/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes c:/users/demonik's/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes c:/users/demonik's/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Demonik's\AppData\Local\Temp\arduino\sketches\74B4E88D3B7F5E3036ABCA5FDAD5BDB9/ProffieOS.ino.elf section .text’ will not fit in region FLASH' c:/users/demonik's/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes c:/users/demonik's/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes c:/users/demonik's/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes c:/users/demonik's/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: region FLASH’ overflowed by 9512 bytes
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

Could you help me figure out what is wrong with my config?

config too large.

There are couple of things that could be going on:

  1. you ran zadig incorrectly and installed the wrong driver for the proffieboard, making the computer unable to talk to the proffieboard serial port.
  2. The board is crashing, possibly because of a corrupt sd card (but could be something else)
  3. Something else.

For (1), the solution can be found in this video:

For (2), make sure to “eject safely” when you disconnect or program the proffieboard.