This repository aims at the working of STM32 on Nim language. Moreover, the startup routine leaves to be written on Nim without assembly.
This program works well on STM32F303K8T6.
- I/O registers
RCC
USART1
GPIOA
..GPIOE
TIM2
SysTick
NVIC
volatile
function templatesld()
for volatile load- e.g.)
GPIOA.ODR.ld
for getting the value
- e.g.)
st()
for volatile store- e.g.)
GPIOA.ODR.st 1
for storing 1 to GPIOA.ODR
- e.g.)
$ make
$ make flash
If you want to use UART for programming, don't type make flash
and use flash programmers you like.