6 questions
4
votes
1
answer
4k
views
Light the LED on STM32F103C8T6
I'm trying the light an LED (on port c, pin 13) on STM32F103C8T6. I'm not using IDE. Code:
#include "include/stm32f10x.h"
int main()
{
RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;
GPIOC->CRH &...
13
votes
2
answers
40k
views
How can I use LL (low level) drivers in CubeMX STM32?
I'm creating a blank project for a STM32F103 microcontroller using STM32CubeMX. Using HAL drivers (the default), I got a blinky example working pretty quickly, but I'd like to try out LL (low level) ...
2
votes
2
answers
460
views
Writing a program that updates itself at runtime for STM32
I have a program running on an STM32F103C8 that uses a bootloader for USB DFU updates.
The program and the bootloader/updates work nicely, but I wonder how can you a program that updates itself ...
1
vote
1
answer
5k
views
ST-LINK V2—detected as a USB mass storage device
I have an STM32VLDISCOVERY board that I connected to my Windows PC.
This board has an integrated ST-LINK V2 programmer / debugger based on the STM32F103C8 microcontroller which actually communicates ...
1
vote
2
answers
3k
views
Load binary into stm32f103c8t6 with OpenOCD and arm-none-eabi-gdb
I tried to load binary that is compiled from rust code, but it doesn't work.
First, I downloaded Rust code from https://github.com/rust-embedded/discovery.
Then, I built it.
# I am in the `src/05-...
0
votes
1
answer
357
views
why is there a delay between (DR register written) and (data really showed) in UART on STM32F103CB?
I'm curious about the delay time between the title mentioned, I toggled an IO when I wrote data into UART->DR, the delay time varies from 3 micro seconds to 10x micro seconds
int main(void)
{
/* ...