Skip to content

shima-529/STM32OnNim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM32 on Nim

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.

What is implemented

  • I/O registers
    • RCC
    • USART1
    • GPIOA .. GPIOE
    • TIM2
    • SysTick
    • NVIC
  • volatile function templates
    • ld() for volatile load
      • e.g.) GPIOA.ODR.ld for getting the value
    • st() for volatile store
      • e.g.) GPIOA.ODR.st 1 for storing 1 to GPIOA.ODR

Compile

$ make
$ make flash

If you want to use UART for programming, don't type make flash and use flash programmers you like.

About

Test Project for STM32 embedded programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published