542 questions
1
vote
0
answers
57
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
68
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
106
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
118
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
91
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
34
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
95
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
126
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
13
views
Standard link relation for adding items to collection?
Relation Name:
item
Description:
The target IRI points to a resource that is a member of the
collection represented by the context IRI.
Relation Name:
collection
...
0
votes
0
answers
58
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
57
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,...
0
votes
0
answers
70
views
What is the proper way to configure the CLUT in an STM32H7?
I have an STM32H7A3 that is connected to a parallel (24-bit) RGB display. I would like to use the CLUT to save space in memory. I have the LTDC peripheral configured in L8 mode with a single layer ...
0
votes
1
answer
74
views
STM32 and BQ25713 it can not Read / Write to a register via I2C correctly
I am using Texas instruments BQ25713 charger. When we programming BQ25713 via I2C, it cannot write/read a value to any register correctly.
E.g.; Not able to read ManufacturerID() 0x2E
Expected: 0x2E / ...
0
votes
0
answers
27
views
How to retrieve value in controller of properties with [JsonPropertyName] applied?
public class PropertyCollection
{
[JsonPropertyName("User Name:")]
public string UserName { get; set; } = string.Empty;
[JsonPropertyName("User Password:")]
public ...
0
votes
1
answer
342
views
STM32 FDCAN filters not filtering anything
The problem
I am unable to get the HAL CAN filters to filter anything. I have FDCAN working perfectly on my STM32H723VGT6 uController. I would like to now implement CAN filters, but when I configure ...