For question involving the STM32F3xx series of microcontrollers.
Questions tagged [stm32f3]
33 questions
5
votes
1 answer
External Interrupt triggered after setting pin
I'm trying to get the external interrupt running on a
Nucleo-F030R8
and hit a wall.
Everything is configured and runs just fine in step mode but when I'm connecting my board to another testboard with a simple jumper wire and run the same code, an…

Heiko Thober
- 47
- 4
4
votes
1 answer
why am I getting a communication failure when trying to connect with stlink-v2 using openocd
I'm trying to connect to an 'stm32' 'bluepill' using an stlink-v2 to write some code to it
Whenever I run openocd, it fails to connect
My openocd.cfg file looks like this
source [find interface/stlink-v2.cfg]
source [find target/stm32f3x.cfg]
when…

Martin
- 41
- 1
- 3
3
votes
1 answer
My EXTI0 interrupt handler is not overwritten/working properly (STM32F3Discovery)
I'm trying to learn about coding for embedded devices and want to implement an interrupt. For that, I have written a program where the main function is just a loop that blinks one led and the interrupt should light up another led to test if…

MEisebitt
- 122
- 7
3
votes
2 answers
CubeMX-generated USB HID device sends wrong data when both endpoint and PMA address are changed
I'm debugging a problem with a composite device that I'm creating, and have recreated the issue in freshly-CubeMX-generated HID-only code, to make it easier to resolve.
I've added small amount of code to main() to let me send USB HID mouse-clicks,…

fadedbee
- 42,671
- 44
- 178
- 308
2
votes
1 answer
How to get the interrupt reexport from cortex-m-rt in stm32f30x to run
I want to write a program for the STM32F3Discovery board using rust and the cortex-m-rt and stm32f30x crates. More precisely I want to implement an external interrupt for which I want to use the #[interrupt] attribute. But there seems to be a…

MEisebitt
- 122
- 7
2
votes
0 answers
Why we use FLASH.constrain() and RCC.constrain() in embedded RUST using STM32F30x?
I'm new to Rust. Currently I'm working on embedded rust using STM32F303 Discovery board. I am facing a lot of problems while accessing a registers and don't know How to access RCC, FLASH, TIMER and many more in order to complete the task. Can…

Fawad Ahmed
- 37
- 4
1
vote
1 answer
Erase Flash page starting at 0x08000000 address, within write-protected disabled, produce a Hard fault
I'm trying to erase all bootloader from flash (2 pages of 2 KB, starting from address 0x08000000) in STM32F302RBT6, and as my code app starts from the 0x08001000 address should not be a problem to do it. The point is, after the erasing function…

Leonardo Castilho
- 13
- 4
1
vote
0 answers
Why is a memory location only written to once in an interrupt callback when using ADC and DMA transfers with a STM32F3?
I'm looking to get my STM32F303 discovery board to continuously read from a temperature sensor using the ADC and DMA transfers to a memory location, but during the interrupt callback, the memory location appears to only have been written to once and…

tdot123
- 11
- 1
1
vote
1 answer
HAL_UARTEx_RxEventCallback() circular DMA: What address is the data?
I'm using the HAL with an STM32F3xx, implementing UART receive with circular DMA. The data should continually be received into the huart->pRxBuffPtr buffer, overwriting old data as new data arrives, and the HAL_UARTEx_RxEventCallback() function gets…

Captain Normal
- 441
- 4
- 14
1
vote
2 answers
What RTC backup register should I use in STM32?
I'm using STM32F373 and I want to load the calender and clock every time I start up my STM32.
So I have connected Vbat to 3V via a coin battery and now I need to load my backup register after I have initialize the RTC structure.
This is an example…

euraad
- 2,467
- 5
- 30
- 51
1
vote
1 answer
stm32f3 discovery usart is not sending
Here is my simple register level program written in Rust. This after reading many blogs written in C. I am trying to configure register as they did in C for the discovery board but unfortunately it is not working as expected.
I am trying sending a…

Osama Qamar
- 11
- 1
1
vote
1 answer
Controlling STM32F3 GPIOs without the Cube MX libraries
I am adapting this bootloader for STM32F373CC to my device. To indicate that the device is powered but in bootloader mode, I'd like to turn on some of the status LEDs. However, this bootloader doesn't use the STM Cube MX libraries, so I have to code…

xnarpy
- 13
- 3
1
vote
0 answers
STM32 UART multiprocessor mode with address mark detection. Intended data bytes are interpreted as address bytes
I have configured the UART for multiprocessor communication over RS485. I can receive and transmit data correctly. After waking up (RWU=0) when the correct address is received subsequent bytes should be received normally, and not interpreted as…

rub123
- 51
- 5
1
vote
1 answer
Stm32f303k8 Comparator register address?
I am rather new to uC programming and have hit a wall trying to find the base register address of comparator peripherals for the stm32f303k8. I couldn't find the info in either the reference manual, datasheet, or programming manual, as well as many…

Justin Kennedy
- 13
- 1
- 2
1
vote
1 answer
In a CubeMX-generated project, where is PCD_EP_TX_ADDRESS defined?
I need to use the macro PCD_GET_EP_TX_ADDRESS from stm32f3xx_hal_pcd.h.
It is defined with:
#define PCD_GET_EP_TX_ADDRESS(USBx, bEpNum) ((uint16_t)*PCD_EP_TX_ADDRESS((USBx), (bEpNum)))
but using it causes a compilation error as PCD_EP_TX_ADDRESS is…

fadedbee
- 42,671
- 44
- 178
- 308