Skip to main content
4 votes

Timer STM32 #error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting

The Roger Clark's STM32 core you're using is not currently supported. I don't know in the future if I can add that core into the supported list. You have to use this Arduino_Core_STM32. Convert to ...
khoih-prog's user avatar
3 votes

Uploading arduino code to race drone flight controller

Sorry for answering this late to this problem but I stumbled on the very same issue. After many hours of debugging, here is what I've found: The default serial (e.g. the serial that you will use ...
TituLeBolide's user avatar
3 votes

STM32f4 Warning: The core is locked up

The solution: Open STM32CubeProgramer and click connect Click Option Bytes (OB) located in the left bar Select Read Out Protection and choose AA option Then select PCROP and uncheck the box Click ...
Miguel's user avatar
  • 209
3 votes

Am I at the limit of UART transmission time?

At 115200 baud you can send 11520 characters per second. At 20 bytes per packet you can send 576 packets per second. That's 1,736µs per packet. That's assuming zero wait between bytes. That's not ...
Majenko's user avatar
  • 106k
3 votes

How to extract the binary from STM32 MCU

you can download the flash content using a ST-Link probe and STM32CubeProg tool. you can't flash it to just "any" arduino board; it must be the exact same chip or same family MCU, if the IOs ...
Tirdad the Whitehand's user avatar
2 votes

Where to find the attribution name for a certain board?

The Arduino defines to identify a board are in form of ARDUINO_<board>, where <board> is the value from <x>.build.board from boards.txt for board <x> For example for Arduino ...
Juraj's user avatar
  • 18.3k
2 votes

Function pointers that call one function

