Search found 8 matches

by djix123
Fri Jun 03, 2022 1:51 pm
Forum: General discussion
Topic: STM32G030J6M6 pinout.
Replies: 17
Views: 4167

Re: STM32G030J6M6 pinout.

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 sett...
by djix123
Fri Feb 04, 2022 7:04 pm
Forum: General discussion
Topic: Blue pill and CANbus
Replies: 18
Views: 12341

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 yo...
by djix123
Thu Feb 03, 2022 1:21 pm
Forum: General discussion
Topic: Blue pill and CANbus
Replies: 18
Views: 12341

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 ot...
by djix123
Wed Feb 02, 2022 11:05 pm
Forum: General discussion
Topic: Blue pill and CANbus
Replies: 18
Views: 12341

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 (t...
by djix123
Wed Feb 02, 2022 6:30 pm
Forum: General discussion
Topic: Blue pill and CANbus
Replies: 18
Views: 12341

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)
by djix123
Wed Oct 27, 2021 1:37 pm
Forum: IDE's
Topic: Does code on Arduino IDE run faster than CubeIDE?
Replies: 9
Views: 5931

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.
by djix123
Wed Oct 27, 2021 1:07 am
Forum: IDE's
Topic: Does code on Arduino IDE run faster than CubeIDE?
Replies: 9
Views: 5931

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 th...
by djix123
Mon Oct 25, 2021 11:44 pm
Forum: IDE's
Topic: Does code on Arduino IDE run faster than CubeIDE?
Replies: 9
Views: 5931

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). [As ...

Go to advanced search