A C/C++ MCU configuration generation tool for STM32 products, from ST Microelectronics
Questions tagged [stm32cubemx]
116 questions
0
votes
1 answer
Reference errors when importing CubeMx project into VisualGDB
I am having some issues when importing my fresh cubeMX project into VisualGDB. I get tonnes of errors that say:
undefined reference to 'vPortFree' (for example)
Steps taken:
Generate project files in CubeMX using "Other toolchain"
Then in VS,…

Misha
- 556
- 1
- 8
- 25
0
votes
1 answer
Eclipse Content Assist/Template Proposal: Unable to change the background of the highlighted line (selected by keyboard arrow, not mouse pointer)
Hi I'm currently using STM's CubeMX to do some programming of my STM32 in C/C++.
I have also downloaded from marketplace the darkest dark theme (I selected darkest gray).
I immediately noticed that when I enter ctrl+space for the content…

Elvin Toh
- 41
- 3
0
votes
0 answers
STM32F042K6: region `FLASH' overflowed by 1212 bytes
I am trying to program STM32F042K6 nucleo using CubeIDE and STM32 HAL but the compiler throws an error:
region `FLASH' overflowed by 1212 bytes.
Here is the exact console output:
09:55:03 **** Incremental Build of configuration Debug for project…

Kyle
- 1
- 1
- 1
0
votes
0 answers
Merge two System Workbench for STM32 Projects
I configured with STM32CubeMX the UART interface for my Nucleo F446RE, it's using HAL Driver, and i want to connect it to a USB to UART Bridge so it can communicate with my GUI.
The other Project has all the programm code and it don't uses HAL…

Niko S.
- 1
0
votes
0 answers
STM32L062,I2C no ACK when clock settings different than default
I need to communicate STM32L062 with MC3413 accelerometer, but communication only works when uC clock settings are default (16MHz HSI) and generated by CubeMX. Any change (for example changing source to ~4MHz MSI) causes slave to not give ACK. Im…
0
votes
1 answer
STM32CubeMX UART settings are missing in Modbus Mode
I'm using STM32H745. I would like to set the UART Mode field to "Modbus Communication", but when I do this the GUI erases all the Parameter Settings and gives a message in the Configuration section saying "Warning: This peripheral has no parameters…

Bryn Wolfe
- 11
0
votes
1 answer
STM32 SD FATFS mount error (FR_NOT_READY)
I'm actually trying to write on a µSD card with a STM32L486QGI6.
The function f_mount() returns FR_NOT_READY whether the µSD is placed or not...
I already checked dozens of tutorials and examples for CubeMX generation (Checked the pins, the…

Anis AIT
- 31
- 1
- 1
- 7
0
votes
0 answers
Suggest Possible ROM chips and RAM chip that can be interfaced to STM32F407 for TouchGFX
I have STM32F407 Boards like STM32F407 Disco board (without TFT) and some basic Chinese Boards. I have interfaced my TFT LCD with the board using FSMC interface and done basics like text, graphic shapes and images. So the driver is in place I…

UB_Roy
- 651
- 1
- 6
- 12
0
votes
2 answers
On-board LED, doesn't turn on until I click reset, data receive/trasmit dosn't work correctly
I just started working with STM32F407GZ and I for the start I wanted to turn on/off LED's on-board. I am using CubeMX to generate initialization code. I can receive and transmit data but it doesn't gets correctly the data recived. Also, the leds…

salaotitu
- 21
- 1
0
votes
1 answer
ADC value is so high and can't read it in port serial
Hello I have This code for STM32F01C8T6 by Using CubeMX and Hal lib :
uint32_t value;
while (1)
{
HAL_ADC_Start (&hadc1);
HAL_ADC_PollForConversion (&hadc1, 1000);
value = HAL_ADC_GetValue (&hadc1);
HAL_UART_Transmit…

Hesam Aghajani
- 73
- 5
0
votes
1 answer
STM32F103 Protect section of flash memory
I cannot protect the data in USER_FLASH when I disconnect the ST-Link, connect it and then program the microcontroller via OpenOCD.
I test it with the option (NOLOAD) in the linker script but the data always deleted.
STM32F103C8TX_FLASH.ld:
...
/*…
0
votes
1 answer
STM32F103C8 Bluepill board HAL_delay() problem
I am using STM32 cubeMX for configuration and Keil for programming.
Have set onboard led pin pc13 pin as an output pin and default in push-pull mode. Set debugger to the serial wire as I am using ST-link V2 as a debugger. RCC set HSE to…

Dharmik
- 44
- 4
0
votes
1 answer
STM32 cube receive interrupt data
I am using a STM32L07x8 chip and the HAL driver from stcube. I cannot make a uart work in interrupt mode in any way. In blocking mode it works fine. I tried stuff like
__HAL_UART_ENABLE_IT(&UartHandle_RADIO, UART_IT_RXNE);
…

andrei filip
- 23
- 1
- 8
0
votes
1 answer
Why does my usb HID output rubbish? STM32Cube
I'm trying to make a force feedback wheel, but software isn't my cup of tea.
This is supposed to toggle button 0 and it doesn't.
typedef struct{
uint8_t buttons;
int8_t relativeMvt;
}steer_t;
steer_t steer = {0, 0};
while (1)
{
…

antoine serry
- 67
- 11
0
votes
0 answers
global scoped variables in c++ not properly initialized
I ported my code from stm32f072 to stm32f105. Since then I have an issue with global variables, it seems they don't get initialized. I use Atollic TrueStudio and their compile and build tools. For the new platform I tried converting the existing…

Fritz
- 831
- 7
- 23