Skip to main content

All Questions

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

Turning off the DEM 128064B SYH-PY display

I'm trying for warming up to turn off and on the DEM 128064B LCD based on the instructions defined in the datasheet page 12 section 10-1, but I nothing changes and the LCD is on always with all the ...
rEzA's user avatar
  • 1
2 votes
1 answer
2k views

STM32 HAL_ADC_Start() ends with HAL_ERROR

I'm new to microcontroller programming and I have a problem I can't solve. I am using STM32 Nucleo board L4R5ZI and I try to read the analog value on one of the pins, and then use the ADC to convert ...
Artii's user avatar
  • 29
1 vote
1 answer
801 views

NAK in CAN bus for STM32F3 uC

I have a problem with the NAK on the CAN bus. On STM32F303RE I wrote a code for communication via CAN bus with car dashboard (Instrument Panel Cluster). The communication works, I manage to receive ...
Daniel's user avatar
  • 31
0 votes
3 answers
4k views

STM32 HAL driver for register value update

I am new to HAL drivers and STM32 MCUs. Can anyone tell me how to use HAL drivers to update register values of STM32F407 MCU? I have to programatically update the values of ARR and CCR registers of ...
scico111's user avatar
  • 927
3 votes
1 answer
1k views

Coding style in STM32 HAL code

While I was reading the STM32 HAL drivers for timers I found this macro: ...
Paul Würtz's user avatar
0 votes
1 answer
1k views

STM32F1 Flash erase not erasing

Hello everyone, I am trying to write in the FLASH of my STM32F1, but for some reason it is not working ... Whenever I am programming something, it wil return an error : HAL_FLASH_ERROR_PROG which ...
B.Clergue's user avatar
1 vote
1 answer
27k views

How to use SysTick_Handler (an HAL library function) in order to have a time base

In actual I need to measure speed of motor. I have followed a procedure, i.e use Encoder mode to get pulses from sensor. count number of these pulses in 1 sec~1000msec using SysTick_Handler(ISR). ...
abinjacob's user avatar
3 votes
4 answers
30k views

How to use timers in STM32 board and HAL library in order to measure speed of motor?

I need to measure the speed of a rotating motor fitted to an encoder disc with 20 slots. The LM393 based sensor is kept at the right place, so that encoder disc rotates in between the sensing part. I ...
abinjacob's user avatar
0 votes
1 answer
1k views

Misunderstanding of hal_spi Communication Functions

The hal_spi communication function returns HAL_OK while nothing is OK. I use HAL_SPI_Receive, HAL_SPI_TransmitReceive, and ...
Ramo's user avatar
  • 103
3 votes
2 answers
27k views

STM32 HAL_DELAY hangs with HAL_GetTick=0 [closed]

Environment: GNU_ARM, STM32F407 Every time I use hal_delay() the program hangs just before the call to hal_delay(). I added: <...
Ramo's user avatar
  • 103
0 votes
2 answers
5k views

STM32F4 HAL I2C only sends address

I am working on a project where I need to set a simple LCD. This LCD use the 'ST7032i' chip to control the LCD. I want to control the LCD over an I²C interface. As controller I use a STM32F4 ...
StijnB's user avatar
  • 3