Search found 125 matches
- Fri May 21, 2021 5:09 pm
- Forum: IDE's
- Topic: Arduino IDE - Huge memory usage of STM32
- Replies: 5
- Views: 6833
Re: Arduino IDE - Huge memory usage of STM32
The important thing is not to panic. You can do a lot in 64KB. I have a project that is 1500+ lines in 17 source files. It uses Nokia LCD (SPI), EEPROM (I2C), DS3231(I2C), PWM, CLI, USB serial, and hardware serial. It compiles to just 50KB and has been running on a blue pill board for many months. A...
- Fri May 07, 2021 12:20 am
- Forum: General discussion
- Topic: Issue with STM32F1 Blue Pill and USB
- Replies: 10
- Views: 20551
Re: Issue with STM32F1 Blue Pill and USB
I'm of the opinion that for most people, the bootloader on STM32 blue pills adds an unnecessary layer of complexity/flakiness. Bootloaders tend to disable the SWD pins so you can't upload again with an ST-Link unless you move the jumpers or press the reset button at the right time. For an Arduino bo...
- Wed May 05, 2021 10:12 pm
- Forum: Maple & Maple mini etc
- Topic: Compiling problem
- Replies: 2
- Views: 6839
Re: Compiling problem
Installing directly from Github is only recommended for advanced users.
See https://github.com/stm32duino/wiki/wiki/Getting-Started and follow the steps as listed. When finished, you should have a working installation.
See https://github.com/stm32duino/wiki/wiki/Getting-Started and follow the steps as listed. When finished, you should have a working installation.
- Tue May 04, 2021 11:06 pm
- Forum: General discussion
- Topic: STM32 F407VET6 and BME280 I2C how to choose SDA and SCL pins?
- Replies: 14
- Views: 7140
Re: STM32 F407VET6 and BME280 I2C how to choose SDA and SCL pins?
Here is a nice picture of the data lines without pull-up resistors: https://electronics.stackexchange.com/q ... al-pullups. With the right pull-up, the signals are nice and square.
- Tue May 04, 2021 8:16 pm
- Forum: General discussion
- Topic: STM32 F407VET6 and BME280 I2C how to choose SDA and SCL pins?
- Replies: 14
- Views: 7140
Re: STM32 F407VET6 and BME280 I2C how to choose SDA and SCL pins?
See this post: viewtopic.php?p=2219#p2219
Also, run the i2c_scanner from the Arduino examples menu and make sure it can see your device at the right address.
Also, run the i2c_scanner from the Arduino examples menu and make sure it can see your device at the right address.
- Fri Apr 30, 2021 5:18 am
- Forum: IDE's
- Topic: STM32F103 bluepill and Arduino IDE wrong port is recognized
- Replies: 7
- Views: 5604
Re: STM32F103 bluepill and Arduino IDE wrong port is recognized
Does your IDE look anything like this? ide-fs8.png If not, you may have installed the older core based on Leaflabs. I would recommend that you reinstall your Arduino environment and use the STM32 "official" core from Github: https://github.com/stm32duino/Arduino_Core_STM32 . This newer env...
- Wed Apr 14, 2021 4:45 am
- Forum: General discussion
- Topic: Problems with the blue pill and a LCD 16x2
- Replies: 8
- Views: 5060
Re: Problems with the blue pill and a LCD 16x2
That library seems to work ok without any changes on a blue pill board.
I used PB4-PB9 to connect to the LCD display.
See attached example. It alternates the text on line1 and line2 repeatedly every time the LED blinks.
I used PB4-PB9 to connect to the LCD display.
See attached example. It alternates the text on line1 and line2 repeatedly every time the LED blinks.
- Mon Apr 12, 2021 9:50 pm
- Forum: General discussion
- Topic: Changing analogRead Voltage reference?
- Replies: 7
- Views: 4985
Re: Changing analogRead Voltage reference?
AnalogRead is arduino compatible, so it is limited to 0-1023 by default. You can change this to 12 bits, 0-4095 by adding a line or two of code to your program.
See https://github.com/stm32duino/wiki/wiki/API#analog
See https://github.com/stm32duino/wiki/wiki/API#analog
- Fri Apr 02, 2021 6:58 pm
- Forum: General discussion
- Topic: Mux errors...
- Replies: 9
- Views: 4600
Re: Mux errors...
Any recommendations for slowing this down without Delay? I'm using an interrupt routine for the DAC/SPI transfer, so maybe I could use that to send a tick. Put your scan code inside systick: void HAL_SYSTICK_Callback(void) { // hal systick gets called automatically every millisecond get_buttons() }...
- Sat Mar 27, 2021 4:28 pm
- Forum: IDE's
- Topic: Arduino IDE 2.0
- Replies: 18
- Views: 12667
Re: Arduino IDE 2.0
I installed on my Mint 20 system and see the same thing. Definitions work for standard Arduino boards. For STM32, most everything is underlined but it still compiles ok. There is already an open issue on the 2.0 Github. As far as size, 1.8.13 is 581 mb, 2.0_beta4 is 808mb, so its not that much bigge...