bb_perip is a function that returns a pointer to a bit from a register that is related to a specific timer peripheral (there's more than one). That pointer is then dereferenced with the * operator to ...
Majenko's user avatar
  • 106k
2 votes
Accepted

Connect SDRAM to STM32

As far as I know, you have to choose variant with FMC module (Flexible Memory Controller) with SDRAM support - that means you have to use 144pin version STM32F730Z8. The 100pin version does have FMC ...
KIIV's user avatar
  • 4,907
2 votes

Blue pill acting as if it had 10bit ADC

Adding the following line in the setup() section solves the problem. analogReadResolution(12)
Noel's user avatar
  • 155
2 votes
Accepted

Difference between (*(volatile unsigned int *) and (volatile unsigned int)?

Judging from the context, RCC_BASE seems to be a preprocessor macro that expands to the base address of some peripheral called “RCC”, and AHB1EN_R_OFFSET a similar macro for the offset of the AHB1EN_R ...
Edgar Bonet's user avatar
  • 45.1k
2 votes
Accepted

Rising and falling edge on GPIO_STM32G4

I do not know how to use the HAL API you are using. I will instead suggest an approach based on the Arduino API, which is more suitable for this site. Take note of the current time on every transition ...
Edgar Bonet's user avatar
  • 45.1k
2 votes

My Arduino don't show port but is working

The STM32F103C8 has a native USB interface. You will only ever see a CDC/ACM (USB UART emulation) interface if you actively run code that implements a CDC/ACM interface. The bootloader is separate to ...
Majenko's user avatar
  • 106k
2 votes

STM32 "black pill" won't enter DFU mode reliably

I found this solution in the stm32duino forums: Tying A10 to GND successfully makes it enter DFU bootloader mode 100% of the time (though just not leaving PA10 floating is probably sufficient) ...
NeilenMarais's user avatar
2 votes
Accepted

Arduino Bluepill STM32 spi doesn't work

It depends on how you use the SPI object. If you use the SPI object directly like what Arduino Uno without creating an instance object, the SPI construct will default to the PA4 - PA7, see the default ...
hcheung's user avatar
  • 1,918
2 votes

ArduinoModbus / RS485 conflict between Serial and Serial1

Thanks this worked (almost, i had to make a few changes but it got me there, i have added the required changes below). I had attepted a version of this approach before but for some reason i couldnt ...
Dave by 2's user avatar
1 vote

Difference between (*(volatile unsigned int *) and (volatile unsigned int)?

In the first line, RCC_AHB1EN_R is a pointer to location. you got that from the casting. #define RCC_AHB1EN_R (*(volatile unsigned int *)(RCC_BASE + AHB1EN_R_OFFSET)) In the second line, RCC_AHB1EN_R ...
avong's user avatar
  • 5
1 vote

Can arduino be used in industrial projects?

I don't think there are any major problems with your proposal. The chips themselves will have documented limitations (specifications) that you would need to be aware of. I think you would find that ...
Nick Gammon's user avatar
  • 38.9k
1 vote

Can arduino be used in industrial projects?

You don't talk about Arduino hardware. Your concern is the Arduino IDE. Which is a lawyer's licensing topic. Might depend on the libraries you plan to use. And whether you want to hide the fact you're ...
DataFiddler's user avatar
  • 1,045
1 vote

STM32 "black pill" won't enter DFU mode reliably

I recently purchased two "WeAct V3.0 STM32F411" Black Pill boards on eBay. I've purchased many boards & other electronic items from this seller in the past without any issues. This eBay ...
electricboyo's user avatar
1 vote

variable 'LiquidCrystal_I2C lcd' has initializer but incomplete type

Normally I wouldn't answer this, but the error is not exactly in your code but (seemingly at least) in two common things in the Arduino ecosystem. Roughly speaking, the library you're trying to use is ...
timemage's user avatar
  • 5,639
1 vote

Serial Monitor in Arduino works, but other Serial Terminal work only one way

Thank you @Majenko, you gave the solution : I checked the box "RTS/CTS" in the "handschake" section of Terminal by Bray, and I got all my serial message back from the STM32. I ...
2diabolos.com's user avatar
1 vote
Accepted

How to switch HC-05 from DATA mode to AT mode?

I am pretty certain there is no way to enter command mode from data mode without resetting the whole module. The only way to enter command mode is by setting the KEY pin high, and that pin is only ...
Majenko's user avatar
  • 106k
1 vote

Stm32 Blue Pill Internal reference voltage Arduino IDE

There's no way of using the internal 1,2v reference as the ADC reference. (in the same way that you can do on an AVR) You can only use the ADC to read the internal vref, and use that value to adjust ...
Mihai Razvan Otanjac's user avatar
1 vote

Where to find the attribution name for a certain board?

If you are working on Maple Mini, you may look in this folder, you will found the pin mapping between STM32 and Arduino nomenclature.
fabianoriccardi's user avatar
1 vote
Accepted

How to use ADC interrupt on STM32 blue pill

As you already found, the function to override is __irq_adc() defined weakly here and bound to the interrupt vector table here. If you've defined it and it's not working, it's probably because you got ...
SoreDakeNoKoto's user avatar
1 vote

How to use ADC interrupt on STM32 blue pill

I couldn't find the function being called directly, but there's a good example explaining how to attach interrupts to the ADC which works well: https://github.com/rogerclarkmelbourne/Arduino_STM32/...
Beacon of Wierd's user avatar
1 vote
Accepted

pinout for stm32duino with bluepill

OK if this helps anybody, they give you constants for every pin that look like PC14 for the one that says C14, so you don't need to worry about the integers that they assign to the pins. I mean there ...
Alex028502's user avatar
1 vote
Accepted

Problem with STM32 and SDFat lib on other SPI port

Ok, I found out that the sdFat library is not supported on stm32 bluepill (sd card HAL peripherals are not enabled), so I decided to use basic Arduino SD library (it uses SPI commands, not HAL). Also ...
LucasN's user avatar
  • 71
1 vote

STM32 and SDFat - Can't create file in directory in SD

I found the issue. I'm not creating the directory folder properly. When I checked the SD card from another device, the DATA folder was invalid, and creating it manually works. I'll look for a solution ...
JingleBells's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible