Skip to content

Instantly share code, notes, and snippets.

View wdwalker's full-sized avatar

Willie Walker wdwalker

  • Hollis, NH
View GitHub Profile
@wdwalker
wdwalker / mbed_app.json
Created March 30, 2017 23:42
mbed_app.json for HelloMbedStepper - defines IN1, IN2, IN3, IN4 for different boards
{
"macros": [
"NDEBUG=1"
],
"config": {
"pin1_name": {
"help": "Pin1 for stepper motor controller",
"macro_name": "IN1",
"required": true
},
@wdwalker
wdwalker / main.cpp
Created March 30, 2017 23:38
HelloMbedStepper app
#include <stdlib.h>
#include <mbed.h>
#include <wdwalker-mbed/stepper/StepperMotor.h>
/**
* The fastest we want to go (microseconds/step). If this is too small,
* the motor will block.
*/
const uint32_t MIN_SLEEP_US = 1000;
@wdwalker
wdwalker / .mbedignore
Created March 30, 2017 23:35
List of paths to ignore in mbed to eliminate use of mbed OS so you can stick with a simple main loop application
mbed-os/rtos/*
mbed-os/features/FEATURE_CLIENT/*
mbed-os/features/FEATURE_COMMON_PAL/*
mbed-os/features/FEATURE_UVISOR/*
mbed-os/features/frameworks/*
mbed-os/features/net/*
mbed-os/features/netsocket/*
mbed-os/features/storage/*
mbed-os/events/*
@wdwalker
wdwalker / output.txt
Created March 24, 2017 15:22
mbed export -m LPC1768 -I gnuarmeclipse of BBB
mbed export -m LPC1768 -i gnuarmeclipse
Scan: .
Scan: FEATURE_BLE
Scan: FEATURE_LWIP
Scan: FEATURE_ETHERNET_HOST
Scan: FEATURE_LOWPAN_BORDER_ROUTER
Scan: FEATURE_LOWPAN_HOST
Scan: FEATURE_LOWPAN_ROUTER
Scan: FEATURE_NANOSTACK
Scan: FEATURE_NANOSTACK_FULL
@wdwalker
wdwalker / output.txt
Created March 17, 2017 12:06
Bare Bones Blinky Memory Map (tuned mbed)
python ~/tmp/BBB/mbed-os/tools/memap.py -d -t GCC_ARM ./BUILD/LPC1768/GCC_ARM/BBB.map
+--------------------------------------+-------+-------+------+
| Module | .text | .data | .bss |
+--------------------------------------+-------+-------+------+
| Fill | 2 | 0 | 3 |
| Misc/crt0.o | 116 | 0 | 0 |
| Misc/crtbegin.o | 108 | 8 | 28 |
| Misc/crtend.o | 4 | 0 | 0 |
| Misc/crti.o | 8 | 0 | 0 |
| Misc/crtn.o | 16 | 0 | 0 |
@wdwalker
wdwalker / output.txt
Created March 16, 2017 20:56
Bare Bones Blinky Memory Map (built with mbed tools with the release profile and a hardcoded "default_lib": "small" in the targets.json file
wwalker$ python mbed-os/tools/memap.py -d -t GCC_ARM BUILD/LPC1768/GCC_ARM/BBB.map
+----------------------------------------+-------+-------+------+
| Module | .text | .data | .bss |
+----------------------------------------+-------+-------+------+
| Fill | 35 | 0 | 5 |
| Misc/crt0.o | 116 | 0 | 0 |
| Misc/crtbegin.o | 108 | 8 | 28 |
| Misc/crtend.o | 4 | 0 | 0 |
| Misc/crti.o | 8 | 0 | 0 |
| Misc/crtn.o | 16 | 0 | 0 |
@wdwalker
wdwalker / output.txt
Created March 16, 2017 20:53
Bare Bones Blinky Memory Map (built with mbed tools using the release profile)
python mbed-os/tools/memap.py -d -t GCC_ARM BUILD/LPC1768/GCC_ARM/BBB.map
+---------------------------------------+-------+-------+------+
| Module | .text | .data | .bss |
+---------------------------------------+-------+-------+------+
| Fill | 41 | 4 | 8 |
| Misc/crt0.o | 116 | 0 | 0 |
| Misc/crtbegin.o | 108 | 8 | 28 |
| Misc/crtend.o | 4 | 0 | 0 |
| Misc/crti.o | 8 | 0 | 0 |
| Misc/crtn.o | 16 | 0 | 0 |
@wdwalker
wdwalker / output.txt
Created March 16, 2017 18:08
Bare Bones Blinky Memory Map (built with mbed tools)
python mbed-os/tools/memap.py -t GCC_ARM -d BUILD/LPC1768/GCC_ARM/BBB.map
+---------------------------------------+-------+-------+------+
| Module | .text | .data | .bss |
+---------------------------------------+-------+-------+------+
| Fill | 66 | 4 | 8 |
| Misc/crt0.o | 116 | 0 | 0 |
| Misc/crtbegin.o | 108 | 8 | 28 |
| Misc/crtend.o | 4 | 0 | 0 |
| Misc/crti.o | 8 | 0 | 0 |
| Misc/crtn.o | 16 | 0 | 0 |
@wdwalker
wdwalker / output.txt
Created March 16, 2017 18:07
Bare Bones Blinky Memory Map (no mbed, but using mbed tools to analyze the map)
python mbed-os/tools/memap.py -t GCC_ARM -d ~/work/github/wdwalker/BBB/Release/BBB.map
+----------------------------------+-------+-------+------+
| Module | .text | .data | .bss |
+----------------------------------+-------+-------+------+
| Misc/crt0.o | 116 | 0 | 0 |
| Misc/crtbegin.o | 108 | 8 | 28 |
| Misc/crtend.o | 4 | 4 | 0 |
| Misc/crti.o | 8 | 0 | 0 |
| Misc/crtn.o | 16 | 0 | 0 |
| Misc/libc_nano.a(lib_a-exit.o) | 40 | 0 | 0 |
@wdwalker
wdwalker / output.txt
Created March 16, 2017 14:19
Output of 'mbed detect'
[mbed] Detected RBLAB_BLENANO, port /dev/tty.usbmodem14642, mounted /Volumes/DAPLINK
[mbed] Supported toolchains for RBLAB_BLENANO
+--------+-----------+-----------+-----+---------+-----+
| Target | mbed OS 2 | mbed OS 5 | ARM | GCC_ARM | IAR |
+--------+-----------+-----------+-----+---------+-----+
+--------+-----------+-----------+-----+---------+-----+
Supported targets: 0
[mbed] Detected NUCLEO_F042K6, port /dev/tty.usbmodem14623, mounted /Volumes/NODE_F042K6