Nucleo is mbed enabled STM32 board similar to Arduino.
Questions tagged [nucleo]
128 questions
11
votes
3 answers
What's causing my microcontroller LED program to stop working?
So, I am a COMPLETE and utter novice at programming. I have done some basic stuff on Arduinos (literally toggling LEDs and displaying something on an LCD) and I am trying to self teach myself how to program in C. I am a hardware engineer by trade,…

Curious
- 482
- 6
- 19
8
votes
2 answers
Receiver issues on STM32H7 interrupt-based SPI
I want to configure a simple interrupt-based SPI slave transmitter/receiver on a STM32H7 MCU. Even though I have quite a bit experience with the older series of STM32 ARM MCUs, it seems that a lot of things are different for the H7 series and it…

K.R.
- 591
- 7
- 15
6
votes
1 answer
STM32 crashes when FreeRTOS project is converted to C++
I am experimenting with STM32F303RE Nucleo board on SW4STM32 with FreeRTOS v10.1.1 and I was thinking of parsing NMEA sentences by adding the characters to a buffer using UART interrupt and then process them at my convenience in a task. Since most…

scriptsNgiggles
- 197
- 1
- 9
6
votes
1 answer
STM32F4 : Floating point instructions too slow
I'm working on an audio application on the Nucleo F411RE and I've noticed that my processing was too slow, making the application skip some samples.
Looking at my disassembly I figured given the number of instructions and the 100 MHz CPU clock (that…

Florent
- 370
- 3
- 18
6
votes
2 answers
Possible to power STM32 Nucleo boards with USB battery pack?
I have a wireless-transmitter module connected to a Nucleo board. The sensor draws power (~200 mA) from the Nucleo board's 3.3V out pin.
Case A (successful): When I connect/power the Nucleo board with a standard USB (5V) cable connection to my PC,…

boardbite
- 4,892
- 11
- 47
- 73
4
votes
1 answer
Why operations on float variable are performed on a double? STM32F401RE, MDK-ARM v5
I am debugging a simple line of code:
float temp_f;
...
...
temp_f= temperature[0] +(temperature[1] >> 5)*0.125;
that is assembled into
316: temp_f= temperature[0] +(temperature[1] >> 5)*0.125;
0x080018CE 4C1C LDR …

Artem Glukhov
- 45
- 4
4
votes
1 answer
In an ADC, Does UART baud rate affect signal transmission even if they are stored and retrieved from memory?
If I'm using a NUCLEO-F401RE with ADC throughput rate greater than 2 MSPS and storing the value in an array/memory, will the UART baud rate affect transmission of the signals from memory? How are they related?
The ADC resolution is 12 bit. The data…

Archana Narayanan
- 51
- 6
4
votes
1 answer
ADC DMA on STM32, Nucleo F334R8 stops main while loop from executing
I am am reading ADC via DMA on the STM32 Nucleo F334R8. However, after I start the DMA using the code below, the main while loop fails to execute
HAL_ADC_Start_DMA(&hadc1, (uint32_t *)&ADC_Raw, 4);
I understand that the DMA interrupts may be…

notransients
- 65
- 1
- 6
4
votes
1 answer
STM32F303 STM32CubeMX __HAL_TIM_SetCompare macro does not exist
I am using CubeMX to generate code for my NucleoF303. I am a bit confused how to set the pulse width of a timer in PWM mode.
Previously (using an F4) there has been a __HAL_TIM_SetCompare macro in the stm32fxxx_hal_tim.h file.
But that does not…

Chris
- 81
- 1
- 4
4
votes
3 answers
Get internal temperature or voltage STM32L0
I'm trying to obtain the internal voltage and temperature of my STM32L073RZ with the mbed librairy (Intialize and read an internal channel with ADC). Currently I didn't know how to do that and all the tutorials speak about other version of my…

Simon NOWAK
- 355
- 2
- 14
4
votes
2 answers
How to correctly configure deepsleep for STM32L0xx
I'm trying to configure my Nucleo Board with a STM32L073RZ in deepsleep mode to get the lowest power consumption.
To do that I use the mbed librairies with the deepsleep() function (This function use Stop mode with RTC). On the application note…

Simon NOWAK
- 355
- 2
- 14
4
votes
4 answers
How to reconnect nucleo to st-link part?
It's awkward, but I have accidentally put STM32 nucleo on the washing machine. Though full of soft clothes, the machine managed to tear the ST-link part of the nucleo off:
This means the nucleo is probably still working but I need to reconnect it…

Tomáš Zato
- 1,044
- 4
- 21
- 40
4
votes
1 answer
Automatically upload binary file to nucleo after compiling in Keil
I bought Nucleo F411RE and I'm using Keil uVision 5 as IDE for programming it. To download program to Nucleo, you simply copy it in the virtual nucleo drive:
Of course, I'd like to have this task automated. To do so, I tried to use the Keil project…

Tomáš Zato
- 1,044
- 4
- 21
- 40
3
votes
1 answer
Why is DMA Continuous Requests not selectable as enable for STM32F446RE?
I have an Nucleo STM32F446RE and I'm used to enable DMA Continuous Requests with ADC. But in this case, I can only select disable. Why?
If it's not possible to use DMA Continuous Requests with ADC. How can I use my multi-scan ADC?
I can anyway…

euraad
- 1,025
- 11
- 30
3
votes
2 answers
How to solve Keil compiler 'Error: L6218E: Undefined symbol' on STM32
I am trying to run a simple tutorial (external interrupt example) on my NUCLEO-F746ZG board. I use STM32CubeMx software version 5.2.0 and Keil software version 5.28.0.0 as compiler. I get the following error:
EXTI_callback\EXTI_callback.axf: Error:…

Mohsen Fallah
- 63
- 1
- 7