CMSIS DAPlink
Jump to navigation
Jump to search
Build from Source
First clone this repository.
Enter the folder and create a virtual python environment
lth@ncpws04:~$ cd src/DAPLink lth@ncpws04:~/src/DAPLink$ virtualenv venv lth@ncpws04:~/src/DAPLink$ . venv/bin/activate (venv) lth@ncpws04:~/src/DAPLink$ pip install -r requirements.txt
You can now build the two targets - the bootloader and the actual DAPLink firmware:
(venv) lth@ncpws04:~/src/DAPLink$ python tools/progen_compile.py --clean stm32f103xb_bl stm32f103xb_stm32f103rb_if
After successful build, enter the resulting directory and flash using a st-link:
lth@ncpws04:~/src/DAPLink$ cd /projectfiles/make_gcc_arm/stm32f103xb_bl/build lth@ncpws04:~/src/DAPLink/projectfiles/make_gcc_arm/stm32f103xb_bl/build$ st-flash erase ; st-flash write stm32f103xb_bl.bin 0x8000000