The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [hal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
88 views

STM32H7 on-chip temperature sensor reading stable on 'Y' revision, but unstable on 'V' revision chip

using the STM32H753VIT6, I like to monitor the on-chip temperature sensor. The environmental temperature can become about 50 degrees Celsius, and the board is housed is a small plastic (DIN-rail) ...
1
vote
0answers
57 views

stm32 does not exit sleep

When trying to implement sleep mode it appears the code enters and exits sleep mode once and then gets stuck in sleep mode after and will not wake back up. I posted some code below of what I believe ...
1
vote
0answers
77 views

STM32 ADC & HAL - EOC selection for polling continiously

I will ask my question via linking some other question asked by someone. S/he got his/her answer on how to solve, but I am more interested on WHY? Thanks in advance. Link to the question: STM32 ADC ...
0
votes
0answers
154 views

Why HAL_I2C_Master_Transmit always returns HAL_BUSY?

I'm trying to use I2C between an STM32F103C8T6 development board and an Arduino Uno. However, I always get a HAL_BUSY error when I call HAL_I2C_Master_Transmit in ...
1
vote
1answer
203 views
2
votes
3answers
224 views

STM32 USB CDC: packet loss with active PC usage

I got a strange error in the USB CDC on the STM32F2. I use HAL implementation of the driver. The size of the buffer transferred in USBD_CDC_SetTxBuffer () is 4096 bytes. On the PC side, I accept the ...
0
votes
1answer
123 views

Why I can't change variable in it.c?

I have stm32vldiscovery project. I want to use external interrupt by PA0 (user button). When I press the button (PA0), then function EXTI0_IRQHandler must set ldOn equal 0. But ldOn always is 1. ...
1
vote
0answers
496 views

STM32 HAL PWM output with DMA misbehavior

I use the Blue pill STM32F103C8T6 to generate variable duty cycle PWM with DMA and using HAL library. And stuck with undesired results. First, I generated code with STM32CubeMX v5.0.1, HAL v1.7.0, ...
0
votes
1answer
113 views

Reading STM32F timer value

I am trying to implement a hardware timer for STM32F and read the value from it. So far, this is my implementation: ...
0
votes
2answers
434 views

Questions about DMX512 protocol/STM

I want to make a DMX512 transmitter with a STM32F103 using HAL, CubeMX. I found some documentation like here about the protocol: Lighting-Control-using-DMX512-protocol-on-STM32. Sadly it does not ...
1
vote
0answers
429 views

driving WS2812B using DMA and timers

I am trying to port the octoWS2811 for STM32F103c8T6. This guy hubmartin has already done the heavy lifting and created a library using STM32 HAL. But the problem is that i am unable to get it to ...
0
votes
1answer
159 views

CAN via SPI over STM32F103C8T6

Since I could not get CAN to work with the internal CAN of an STM32 (F103C8T6), I bought a few CAN boards working with SPI, like these: However, when I send something I get the following results ...
0
votes
1answer
2k views

SMT32 HAL UART crash on possible overrun

I increased my baud rate from 56000 to 115200 and my serial communication stops working when pinging continuously after 10-20 seconds. I am running at 16 MHz. As far as I know HAL driver will handle ...
0
votes
1answer
669 views

How to get a Timer started without interrupt?

I use an STM32F103c8t6. What I want is to measure time between several statements. I found out HAL_getTick does not work since the resolution is too small (1 ms). However, I cannot seem to initialize ...
0
votes
1answer
1k views

HC-SR04 with STM32 gives unexpected values

On an Arduino it is easy to get an HC-SR04 ultrasonic sensor getting to work. However, on my STM32(F103C8T6) I get strange values. I assumed I connect it correctly, since I get values on the trigger ...
1
vote
1answer
1k views

STM32F4 I2C Address Timeout

I have here a Problem with an I2C bus configuration, that runs in a timeout after a certain time. The I2C slave is a fujikura ap4/ag4 pressure sensor and the master a STM32F4. I read continiously the ...
1
vote
1answer
606 views

Making 100 microseconds delay for STM32L0

I need to create 100 microseconds delay for STM32L0 using HAL. I have HSE 12 MHz. APB1 timer clocks 12MHz. ...
0
votes
2answers
2k views

Possibility for UART receive data loss?

In a lot of examples using STM32, HAL, where UART data is received by interrupt the code looks like: Initially (to start the receiving): ...