Skip to content

Instantly share code, notes, and snippets.

View SeppoTakalo's full-sized avatar

Seppo Takalo SeppoTakalo

View GitHub Profile
@SeppoTakalo
SeppoTakalo / Manage dotfiles with git.md
Created December 3, 2024 09:44
Manage dotfiles with git

Install ccache for Arm GCC

  1. Download GNU Arm Embedded Toolchain
  2. Unpack: tar xf arm-none-eabi-gcc-<version>.tar.bz2
  3. Edit your .bashrc or .bash_profile or similar:
    1. Add to PATH as a LAST member: export PATH="$PATH:$HOME/gcc-arm-none-eabi-9-2019-q4-major/bin"
    2. Create ~/bin and add to PATH as a first member: PATH=$HOME/bin:$PATH
  4. Install ccache: sudo apt install ccache or brew install ccache
  5. Add links to $HOME/bin:
@SeppoTakalo
SeppoTakalo / Tune Mac OS X terminal.md
Last active December 3, 2024 05:49
Tune Mac OS X terminal

This page lists my personal preferences to set up proper command line for Mac OS X.

Change default shell to ZSH

Current default for Mac OS X Catalina, offers much better customizations that Bash.

chsh -s /bin/zsh

Install Homebrew

@SeppoTakalo
SeppoTakalo / Running Greentea tests manually.md
Last active September 25, 2018 10:05
Running Greentea tests manually

Running Greentea testcase manually

As you all know, Greentea test binaries contain whole testcase and rarely needs anything from external systems.

All external tools and commands like mbed test, htrun and mbedgt are just used to start this test binary and to parse result from serial port.

However, most of the testcases do not require any communication from host, and you are therefore capable of running those tests manually.

To do so:

@SeppoTakalo
SeppoTakalo / Debugging Mbed OS in Mac OS X.md
Last active October 31, 2023 14:53
Debugging Mbed OS in Mac OS X

Debugging Mbed OS in Mac OS X (and Linux)

Pre-requisities

For succesfully building Mbed OS applications in Mac OS X, following tools are required

Homebrew

https://brew.sh/

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"