1BitsyLab

所属分类:处理器开发
开发工具:Assembly
文件大小:0KB
下载次数:0
上传日期:2023-10-28 03:59:08
上 传 者sh-1993
说明:  使用1Bitsy+BMP学习STM32编程,
(Learning STM32 programming with the 1Bitsy + BMP,)

文件列表:
.clang_complete (63, 2023-10-27)
.gdbinit (131, 2023-10-27)
datasheets/ (0, 2023-10-27)
datasheets/1bitsy_schematic.pdf (389881, 2023-10-27)
datasheets/1bitsy_v1_0d_legend.png (772753, 2023-10-27)
datasheets/1bitsy_v1_0d_legend2.png (517141, 2023-10-27)
datasheets/1bitsy_v1_0d_legend_back.png (548973, 2023-10-27)
datasheets/_reference-manual.pdf (28221774, 2023-10-27)
datasheets/_users-guide.pdf (1783188, 2023-10-27)
datasheets/programmers-manual.pdf (2732268, 2023-10-27)
datasheets/stm32f415rg-datasheet.pdf (6208259, 2023-10-27)
labs/ (0, 2023-10-27)
labs/00-asm/ (0, 2023-10-27)
labs/00-asm/Makefile (507, 2023-10-27)
labs/00-asm/gpio-toggle.s (6194, 2023-10-27)
labs/00-asm/link.ld (723, 2023-10-27)
labs/00-asm/output/ (0, 2023-10-27)
labs/00-asm/output/gpio-toggle (66320, 2023-10-27)
labs/01-miniblink/ (0, 2023-10-27)
labs/01-miniblink/Makefile (116, 2023-10-27)
labs/01-miniblink/miniblink.c (912, 2023-10-27)
labs/02-button/ (0, 2023-10-27)
labs/02-button/Makefile (110, 2023-10-27)
labs/02-button/button.c (1040, 2023-10-27)
labs/Makefile.include (1603, 2023-10-27)
labs/Makefile.rules (8180, 2023-10-27)
labs/bmp_flash.scr (726, 2023-10-27)
libopencm3/ (0, 2023-10-27)
stm32f4-1bitsy.ld (1128, 2023-10-27)

# 1BitsyLab - STM32F415RGT6 Learning STM32 programming with the 1Bitsy + BMP ## Working with CLion This repo is setup to use both Make and CMake. CMake support was added for CLion, which can build and debug the labs. Most info was taken from [this repo](https://github.com/StanislavLakhtin/clion_freertos_stm32f103_template). Currently the `.gdbinit` file in the repo root needs to be copied to your home directory. This needs to be fixed, possibly by [this](https://github.com/nagelkl/clion_embedded/blob/master/setup_gdbinit.bat) workaround. ## Flashing ![Connecting](connection.JPG) 1) Connection the BMP to the target 2) Browse to the working lab directory $ make flash ## Debugging From the [quickstart](https://1bitsy.org/overview/quickstart/) guide. 1) Find BMP serial device $ ls /dev/cu.usbmodem* 2) Boot up GDB with an elf file $ arm-none-eabi-gdb miniblink.elf 3) Connect to BMP in GDB (gdb) target extended-remote /dev/cu.usbmodemXXXXX1 (gdb) monitor version 4) Find and attach to the 1Bitsy using JTAG (gdb) monitor jtag_scan (gdb) attach 1 5) Upload and run the code (gdb) load (gdb) run 6) Explore your code with GDB! ## Tasks ### Basics - [x] Get to [miniblink](https://github.com/1Bitsy/1bitsy-examples/tree/master/examples/1bitsy/miniblink) - [x] Push a [Button](https://github.com/1Bitsy/1bitsy-examples/tree/master/examples/1bitsy/button) STM32 Youtube Channel - [ ] PWM LED [Fade](https://github.com/1Bitsy/1bitsy-examples/blob/master/examples/1bitsy/pwmledfade/pwmledfade.c) - [ ] [USART](https://github.com/1Bitsy/1bitsy-examples/blob/master/examples/1bitsy/usart/usart.c) ### Intermediate - [ ] Write LCD display driver (SSD1306) [Examples](https://github.com/1Bitsy/1bitsy-examples/tree/master/examples/1bitsy) ### Hard - [ ] Miniblink with ASM - [ ] Interface with RGB LEDs - [ ] Implement PID algorithm ### Understand your Tools - [ ] Get good at using GDB - [ ] Understand the linker file - [ ] Understand what an ELF file is - [ ] Understand how your Makefile works ## Useful References In case of being stuck http://sgreg.fi/blog/article/bare-metal-arm-cortexm-hello-world-on-linux https://rhye.org/post/stm32-with-opencm3-0-compiling-and-uploading/ https://bdebyl.net/post/stm32-part0/

近期下载者

相关文件


收藏者