diff --git a/README.md b/README.md index 72f7057..1c8c5b9 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,15 @@ $ cd build $ cmake -DCMAKE_TOOLCHAIN_FILE=../rodos/cmake/port/discovery.cmake -DEXECUTABLE=ON .. ``` +### Run stm32f4-load +Make *openocd/stm32f4-load* executable and run it once as sudo. This will add some files to */etc/udev/rules.d/* so you wont have to use sudo in the future. + +```shell script +$ cd openocd +$ sudo chmod +x stm32f4-load +$ sudo ./stm32f4-load +``` + ### Openocd installation To make it work you need to install openocd on your system (e.g. via package manager). @@ -28,9 +37,6 @@ You should also edit all three configurations through the Eclipse run configurat Sometimes *debug_stm32f4.launch* is not recognized by the big launch configuration window in Eclipse (top left). Just use the small bug icon on the top right of the toolbar instead. -### Run stm32f4-load -Make *openocd/stm32f4-load* executable and run it once as sudo. This will add some files to */etc/udev/rules.d/* so you wont have to use sudo in the future. - ### Edit CMakeLists.txt Edit *CMakeLists.txt* to add all your cpp files etc.