diff --git a/OdriveFirmware.launch b/OdriveFirmware.launch index 7a02b61e..829f6c71 100644 --- a/OdriveFirmware.launch +++ b/OdriveFirmware.launch @@ -46,15 +46,17 @@ + - + + diff --git a/README.md b/README.md index a5eedca4..dea2efff 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,24 @@ There is an excellent project called CubeMX2Makefile, originally from baoshi. Th * Browse for existing code location, find the OdriveFirmware root. * In the Toolchain options, select `Cross GCC` * Hit Finish +* Build the project (press ctrl-B) ![Toolchain options](screenshots/CodeAsMakefile.png "Toolchain options") ### Load the launch configuration +* File -> Import -> Run/Debug -> Launch Configurations -> Next +* Highlight (don't tick) the OdriveFirmare folder in the left column +* Tick OdriveFirmware.launch in the right column +* Hit Finish + +![Launch Configurations](screenshots/ImportLaunch.png "Launch Configurations") + +### Launch! +* Make sure the programmer is connected to the board as per [Flashing the firmware](#flashing-the-firmware). +* Press the down-arrow of the debug symbol in the toolbar, and hit Debug Configurations + * You can also hit Run -> Debug Configurations +* Highlight the debug configuration you imported, called OdriveFirmware. +* Hit Debug +* The program should start halted on the first instruction in `Main` +* Set beakpoints, step, hit Resume, etc. +* Make some cool features! ;D diff --git a/screenshots/ImportLaunch.png b/screenshots/ImportLaunch.png new file mode 100644 index 00000000..3270ee15 Binary files /dev/null and b/screenshots/ImportLaunch.png differ