Arduino Drawing

Web

codebender.cc

Fritzing

Fritzing: electronics made easy
Make Your Own Fritzing Parts – Custom Breadboard SVG
Issue 875: User-created parts
Launchpad SVG for Fritzing
TI Launchpad
New CC3200 Launchpad Fritzing Part
Sharing some Fritzing parts that I’ve made
Sharing a custom Fritzing part
Fritzing Parts
Github: Fritzing Parts

$ sudo apt-get install libboost-dev libquazip-dev qtchooser
$ sudo apt-get install qt-sdk
$ export QT_SELECT=5
$ sudo apt-get install libqt5svg5*
$ sudo apt-get install libqt5serial*
$ cd parts
$ git submodule update --init --recursive
$ git checkout master
$ cd ..
$ qmake
$ make -f Makefile.Debug
$ ./Fritzing
Core parts:
C:\xxx\Fritzing-0.9.2b\pdb\core

User Parts:
C:\Users\Andreas\AppData\Roaming\Fritzing\parts\user
C:\Users\Andreas\AppData\Roaming\Fritzing\parts\svg\user\breadboard

Real Time Linux (PREEMPT_RT / Xenomai)

Real-Time Linux Wiki
OSADL – Open Source Automation Development Lab eG

Wikipedia

Xenomai (en)
RTAI (Real Time Application Interface) (en)
RTAI (Real Time Application Interface) (de)
RTLinux (de)

Tutorial

Getting real (time) about embedded GNU/Linux
Realtime Linux für Debian
Introducing Xenomai 3
How fast is fast enough? Choosing between Xenomai and Linux for real-time applications (PDF)

Raspberry Pi

Raspberry Pi 4B: Real-Time System using Preempt-RT (kernel 4.19.y)
Raspberry Pi: Real Time System – Xenomai Patching Tutorial for Kernel 4.14.y
Real-Time Linux on the Raspberry Pi
Echtzeit mit dem Raspberry Pi und Linux PREEMPT_RT
github.com/claudioscordino/rpi3-xenomai

Eclipse Embedded for ARM

see blog.bachi.net mbed.org
see blog.bachi.net Regular Expression

  • Eclipse Neon (4.6)
  • Eclipse Mars (4.5)
  • Eclipse Luna (4.4)
  • Eclipse Kepler (4.3)
  • Eclipse Juno (4.2)

How to install the GNU ARM Eclipse plug-ins?
How to install the Windows Build Tools?
GNU ARM Eclipse plug-ins: Received fatal alert: handshake_failure

livius dot net – IT Design & Consulting – Creativity without borders

cross_make / cross_gcc not set

Invalid project path: Include path not found

Remove:
<entry kind="includePath" name="/${ProjName}/#undef __ARM_FP">
    <flag value="BUILTIN|READONLY|VALUE_WORKSPACE_PATH"/>
</entry>
<entry kind="includePath" name="/${ProjName}/#undef __ARM_FEATURE_FMA">
    <flag value="BUILTIN|READONLY|VALUE_WORKSPACE_PATH"/>
</entry>
<entry kind="includePath" name="/${ProjName}/#undef __ARM_NEON__">
    <flag value="BUILTIN|READONLY|VALUE_WORKSPACE_PATH"/>
</entry>
<entry kind="includePath" name="/${ProjName}/#undef __ARM_NEON">
    <flag value="BUILTIN|READONLY|VALUE_WORKSPACE_PATH"/>
</entry>

Add:
<language id="org.eclipse.cdt.core.gcc">
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/lib/gcc/arm-none-eabi/6.3.1/include">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/lib/gcc/arm-none-eabi/6.3.1/include-fixed">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/arm-none-eabi/include">
        <flag value="BUILTIN|READONLY"/>
    </entry>
</language>
    
<language id="org.eclipse.cdt.core.g++">
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/arm-none-eabi/include/c++/6.3.1">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/arm-none-eabi/include/c++/6.3.1/arm-none-eabi/thumb/v8-m.main">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/arm-none-eabi/include/c++/6.3.1/backward">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/lib/gcc/arm-none-eabi/6.3.1/include">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/lib/gcc/arm-none-eabi/6.3.1/include-fixed">
        <flag value="BUILTIN|READONLY"/>
    </entry>
    <entry kind="includePath" name="C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/arm-none-eabi/include">
        <flag value="BUILTIN|READONLY"/>
    </entry>
</language>

Standards

mbed: CMSIS-DAP
mbed: CMSIS-DAP Interface Firmware
GitHub: mbedmicro/CMSIS-DAP
Keil: CMSIS-DAP

Tutorials

Installing Eclipse for use with FreeRTOS.org
ARM-Projects by Martin THOMAS

Plugins

GNU ARM Eclipse Plug-ins with J-Link Debugging Support
GNU ARM Eclipse Plug-ins
Welcome to the EmbSysRegView Project
Eclipse Embedded Systems Register View, displays special function Registers (SFRs) while debugging

undefined reference to `__real_main'

link: ROME2_P1_A4.elf
../mbed/TARGET_NUCLEO_F446RE/TOOLCHAIN_GCC_ARM/retarget.o: In function `__wrap_main':
retarget.cpp:(.text.__wrap_main+0xa): undefined reference to `__real_main'
collect2.exe: error: ld returned 1 exit status

Solution:
add "-Wl,--gc-sections" to LD_FLAGS and LD

PThread / POSIX Thread

  • synchronization
  • threads
  • barrier point
  • pthread_init()
  • sem_init()
  • pthread_barrier_init

“For real applications there are more polished libraries such as pthreads for kernel threads or GNU Portable Threads (Pth) for user space threads.”

“The GNU Pth (GNU Portable Threads) scheduling itself is done in a cooperative way, i.e., the threads are managed by a priority- and event-based non-preemptive scheduler. The intention is that this way one can achieve better portability and run-time performance than with preemptive scheduling. The event facility allows threads to wait until various types of events occur, including pending I/O on filedescriptors, asynchronous signals, elapsed timers, pending I/O on message ports, thread and process termination, and even customized callback functions.”

Oracle Multithreaded Programming Guide
POSIX Threads Programming
POSIX thread (pthread) libraries
POSIX thread (pthread) libraries
Linux-UNIX-Programmierung – Threads
Parallele Programmierung mit Threads
Introduction to Multi-Threaded Programming, 1999
Eine Einführung in die Programmierung von Threads unter Linux
Implementing a Thread Library on Linux
GNU Pth – The GNU Portable Threads, 2006
Linux Threads Frequently Asked Questions (FAQ), 1996

Joinable and Detached Threads

Oracle Multithreaded Programming Guide: Set Detach State
Joining and Detaching Threads
Joinable and Detached Threads
Pthread create as detached

Thread (computing)
Light-weight process
Fiber (computer science)
Green threads
Thread (Informatik)
User-Thread
Native POSIX Thread Library (NPTL)

Alle Fäden in der Hand – Thread Programmierung unter Linux in C und C++ (Teil 1)
Alle Fäden in der Hand – Thread Programmierung unter Linux in C und C++ (Teil 2)

The Linux compatibility thread!

Thread-Programmierung mit Java

Oracle Multithreaded Programming Guide – Avoiding Deadlock

Map / Reduce

The one line of C code that will make your program ten times faster

Barriere

Semaphore

The Little Book of Semaphores

Monitor

Wikipedia: Monitor