Skip to content
#

stm32f1

Here are 71 public repositories matching this topic...

ThomasGravekamp
ThomasGravekamp commented Jul 13, 2019

Most, if not all, devices in the STM32 family support flashing via a serial connection. Flashing over serial is also suported by the texane/stlink tool.

Flashing over serial works by starting the device in its bootloader mode and connecting it to a PC via an USB to serial converter. For the Blue Pill, connect converter TxD to board RxD (PA10) and connect converter RxD to board TxD (PA9).

  • [
tms320
tms320 commented Dec 17, 2019

Hello!
I use the same UART channel to read data from sensor (via RX pin of controller) and send debug messages (via TX pin). So there is no connection between controller's TX pin and sensor's RX pin.
In my case PMS5003 sensor works fine without sending any command to it.
Your library sends "passive mode" command in 'init' and 'trigRead' methods:
uart->write(cfg, msgLen); // set passive mode

This library enables you to use Interrupt from Hardware Timers on an STM32-based board. These STM32 Hardware Timers, using Interrupt, still work even if other functions are blocking. Moreover, they are much more precise (certainly depending on clock frequency accuracy) than other software timers using millis() or micros(). That's mandatory if you need to measure some data requiring better accuracy. It now supports 16 ISR-based Timers, while consuming only 1 Hardware Timer. Timers' interval is very long (ulong millisecs). The most important feature is they're ISR-based Timers. Therefore, their executions are not blocked by bad-behaving functions or tasks. This important feature is absolutely necessary for mission-critical tasks.

  • Updated Aug 3, 2021
  • C++

Improve this page

Add a description, image, and links to the stm32f1 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the stm32f1 topic, visit your repo's landing page and select "manage topics."

Learn more