File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
export BOARDNAME=DISCO_F429ZI
2
- export ARDUINOCORE=~/ArduinoCore-mbed/variant /$BOARDNAME/
2
+ export ARDUINOCORE=~/ArduinoCore-mbed/variants /$BOARDNAME/
3
3
4
4
mbed new mbed-os-program
5
5
cd mbed-os-program
@@ -17,11 +17,13 @@ gron ./BUILD/$BOARDNAME/GCC_ARM/.profile-cxx | grep json.flags | cut -f2 -d"\""
17
17
gron ./BUILD/$BOARDNAME/GCC_ARM/.profile-ld | grep json.flags | cut -f2 -d"\"" > $ARDUINOCORE/ldflags.txt
18
18
19
19
arm-none-eabi-ar rcs BUILD/mbed-core-$BOARDNAME.a `xargs -n 1 < ./BUILD/$BOARDNAME/GCC_ARM/.link_options.txt | grep "\.o" | grep -v "main.o"`
20
+ cp BUILD/mbed-core-$BOARDNAME.a $ARDUINOCORE/libs/libmbed.a
20
21
cd mbed-os && find . | grep "\.h" | xargs -I % cp --parents % $ARDUINOCORE/../../cores/arduino/mbed
21
- cd BUILD && find . | grep "\.h" | xargs -I % cp % $ARDUINOCORE/../../cores/arduino/mbed
22
+ #cd BUILD && find . | grep "\.h" | xargs -I % cp % $ARDUINOCORE/../../cores/arduino/mbed
23
+ cp ./BUILD/$BOARDNAME/GCC_ARM/.link_script.ld $ARDUINOCORE/linker_script.ld
22
24
23
- # find a way to extract PinNames.h and device.h
24
- # patch Callback.h
25
+ # ~ find a way to extract PinNames.h and device.h~
26
+ # ~ patch Callback.h~
25
27
# copy linker script (eg. BUILD/DISCO_F429ZI/GCC_ARM/.link_script.ld)
26
28
27
29
openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg -c "init" -c "reset init" -c "halt" -c "flash write_image erase ./BUILD/$BOARDNAME/GCC_ARM/mbed-os-program.elf" -c "verify_image ./BUILD/$BOARDNAME/GCC_ARM/mbed-os-program.elf" -c "reset run" -c shutdown
You can’t perform that action at this time.
0 commit comments