Normally you need to pull BOOT0 high to enter the system boot loader that would enable serial programming (e.g. with an FTDI).
On the STM32G030J6M6's I have the BOOT0 pin is, by default, turned off via the nBOOT_SEL option byte setting, and so the BOOT0 value is read from the nBOOT0 option byte ...
Search found 8 matches
- Fri Jun 03, 2022 1:51 pm
- Forum: General discussion
- Topic: STM32G030J6M6 pinout.
- Replies: 17
- Views: 8390
- Fri Feb 04, 2022 7:04 pm
- Forum: General discussion
- Topic: Blue pill and CANbus
- Replies: 18
- Views: 21596
Re: Blue pill and CANbus
I would be inclined to stick with the Adafruit Dotstar library since it compiles with no errors. That fact that it works with Roger's core makes me think there is some configuration issue that prevents it working with the 'official' core.
Which pins are you using for SPI? The official core allows ...
Which pins are you using for SPI? The official core allows ...
- Thu Feb 03, 2022 1:21 pm
- Forum: General discussion
- Topic: Blue pill and CANbus
- Replies: 18
- Views: 21596
Re: Blue pill and CANbus
Does disabling the USB peripheral in the Arduino menu system achieve the same result, rather than having to write a function to do it? Maybe you tried that and it didn't work.
I've not used Roger's core, so can't comment on the difference, but have 'ported' various Adafruit libraries for use with ...
I've not used Roger's core, so can't comment on the difference, but have 'ported' various Adafruit libraries for use with ...
- Wed Feb 02, 2022 11:05 pm
- Forum: General discussion
- Topic: Blue pill and CANbus
- Replies: 18
- Views: 21596
Re: Blue pill and CANbus
The reference manual (page 654) also references an issue related to using the USB and CAN peripherals at the same time
In low, medium-, high- and XL-density devices the USB and CAN share a dedicated 512- byte SRAM memory for data transmission and reception, and so they cannot be used concurrently ...
In low, medium-, high- and XL-density devices the USB and CAN share a dedicated 512- byte SRAM memory for data transmission and reception, and so they cannot be used concurrently ...
- Wed Feb 02, 2022 6:30 pm
- Forum: General discussion
- Topic: Blue pill and CANbus
- Replies: 18
- Views: 21596
Re: Blue pill and CANbus
You will need to change the CAN peripheral initialization code to use PB8/PB9 since, by default, the CAN peripheral and the USB peripheral share the same pins (PA11 / PA12) on the STM32F103Cx.
(More details in the datasheet / https://www.st.com/resource/en/datashee ... f103c8.pdf)
(More details in the datasheet / https://www.st.com/resource/en/datashee ... f103c8.pdf)
- Wed Oct 27, 2021 1:37 pm
- Forum: IDE's
- Topic: Does code on Arduino IDE run faster than CubeIDE?
- Replies: 9
- Views: 9698
Re: Does code on Arduino IDE run faster than CubeIDE?
Also worth checking if the ICache and DCache are enabled in the CubeIDE project - in the default CubeMX project they are are set to disabled.
- Wed Oct 27, 2021 1:07 am
- Forum: IDE's
- Topic: Does code on Arduino IDE run faster than CubeIDE?
- Replies: 9
- Views: 9698
Re: Does code on Arduino IDE run faster than CubeIDE?
My best guess would be clock related. In the Arduino setup the MCU clock source is the PLL. Looking at the parameters in ‘generic_clock.c’ I would guess that the frequency is toward the max end of the range.
Not sure what the CubeIDE does, but CubeMX projects default to the MCU clock source being ...
Not sure what the CubeIDE does, but CubeMX projects default to the MCU clock source being ...
- Mon Oct 25, 2021 11:44 pm
- Forum: IDE's
- Topic: Does code on Arduino IDE run faster than CubeIDE?
- Replies: 9
- Views: 9698
Re: Does code on Arduino IDE run faster than CubeIDE?
Looks like the CubeIDE has an option setting to turn on the FPU in:
Project properties -> C/C++ Build -> Settings -> Tool Settings -> MCU Settings
per: https://community.st.com/s/question/0D50X0000AqtFO5/how-to-turn-on-fpu-in-the-new-stm32cubeide
I've not tried it myself (use VSC / PlatformIO ...
Project properties -> C/C++ Build -> Settings -> Tool Settings -> MCU Settings
per: https://community.st.com/s/question/0D50X0000AqtFO5/how-to-turn-on-fpu-in-the-new-stm32cubeide
I've not tried it myself (use VSC / PlatformIO ...