Skip to main content

Contemplative Chronicles

Tools

FZF For zsh we need version more than 0.48 hence I can't use default apt from ubuntu linux. git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ~/.fzf/install # Set up fzf key bindings and fuzzy completion source <(fzf --zsh)

Martin Luther King Quotes

Tool Late We are now faced with the fact that tomorrow is today. We are confronted with fierce urgency of now. In this unfolding conundrum of like and history there is a such thing as being too late. Procrastination is still the thief of time. Life often leaves us standing bare, naked and dejected with a lost opportunity. The tide in the affairs of men does not remain at the flood; it ebbs.

NUTTX Porting

Installation Nuttx Installation Download Latest version 12.8.0 mkdir nuttxspace cd nuttxspace curl -L https://www.apache.org/dyn/closer.lua/nuttx/12.8.0/apache-nuttx-12.8.0.tar.gz?action=download -o nuttx.tar.gz curl -L https://www.apache.org/dyn/closer.lua/nuttx/12.8.0/apache-nuttx-apps-12.8.0.tar.gz?action=download -o apps.tar.gz tar zxf nuttx.tar.gz tar zxf apps.tar.gz Cmake vs make Key benefit of CMake is the out-of-tree building, which allows one to have different build folders for different configs, very proper if one need check multiple configs for the same codebase. Out-of-tree means above build folders can be out of Nuttx source tree.

Openocd

Build Openocd for STM32 Download openocd stm32 git clone https://github.com/STMicroelectronics/OpenOCD.git Build openocd As stlink is not supported by default we have to configure the Compiling OpenOCD To build OpenOCD, use the following sequence of commands: ./bootstrap ./configure --enable-stlink make sudo make install

PX4 tricks and tips

Upload new firmware from command line python3 Tools/px_uploader.py --port=/dev/ttyACM0 build/px4_fmu-v6c_default/px4_fmu-v6c_default.px4 Use mavlink console without QGC python3 Tools/mavlink_shell.py Using port /dev/serial/by-id/usb-Auterion_PX4_FMU_v6C.x_0-if00 Connecting to MAVLINK... NuttShell (NSH) NuttX-11.0.0 nsh> nsh> Hardware Debugging PX4 code using STM32Code IDE Hardware level debugging of PX4 code using STM32 debug ports provide more inside into low level hardware debugging. Attach to target I tried to download and run the code from IDE but it always results in exception.

Porting SST on Nucleo F303

The Quantum Framework, developed by Miro Samek, is a software framework designed for building event-driven, reactive embedded systems. It provides a structured approach to software development, emphasizing modularity, reusability, and scalability. At the core of the Quantum Framework is the concept of hierarchical state machines (HSMs), which are used to model the behavior of the system. HSMs allow for the representation of complex system behaviors in a hierarchical and modular manner, making it easier to understand and maintain the software.