Update 'README.md'

This commit is contained in:
julian 2021-04-26 15:38:26 +00:00
parent be3ecf3e6e
commit 9ce15ae928

View File

@ -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.