Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Commit c23acf0

Browse files
committed
Workspace configuration files
1 parent 58e665a commit c23acf0

3 files changed

Lines changed: 85 additions & 0 deletions

File tree

config_f/colcon_foxy_1.meta

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"names": {
3+
"tracetools": {
4+
"cmake-args": [
5+
"-DTRACETOOLS_DISABLED=ON",
6+
"-DTRACETOOLS_STATUS_CHECKING_TOOL=OFF"
7+
]
8+
},
9+
"rcutils": {
10+
"cmake-args": [
11+
"-DENABLE_TESTING=OFF",
12+
"-DRCUTILS_NO_THREAD_SUPPORT=ON"
13+
]
14+
},
15+
"rcl": {
16+
"cmake-args": [
17+
"-DRCL_LOGGING_ENABLED=OFF"
18+
]
19+
},
20+
"microxrcedds_client":{
21+
"cmake-args": [
22+
"-DUCLIENT_PIC=OFF",
23+
"-DUCLIENT_PROFILE_DISCOVERY=OFF",
24+
"-DUCLIENT_PROFILE_TCP=OFF"
25+
]
26+
},
27+
"rmw_microxrcedds":{
28+
"cmake-args": [
29+
"-DRMW_UXRCE_MAX_NODES=1",
30+
"-DRMW_UXRCE_MAX_PUBLISHERS=1",
31+
"-DRMW_UXRCE_MAX_SUBSCRIPTIONS=1",
32+
"-DRMW_UXRCE_MAX_SERVICES=0",
33+
"-DRMW_UXRCE_MAX_CLIENTS=0",
34+
"-DRMW_UXRCE_MAX_HISTORY=1",
35+
"-DRMW_UXRCE_XML_BUFFER_LENGTH=400"
36+
]
37+
}
38+
}
39+
}

config_f/flash_dashing.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#! /bin/bash
2+
3+
set -e
4+
set -o nounset
5+
set -o pipefail
6+
7+
8+
pushd $FW_TARGETDIR/NuttX > /dev/null
9+
10+
./scripts/flash.sh olimex-stm32-e407
11+
12+
popd > /dev/null

config_f/flash_foxy.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#! /bin/bash
2+
3+
set -e
4+
set -o nounset
5+
set -o pipefail
6+
7+
8+
pushd $FW_TARGETDIR/NuttX > /dev/null
9+
10+
if [ "$PLATFORM" = "olimex-stm32-e407" ]; then
11+
if [ -f nuttx.bin ]; then
12+
echo "Flashing firmware for $RTOS platform $PLATFORM"
13+
14+
if lsusb -d 15BA:002a; then
15+
PROGRAMMER=interface/ftdi/olimex-arm-usb-tiny-h.cfg
16+
elif lsusb -d 15BA:0003;then
17+
PROGRAMMER=interface/ftdi/olimex-arm-usb-ocd.cfg
18+
elif lsusb -d 15BA:002b;then
19+
PROGRAMMER=interface/ftdi/olimex-arm-usb-ocd-h.cfg
20+
else
21+
echo "Error. Unsuported OpenOCD USB programmer"
22+
exit 1
23+
fi
24+
25+
openocd -f $PROGRAMMER -f target/stm32f4x.cfg -c init -c "reset halt" -c "flash write_image erase nuttx.bin 0x08000000" -c "reset" -c "exit"
26+
else
27+
echo "Nuttx/nuttx.bin not found: please compile before flashing."
28+
fi
29+
else
30+
echo "Unrecognized board: $PLATFORM"
31+
exit 1
32+
fi
33+
34+
popd > /dev/null

0 commit comments

Comments
 (0)