542 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Advice
1
vote
0
replies
52
views
Why does the STM32H5xx Ethernet HAL provide a callback for appending an rx data buffer (that it found populated) to a list that it is managing?
The STM32H573 Ethernet HAL (header implementation) defines a callback, HAL_ETH_RxLinkCallback(), that it appears to call after it discovers that the hardware has populated a data buffer with received ...
1
vote
1
answer
88
views
STM32L010C6 TIM2 IRQ priority, over capture vs edge detection, classic timer issue
So I want to use a capture compare to measure an input frequency 0.1 Hz to 100 kHz.
The peripheral clock is set to 32 MHz to cover the full range and maximise the speed of calculations.
At lower ...
1
vote
0
answers
38
views
3.16 -> 3.17 HalLink now takes 3 arguments
After upgrading from Quarkus 3.16 to 3.17 my builds fail because HalLink constructor now takes 3 arguments instead of 1. I see that title and type have been added. I want to keep the same ...
1
vote
1
answer
127
views
How can I make all functions from the HAL standard library file work from RAM at once?
There is a HAL library of functions for working with flash memory. I want all the functions of this library to work from RAM. How can I do this correctly, without writing _attribute_((section("....
1
vote
1
answer
99
views
What is the proper way to turn a const parameter into non-const ? (STM32 HAL)
I am writing C++ wrapper classes for STM32 HAL functions, and ran into the following problem.
The HAL function is declared as:
HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t ...
1
vote
0
answers
92
views
__WFI() does not work as it should in STMCube
I'm programming in C on STM32f103rbT6. I'm using STM32CubeIDE.
For some strange reason, the __WFI function, instead of waiting for an interrupt to occur, automatically calls itself and doesn't wait ...
2
votes
0
answers
79
views
Preemption of Priority in EXTI not occuring when lower priority IRQ executes a forever while loop in the ISR
I am referring to the book Mastering STM32 by Carmine Noviello. I came across an example code which talks about Interrupt priorities. He showed an example which is given below where he makes a low ...
2
votes
1
answer
127
views
Why do MCU libraries use logic operations instead of bitfield structs?
In different hardware libraries for MCU I've seen (STM32 HAL, GD32 SPL, MDR32 SPL, LibOpenCM3), for operating with registers bits, logic operations (shifts, ands, ors, nots, etc) are used. But why not ...
2
votes
2
answers
448
views
STM32G4 TIM1 center aligned PWM update event problem
I'm facing an issue with the update event triggering in STM32G4 TIM1. I've configured TIM1 to generate PWM signals and set the update event to Center-Aligned Mode 1. However, I've noticed that the ...
0
votes
1
answer
208
views
Can you change the slave i2c address during execution on a stm32 board?
It’s all in the title
I want to be able to change the device's i2c slave address upon reception of a certain i2c command.
I'm currently using a nucleo 144 f207gz.
I've been trying to achieve this ...
0
votes
1
answer
105
views
Interrupt safety of `HAL_SPI_TransmitReceive`
I am working on RF communication in STM32 using the NRF24L01+ module via SPI. This module raises an interrupt on a GPIO pin whenever a new message is received so I handle the interrupt to read and ...
1
vote
1
answer
231
views
Why HAL_I2C_Mem_Read returns HAL_I2C_ERROR_TIMEOUT?
Consider this code portion:
...
typedef struct gyro_s
{
int16_t x;
int16_t y;
int16_t z;
} gyro_t;
...
/*
Configuration of:
- Gyroscopes' Full Scale Range.
- Deactivated Sleep Mode
*...
0
votes
1
answer
244
views
STM32 SPI communication with 93C46 EEPROM
I want to sent commands (Read, Write, etc.) to a 93C46 EEPROM with a STM32 micro-controller through the SPI interface. The data sheet of 93C46 says that we should send (e.g.) 20 clock cycles for a ...
0
votes
0
answers
75
views
Dialing and emergency number on android using kotlin and jetpack compose
I need to dial an emergency number from my app and from what I understand by reading the docs, I need to implement emergencyDial in IRadio.hal and implement emergencyDialResponse in IRadioResponse.hal ...
1
vote
1
answer
78
views
I2C address Error between Nucleo-F411RE and new board
I'm trying to test I2C communication between a board(Master) and stm32 board(Slave) with I2c-tools.
And I found some troubles.
I thought the slave address is 0x12, but in the ownaddress info of i2c.c,...