Questions tagged [cubemx]
71 questions
1
vote
1 answer
STM32 SPI synchronization issue
I'm getting some really strange behavior on an STM32F429, trying to synchronize data over SPI with another microcontroller. The STM32F4 is SPI slave. I've been trying to simplify my code down to a minimal example, so for right now, I'm sending one…

Paul Musgrave
- 181
- 1
- 7
1
vote
1 answer
How do I set a GPIO event flag in STM32?
Is it possible to configure a GPIO input that sets a flag when rising or falling edge is detected without interrupting the CPU? I can then check the status of the flag in the main superloop? There is an option in CubeMX to configure the GPIO mode as…

b7031719
- 120
- 1
- 2
- 8
1
vote
1 answer
STM32F411, FreeRTOS and CubeMX HardFault_Handler() after connecting to port
I need help with my project. I'm using Atollic TrueSTUDIO, CubeMX and FreeRTOS. I have project in which I recived data from ADC and I'm trying to send it by USB. Everything works fine until I open port at PC (I'm trying HTerm, RealTerm, etc), after…

B. Pieta
- 21
- 3
1
vote
1 answer
Hardware NSS signal conficts with PA15 mapped with GPIO output
I'm having a Chinese development board of STM32F103RCT6 STM32_Mini_Pro where a winbond SPI flash is attached with SPI3. The Chip Select is attached with PA15 pin.
While configuring SPI in STM32 cubeMX, I assign Chip Select i.e. PA15 as GPIO output…

Devjeet Mandal
- 345
- 1
- 4
- 23
1
vote
2 answers
setting up the clock on my nucleo-L432KC for a 5 channel adc conversion using DMA
So i have been trying to set up my ADC conversion on my Nucleo-L432KC and have been having a hard time. i recently have been working on a Nucleo-F303RE which is a 64 pin nucleo and my 5 channel ADC conversions using DMA where working great.
I then…

Soleil Anker-Baril
- 21
- 6
1
vote
0 answers
CubeMX - I2C DMA - help needed - ST32F1
HAL_I2C_Mem_Write_DMA / HAL_I2C_Mem_Read_DMA what is the problem ?
Hi I'm trying to run I2C in DMA mode with LIS35 (accelerometer). I wrote simple code as below but each time when I try to run or debug it I'm getting back return "LIS35_ERROR;" which…

frank
- 223
- 1
- 3
- 14
0
votes
0 answers
Eclipse Embedded C/C++ projet from cubeMX makefile
Can someone show me how to import a makefile project from cubeMX into Eclipse the right way? For Indexer to see all methods and variables. Because when I import it either as a makefile project or simply copying files into an empty project, I get…
0
votes
1 answer
There is a fault when trying to connect to LAN8742A with STM32F407VG through RMII protocol
Recently, I worked on custom hardware which contains an Ethernet connection. RMII is used to communicate with the device. I use FreeRTOS and LWIP. When I run the program, there is a problem, which it calls the Error Handler.
This is the code that…

K3IV4N
- 3
- 3
0
votes
1 answer
I want to use the I2C peripheral in stm32 to read a sensor without using CubeMX
I am using the STM32Wb55RGv6 board to read a sensor using the i2c protocol. I want to use it without using CubeMX (.ioc file) because I am unable to use it to add it to my project (I am using one of the provided example projects:…

mennodedam
- 1
- 1
0
votes
0 answers
Virtual Port Com C++
Good afternoon. I am creating a project in CubeMX. I select the Virtual Port COM and configure the code in Keil. I open Keil and change the type of main to C++. After that, I try to compile and throws this error: Data\Data.axf: Error: L6218E:…

Vladimir
- 1
- 2
0
votes
0 answers
STM32 GPIO toggling timing issue (short delay phenomenon)
who do someone know about the STM32 GPIO toggling timing issue?
I want get the always normal togging timming signal without the abnormal togging timming iusse.
Due to the contacted image, I have a diffcult problem that the signal timing of the One…

Sensor Engineer
- 3
- 2
0
votes
0 answers
Switching between c/cpp and pydev in cubeMX (Eclipse)
Switching between C/CPP and pydev in cubeMX (Eclipse)
Hi all.
Recently I started using cubeMX and eclipse. I got cubeMX all setup and working to do C/C++ projects on STM32, building and debugging all worked as expected with STLink.
I recently added…

ROVguy
- 13
- 4
0
votes
0 answers
CubeMX IDE error issues with correct code
I recently installed cubeMX to use freeRTOS on STM32 controller.
HAL_GPIO_TogglePin(GPIOB, GPIO_Pin_12);
If I type out the above I get an error.
If I have Eclipse auto complete the code I get the same error.
If I type out the code in visual studio…

ROVguy
- 13
- 4
0
votes
0 answers
STM32F103 RTOS Delay in between threads
I am creating a project using STM32F103C8T6 controller in which I am using RTOS. I have 4 threads in it. The functions in each of these threads experiences a significant amount of delay (eg: if any sensor is connected for the value to be read from…
0
votes
2 answers
Setting up a STM32 solution with a shared library and multiple projects
I am using Rowley CrossWorks as my IDE.
I have several STM32 projects created with STM32CubeMX which have several files that are shared as of now, by copying the source folder into each projects "src" folder.
This is obviously not an ideal…

Henrik Rune Jakobsen
- 101
- 10