Skip to content

Commit

Permalink
update compiler toolchain for 24.04 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeferguson authored Jan 2, 2025
1 parent e176906 commit 1b6b87e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:

- name: Get ARM toolchain
run: |
wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
tar xvfj gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C "$HOME"
wget https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz
tar xf arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz -C "$HOME"
- name: Setup path
run: echo "$HOME/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_PATH
run: echo "$HOME/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH

- name: Build Dyno
run: cd projects && cd dyno && make
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ Things to keep in mind if adapting to STM32F1, F2, or F3:
* Much of libcpp has been tested with F1 series. Notably, the gpio.h will not
work with F2 or F3 processors right now.

# Setup of development environment (24.04)

The toolchain had to be updated for 24.04 since the older gdb links against
libncurses5:i386, which is no longer available:

```
cd ~/bin
wget https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz
tar xf arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz
rm arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz
echo 'export PATH=$PATH:~/bin/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi/bin:$PATH' >> ~/.bashrc
```

# Setup of development environment (22.04)

I'm using the 2020-q4-major revision from the official GCC ARM launchpad
Expand Down
2 changes: 1 addition & 1 deletion projects/etherbotix/bootloader/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ a lot of data that needs to be copied, this should be set high. */


/* ---------- TCP options ---------- */
#define LWIP_TCP 0
#define LWIP_TCP 1
#define TCP_TTL 255

/* Controls if TCP should queue segments that arrive out of
Expand Down

0 comments on commit 1b6b87e

Please sign in to comment.