Search found 125 matches
- Thu Oct 29, 2020 6:59 pm
- Forum: General discussion
- Topic: ST link not showing in upload method
- Replies: 3
- Views: 2842
Re: ST link not showing in upload method
It's there - STM32CubeProgrammer (SWD) = ST-Link.
- Sun Oct 25, 2020 11:31 pm
- Forum: General discussion
- Topic: i2c MPR121, Need help trouble shooting whats wrong...
- Replies: 23
- Views: 12054
Re: i2c MPR121, Need help trouble shooting whats wrong...
If you run the I2C scanner program in a loop, you should see a good bit of activity on SCL and SDA with your scope. Could the problem be the 10K resistor in series with the ADDR pin? The data sheet says to connect ADDR to VDD, VSS, SDA, or SDL but I didn't see any mention about a series resistor. Th...
- Sun Oct 25, 2020 8:48 pm
- Forum: General discussion
- Topic: i2c MPR121, Need help trouble shooting whats wrong...
- Replies: 23
- Views: 12054
Re: i2c MPR121, Need help trouble shooting whats wrong...
See https://github.com/stm32duino/wiki/wiki/API#i2C . ... Redefine I2C pins Because they are defined as WEAK, you can redefine them in your sketch file instead of changing values in the PeripheralPins.c file. You can also enable/disable the internal pull-ups with the second parameter of STM_PIN_DATA...
- Wed Oct 21, 2020 8:51 pm
- Forum: STM32F1 based boards
- Topic: Serial over CDC data uploads but doesn't print any data
- Replies: 13
- Views: 19877
Re: Serial over CDC data uploads but doesn't print any data
All of those connectors and no SWD pins? I have a commercial STM32F103VET6 board that I program using either a ST-Link dongle or a USB/Serial adapter connected to USART1. I never could get any bootloader stable enough to be useful. The ST-Link is the way to go. The code uploads in seconds and no foo...
- Sat Sep 26, 2020 5:16 pm
- Forum: Off topic
- Topic: How to use STM32 boards with Arduino IDE and how fast ESP32 vs STM32 are they? (incl. surprise)
- Replies: 7
- Views: 5229
Re: How to use STM32 boards with Arduino IDE and how fast ESP32 vs STM32 are they? (incl. surprise)
I saw this video when it appeared on my RSS feed last Sunday. It was a pretty good overview. Note that 8-bit uCs are not dead and are an excellent choice for some projects. True, I have a tube of ATTiny85s that are quite useful for small projects. It is surprising at the amount of code that will fit...
- Sat Sep 26, 2020 5:05 pm
- Forum: STM32F4 based boards
- Topic: STM32F407VET6 Black board
- Replies: 3
- Views: 7319
Re: STM32F407VET6 Black board
You can find this board pretty much everywhere That's true but at the moment for the USA, Amazon is about $3 less than eBay. Aliexpress search has been broken for a while (slide to verify then error, with multiple browsers, with and without private browsing, with and without VPN running). Free ship...
- Mon Aug 24, 2020 10:57 pm
- Forum: General discussion
- Topic: Arduino code compiles, will not work on Nucleo
- Replies: 1
- Views: 2979
Re: Arduino code compiles, will not work on Nucleo
Assuming core 1.9.0 and a F103 board: HardwareSerial Serial1(PA10, PA9); HardwareSerial Serial2(PA3, PA2); HardwareSerial Serial3(PB11, PB10); void setup(){ Serial1.begin(9600); Serial2.begin(9600); Serial3.begin(9600); } In the options, select USART enabled, no generic serial. Names Serial1, 2, 3, ...
- Tue Aug 04, 2020 7:27 pm
- Forum: General discussion
- Topic: Changing PWM duty cycle on BluePill produces wrong output
- Replies: 9
- Views: 11053
Re: Changing PWM duty cycle on BluePill produces wrong output
Try this:
Move MyTim->setPWM() to setup.
Inside loop, call
MyTim->setCaptureCompare(channel, dutycycle, PERCENT_COMPARE_FORMAT)
I would keep dutycycle in the range of 1 to 99, avoiding 0 and 100.
Move MyTim->setPWM() to setup.
Inside loop, call
MyTim->setCaptureCompare(channel, dutycycle, PERCENT_COMPARE_FORMAT)
I would keep dutycycle in the range of 1 to 99, avoiding 0 and 100.
- Sun Jul 26, 2020 8:13 pm
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: Softwareserial issue on stm32 f411re
- Replies: 8
- Views: 9270
Re: Softwareserial issue on stm32 f411re
Jumper PB0 to PB1. #include <SoftwareSerial.h> #define mySerial SerialUSB SoftwareSerial swSerial(PB1, PB0); void setup() { mySerial.begin(9600); swSerial.begin(9600); } void loop() { for (int i = 0; i < 6; ++i) { swSerial.print("hello\n"[i]); if (swSerial.available()) { char ch = swSerial...
- Sun Jul 26, 2020 6:34 pm
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: Softwareserial issue on stm32 f411re
- Replies: 8
- Views: 9270
Re: Softwareserial issue on stm32 f411re
I tested a GPS module connected to PB0/PB1 with SoftwareSerial on a 407 board. It is working fine, printing the NMEA messages from the module. #include <SoftwareSerial.h> #define mySerial SerialUSB SoftwareSerial gpsSerial(PB1,PB0); void setup() { mySerial.begin(9600); gpsSerial.begin(9600); } void ...