Skip to content

Baremetal code to drive SSD1306 OLED Driver connected to an STM32F407 Board through SPI. This code runs without a standard C Runtime environment set by the compiler.

Notifications You must be signed in to change notification settings

digitallyamar/STM32_SSD1306_OLED_SPI_Baremetal

Repository files navigation

STM32_SSD1306_OLED_SPI_Baremetal

Baremetal code to drive SSD1306 OLED Driver connected to an STM32F407 Board through SPI.

To run OLED Boot Countdown Animation

- Build the code:
	- make clean
	- make

- On term1, run the command:
	- openocd -f interface/stlink-v2.cfg -f target/stm32f4x.cfg

- On term2, run the command:
	- arm-none-eabi-gdb --nx -ex 'set remotetimeout unlimited' -ex 'set confirm

off' -ex 'target remote 127.0.0.1:3333' -ex 'monitor reset halt' -ex 'monitor flash write_image erase <PATH_TO_BUILD_OUTPUT>/flash.bin 0x08000000' -ex 'monitor reset halt' <PATH_TO_BUILD_OUTPUT>/flash.elf

To run OpenOCD scripts:

- On term1, run the command:
	- openocd -f interface/stlink-v2.cfg -f target/stm32f4x.cfg

- On term2, run the command:
	- telnet localhost 4444
	- reset halt

	- Continue on term2. Enter each of the TCL commands & functions in the script manually.
	- Once done, call the main functions in order:
		- main1
		- main2
		- main3
	- You should now have your 0.96" OLED working!

About

Baremetal code to drive SSD1306 OLED Driver connected to an STM32F407 Board through SPI. This code runs without a standard C Runtime environment set by the compiler.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published