PeachyPrinter / peachy-pro-firmware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded

this may just say 0 removed. that's fine.

sudo apt-get remove binutils-arm-none-eabi gcc-arm-none-eabi sudo apt-get update sudo apt-get install gcc-arm-none-eabi

git clone git@github.com:peachyprinter/peachy-pro-firmware.git cd peachy-pro-firmware make

should result in a main.bin

Get the source for dfu-util: git clone git://git.code.sf.net/p/dfu-util/dfu-util ./autogen.sh ./configure sudo make install

Get openocd: sudo apt-get remove openocd git clone git://git.code.sf.net/p/openocd/code openocd-code cd openocd-code ./bootstrap ./configure make sudo make install

Connect openocd to the stmf4discovery sudo openocd -f stlink.cfg

Discovery board (reading SWD) : [o,NRST,SDIO,GND,SDCLK,o] Peachy (boards 1.13 and older): [o,NRST,GND;o,SDCLK,SDIO] -top down USB on the left

Run arm-none-eabi-gdb with main.bin arm-none-eabi-gdb main.elf

Connect to openocd: (gdb) target remote localhost:3333

Commands:

monitor reset halt - stop the microcontroller c - continue break file.c:32 - break on line 32 in file.c

About


Languages

Language:C 87.7%Language:Python 4.3%Language:HTML 3.4%Language:Protocol Buffer 2.7%Language:Makefile 0.4%Language:Shell 0.4%Language:Assembly 0.4%Language:CMake 0.3%Language:C++ 0.2%Language:CSS 0.2%Language:Batchfile 0.0%