Page 1 of 1

Stm32 discovery board with arduino ide

Posted: Mon Oct 17, 2022 8:11 am
by fasdas44
Good days, I tried to upload my stm32f100rb discovery card to Arduino (Getting Started · stm32duino/wiki Wiki · GitHub 2) but it does not see stm32 as a port (when my card is inserted, 2 ports are visible, and when I remove my card, it is 2 ports). It shows up in the stm32 device manager, in the disk drives. When I select any port and do the blink example, I get an error

Code: Select all

sing library SrcWrapper at version 1.0.1 in folder: C:\Users\ASUS\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.3.0\libraries\SrcWrapper 
"C:\\Users\\ASUS\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\xpack-arm-none-eabi-gcc\\10.3.1-2.3/bin/arm-none-eabi-size" -A "C:\\Users\\ASUS\\AppData\\Local\\Temp\\arduino-sketch-323E9BB36788457204FCE7B42CBDA9DD/Blink.ino.elf"
Sketch uses 12064 bytes (9%) of program storage space. Maximum is 131071 bytes.
Global variables use 856 bytes (10%) of dynamic memory, leaving 7336 bytes for local variables. Maximum is 8192 bytes.
DIS_F100RB not found. Please ensure the device is correctly connected.
Failed uploading: uploading error: exit status 7
Image

any idea?

Re: Stm32 discovery board with arduino ide

Posted: Mon Oct 17, 2022 9:04 am
by fpiSTM
It seems your board does not mount mass storage device as expected. This is why you got this error, IDE search for DIS_F100RB mass storage name.
You should update the STLink firmware using the STM32CubeProgrammer. Else try to upload using SWD method.

Re: Stm32 discovery board with arduino ide

Posted: Mon Oct 17, 2022 12:50 pm
by fasdas44
fpiSTM wrote: Mon Oct 17, 2022 9:04 am It seems your board does not mount mass storage device as expected. This is why you got this error, IDE search for DIS_F100RB mass storage name.
You should update the STLink firmware using the STM32CubeProgrammer. Else try to upload using SWD method.
I don't use stlink and at first my problem card shows up in device manager only disk drives. So I can't reach my card with STM32CubeProgrammer.

not:I updated firmware from st link utility but nothing changed rn

Re: Stm32 discovery board with arduino ide

Posted: Mon Oct 17, 2022 1:53 pm
by fpiSTM
The board embed an STLink so you can try to use it.