A C/C++ MCU configuration generation tool for STM32 products, from ST Microelectronics
Questions tagged [stm32cubemx]
116 questions
0
votes
2 answers
How to establish 3 UART and 2 I2C interface at a same time in STM32F103C8T6?
I am a newbie to STM32 and CubeMX. I need to create 3 UART interface and 2 I2C interface in STM32F103C8T6. I tried to, but there is a common port for both i2c and uart communication and it allows me to create only (2 uart and 2 i2c) or (3 uart and 1…

Vignesh
- 55
- 3
- 12
0
votes
1 answer
Macro __HAL_TIM_SET_Compare does not work
Trying to adjust the PWM period value using the macro
__HAL_TIM_SET_COMPARE(&htim4,TIM_CHANNEL_3,299);
but it does not work.
However the macro
__HAL_TIM_SET_AUTORELOAD(&htim4, 599);
works fine.
why the __HAL_TIM_SET_COMPARE does not work ?.
The…

TonyP
- 5,655
- 13
- 60
- 94
0
votes
1 answer
How to flash to STM32f103c8 using codeblocks?
I am trying to program my STM32f103c8 using STM32Cubemx, code::blocks and CubeMXMakefile.py. The compilation result shows 0 errors and 0 warnings and that flashing was successful but the code (blinking PC13) isn't running on the board.
I installed…

almonzer
- 31
- 1
- 1
- 3
0
votes
1 answer
ADC conversion triggered by timer not working, STM32L4
I'm working on the ADC , conversion triggered by timer2 , but there is no output. APB2 Timers clock is 80Mhz. Only 1 ADC channel. ADC clock is also 80Mhz. ADC conversion is triggered by 3.3us. Controller is STM32L452. Ignore Timer3.
Please let…

Soze
- 1
- 2
0
votes
2 answers
Mbedtls entropy generation runs forever
I'm trying to write an test function for mbedtls which randomly generates a key for AES encryption.
I use the original tutorial Code from mbedtls.
My Programm always stops when executing "mbedtls_ctr_drbg_seed()".
About my environmet: Basic…

M-K
- 131
- 1
- 10
-1
votes
1 answer
Interface SPI1 and SPI2 on Nucleo-F446RE
I have Nucleo-F446RE board. I would like to send data by SPI1 and receive it by SPI2 only for educational purposes. Unfortunately SPI2 doesn't receive any data. Project is configured by STM32-CubeMX. I tried with blocking API and interrupts without…

drewpol
- 665
- 1
- 6
- 26
-1
votes
1 answer
STM32 debugging issue
I am using a Nucleo F303RE board. And whenever I try to debug in STM32cubemxIDE. It always shows an error for failed to start GDB error. I have attached the screenshot
I have updated the ST-Link firmware and also checked my device manager.
I have…

Mahesh Padmanabh
- 1
- 1
- 4
-1
votes
1 answer
how to do USART communication please tell me everything which should be taken care to do usart communication
I am Using Atollic and cubemx on ubuntu.

Nilesh Pal
- 23
- 7
-1
votes
1 answer
How to read data from external ADC MAX144 using STM32 microcontroller
I am facing a problem for last week in reading data from external ADC MAX144 using SPI and STM32L452. The confusion is how to receive data in buffer as there is no memory address or control register address is mentioned in the datasheet of ADC. The…

Nazar Hussain
- 13
- 5
-1
votes
1 answer
SPI Communication Problem Between STM32F-Discovery and MAX31856
I was trying to communicate my STM discovery board with MAX31856 using SPI communication. According to datasheet, I should send address byte first, then data bytes following. I am currently able to write to registers but when i try to read the data…
-2
votes
1 answer
On-board LED, doesn't turn on/off
I just started working with STM32F407VGT Discovery kit and I for the start I wanted to turn on/off LED's on-board. I am using CubeMX to generate initialization code and SystemWorkBench Eclipse to compile and also ST-LINK STM32 for programming my…

David
- 1
- 1