A C/C++ MCU configuration generation tool for STM32 products, from ST Microelectronics
Questions tagged [stm32cubemx]
116 questions
0
votes
2 answers
SDRAM interfacing with STM32F429BI having flickering issue
I am using 12.1" TFT Display of 800x600 resolution and interfacing it with STM32F429BI Micro-controller and IS42S16400J SDRAM .I am getting the flickering issue in my display. When i bypass the SDRAM it working ok , there is no flickering, but on…

Diksha
- 1
0
votes
1 answer
Cannot change value of LCD_CR register
I am currently playing with L152C Discovery board and trying to make simple clock that would use the RTC build into the STM32 and onboard Glass LCD with LCD HAL library configured via CubeMX.
But I am currently facing a problem I can't get my head…

Marek Coufal
- 1
- 2
0
votes
2 answers
stm32 and external flash W25q16
I am working on STM32L432KC with W25Q16. Every time I am getting 0xFF. According to the datasheet, to get chip manufacturer code I need to send 0x90 and 3 dummy bytes. The chip should return 0xEF, 0x17. But, for some reason, I receive 2 bytes of…

Raj Kumar
- 1
- 1
- 3
0
votes
0 answers
STM32F103CB timer not accurate
I'm new in stm32, I recently create a project to make a quick pulse on a GPIO pin every second, just to determine the time accuracy by the logic analyzer, however, I always get the time around 0.999,935s instead of one second, I tried everything I…

Olly
- 23
- 6
0
votes
1 answer
STM32 HAL Calling HAL_UART_Transmit from another file other than main.c
I am trying to call HAL_UART_Transmit() from my custom SA145.c file, which causes the error: identifier huart1 us undefined. huart1 is declared as extern in main.c.
How to call HAL_UART_Transmit() from the file other than main.c

nvm
- 9
- 3
0
votes
0 answers
Can't use HAL Libraries because of this error
I'm currently learning to code STM32F446RE Nucleo in STM32CubeIDE. I was trying to use completed libraries from github. HAL libraries seemed useful but I get stuck on inclusion errors. I fix one and another one spawns. Recently I keep getting this…

Hakan ONAY
- 11
- 5
0
votes
0 answers
STM32F - Cube Program Ends suddenly
I was trying to blink the led on my STM32F446RE Nucleo Board. The Onboard LED is on A port 5th PIN. Program gives me the following error and also doesnt include my driver (gpio_drive.c) file. Here are the errors.
fatal error:…

Hakan ONAY
- 11
- 5
0
votes
0 answers
SWV Exception Trace is not working in Atollic Studio
I want to trace exceptions/interrupts happening in my board with STM32L4xx in Atollic Studio by SWV Exception Trace Log and SWV Trace Log.
I use SEGGER J-Link and In Debugger I have correctly set the interface to SWD and the Core Clock to 80 MHz.…

Keivan
- 1,300
- 1
- 16
- 29
0
votes
1 answer
STM32cubeIDE ignore my code and using MX config
I have a question. Is there any option to disable CubeMx in STM32cubeIDE?
I just want use UART. So I write PINs and UART configuration in my main.c file. However CubeMX already had UART's pins configured and completely ignored my pins…

Sebastian Siedlarz
- 25
- 4
0
votes
1 answer
how solve problem on download and debug using IAR?
whenever I generate my code with STM32cubeMX on Iar embedded workbench V8.5
this error is still present
Fatal Error [Pe035]: #error directive: "Unknown target."

Safwen
- 5
- 4
0
votes
2 answers
HAL_CAN_ERROR_PARAM with STM32f103c8t6 Bluepill and can bus
I'm struggling to send messages via can bus with stm32f103 bluepill board and SN65HVD230 transceiver(terminated).
On the other end I use terminated usb can adapter, that works fine. CAN Bus speed is 500kbit/s.
Connections of SN65HVD230 :
PA11 ->…

Oleg Bovykin
- 61
- 5
0
votes
1 answer
IEEE 1588 PTP Clock Source in STM32H743
I'm trying to get PTP timestamp on STM32H743 Nucleo board. There is no proble with LwIP and ethernet driver so far except for PTP. I followed the instruction( 58.9.7 Programming guidelines for IEEE 1588 timestamping) on reference manual (RM0433) as…

ierturk
- 452
- 6
- 22
0
votes
1 answer
BMA253 Accelerometer Chip Id Receiving Error
I am interfacing the BMA253 Accelerometer with STM32 Discovery Board using 4 wire SPI. I am using the CUBEMX HAL Library. As a first step, I am trying to read the CHIP ID from the sensor register 0x00. The chip which should be read is 0xFA. The…

TECHKEY
- 95
- 1
- 5
0
votes
0 answers
Why the first call of the va_arg function get a strange number?
I'm developing a firmware for my STM32 board based on a STM32F412RET6 processor with STM32CubeIde and FREERTOS .
When I call the va_arg function, of the stdarg.h library, for the first time get me a strange number. Why?
The code:
void…

jhon tonini
- 67
- 3
- 7
0
votes
2 answers
STM32F7 SPI interrupts stop working with FreeRTOS
I'm using stm33F7 reading sensor via SPI communication, it's working in slave only receive mode, I can read data in interrupt mode perfectly without os, but as I enable FreeRTOS (using STM32CUBE) after a random time interrupt stops firing. I'm also…

Afra Bazrafshan
- 11
- 3