Page 1 of 1

Presentation and my first question about STM32F303RE

Posted: Sun Jan 31, 2021 7:49 pm
by aduri
Hi everyone, I'm a senior electronic engineer and Ham radio.
I like to study project around radio.

I try to test this board with arduino IDE

I charge a board STM32 core 0.1.1
This board is compatible only with 0.1.0 core version.
When I connect the usb I see a new directory named "node_f303RE" end two file txt.
I charge a blink to test and It compile but don't load te code in the board.

the error with up-load mass storage is that goes in the loop

with up-load stlink:
Unable to connect to ST-LINK!

detail.txt conteins:
Version: V2J37M27
Build: Oct 22 2020 11:30:39

and

Failt.txt:
The interface firmware FAILED to reset/halt the target MCU


bye and thanks for your help
Antonio

Re: Presentation and my first question about STM32F303RE

Posted: Mon Feb 01, 2021 5:45 am
by ag123
try connecting the reset pin or holding the reset button when you connect

Re: Presentation and my first question about STM32F303RE

Posted: Mon Feb 01, 2021 7:12 am
by fpiSTM
aduri wrote: Sun Jan 31, 2021 7:49 pm I charge a board STM32 core 0.1.1
This board is compatible only with 0.1.0 core version.
This version seems strange. :o

Re: Presentation and my first question about STM32F303RE

Posted: Tue Feb 02, 2021 4:22 pm
by aduri
I reloaded the latest version 1.9 of stm32 for arduino but I have same problem.
I try connecting the reset pin or holding the reset button when I connect USB but when I charge the code (with mass storage option) the IDE goes in a loop.

Antonio

Re: Presentation and my first question about STM32F303RE

Posted: Tue Feb 02, 2021 4:39 pm
by fpiSTM
You should try to connect with STM32CubeProgrammer.
I guess it will failed and in that case you should try to change Reset mode and try to connect again.
I think you have disable the SWD pins of the MCU that's why you can't connect with software reset mode.

Re: Presentation and my first question about STM32F303RE

Posted: Tue Feb 02, 2021 4:45 pm
by ag123
i guess i got confused as well. did you use something like this?
https://www.adafruit.com/product/2548
https://octopart.com/st-link%2Fv2-stmic ... s-20057793
that is an st-link v2 it is a jtag/swd programmer
that works well with STM32CubeProgrammer when connected with the SWD pins link up (swdio, swclk, gnd)
i'd think you can find more info about that on ST's web as well
https://www.st.com/en/development-tools ... umentation
https://www.st.com/en/development-tools ... eprog.html

one of those things you could try to find the *.bin file after you click verify or build
some links found from google search, i've not verified them
https://stackoverflow.com/questions/116 ... by-arduino
https://forum.arduino.cc/index.php?topic=512801.0
https://randomnerdtutorials.com/bin-bin ... duino-ide/
and use the programmer tool STM32CubeProgrammer to flash the bin file.
that bin file is the compiled firmware from your sketch. which can be simply installed on the mcu itself

it is only on occasions when the swd pins are disabled that pressing reset while flashing using st-link v2 may help
otherwise normally it isn't necessary to press reset while flashing as well. just make sure the SWD pins are connected

Re: Presentation and my first question about STM32F303RE

Posted: Tue Feb 02, 2021 5:12 pm
by fpiSTM
If he got "node_f303RE" then it is a Nucleo board with integrated STLink as this is the mass storage interface for flashing.
I just remember I already view this case when an user removed the IDD jumper then the MCU is not powered :D
So check if the jumper is well placed.