STM32Duino core does not do well with Maple bootloader

Working libraries, libraries being ported and related hardware
User avatar
fpiSTM
Posts: 1754
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32Duino core does not do well with Maple bootloader

Post by fpiSTM »

Yes. MCU with USB non OTG requires a PU while USB OTG has internal PU anyway several board with it has an external PU.
Phono
Posts: 68
Joined: Thu Mar 19, 2020 9:32 am

Re: STM32Duino core does not do well with Maple bootloader

Post by Phono »

The fact is that this toggling was done in Roger's core, and is no more done in the STM32Duino core. So I must add the few lines above before initializing the Serial port.
User avatar
fpiSTM
Posts: 1754
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32Duino core does not do well with Maple bootloader

Post by fpiSTM »

This is done in the core Phono. As I said before. ..
User avatar
fpiSTM
Posts: 1754
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32Duino core does not do well with Maple bootloader

Post by fpiSTM »

But I just think that you talk about a discovery pin. So in your variant you have to define it.
Phono
Posts: 68
Joined: Thu Mar 19, 2020 9:32 am

Re: STM32Duino core does not do well with Maple bootloader

Post by Phono »

You are right, my board has the discovery pin. And this one is not automatically handled by the core.
ag123
Posts: 1668
Joined: Thu Dec 19, 2019 5:30 am
Answers: 25

Re: STM32Duino core does not do well with Maple bootloader

Post by ag123 »

hi Phono,
if you make a variant, you may like to contribute that to the core. i think many people has this board
i.e. the stm32f103rb from Olimex
https://www.olimex.com/Products/Duino/S ... e-hardware
it is a nice board, one of those features they replicated is they use a separate LDO for the ADC supply, that reduce noise
it has a micro-sd card slot on SPI2
and an on board lipo charger and power supply
Phono
Posts: 68
Joined: Thu Mar 19, 2020 9:32 am

Re: STM32Duino core does not do well with Maple bootloader

Post by Phono »

You are right, this is a good board especially for the applications where the CAN bus is needed.
ag123
Posts: 1668
Joined: Thu Dec 19, 2019 5:30 am
Answers: 25

Re: STM32Duino core does not do well with Maple bootloader

Post by ag123 »

the only slight dislike is the use of micro pins for swd/jtag, which requires a connecting adapter and it makes some pins that has double functions less accessible there. but the rb has quite a lot of pins, so it is normally adequate at other ports
User avatar
fpiSTM
Posts: 1754
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32Duino core does not do well with Maple bootloader

Post by fpiSTM »

Phono if you use the generic variant then define the USB disc pin:
#define USB_DISC_PIN PYn


You can use the hal_conf_extra.h or the build_opt.h to do this
stevestrong
Posts: 502
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 8
Location: Munich, Germany
Contact:

Re: STM32Duino core does not do well with Maple bootloader

Post by stevestrong »

Just for reference, the USB_DISC pin toggling is implemented here:
https://github.com/stm32duino/Arduino_C ... #L131-L152
Post Reply

Return to “Libraries & Hardware”