Skip to content

Instantly share code, notes, and snippets.

View mcauser's full-sized avatar

Mike Causer mcauser

View GitHub Profile
@mcauser
mcauser / gist:8312a86491bddcaa262b978d632a1ecd
Created March 8, 2017 05:31
objdump nlrx64.o + PR #2943 v2
Mikes-MBP-15:mpy-cross mike$ make clean
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -f mpy-cross
rm -f mpy-cross.map
rm -rf build
Mikes-MBP-15:mpy-cross mike$ make
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build/genhdr
@mcauser
mcauser / gist:d18b1439c0271d8693773033b7279cb8
Created March 8, 2017 05:14
objdump nlrx64.o + PR #2943
Mikes-MBP-15:mpy-cross mike$ make clean
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -f mpy-cross
rm -f mpy-cross.map
rm -rf build
Mikes-MBP-15:mpy-cross mike$ make
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build/genhdr
Mikes-MBP-15:micropython mike$ cd mpy-cross
Mikes-MBP-15:mpy-cross mike$ make clean
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -f mpy-cross
rm -f mpy-cross.map
rm -rf build
$ make clean && make axtls
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -rf build
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
cd ../lib/axtls; cp config/upyconfig config/.config
cd ../lib/axtls; make oldconfig -B
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C config/scripts/config conf
cp ../../scripts/config/zconf.tab.h_shipped zconf.tab.h
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I. -c ../../scripts/config/conf.c -o conf.o
cp ../../scripts/config/zconf.tab.c_shipped zconf.tab.c
Quad version of the WS2812B RGB SHIELD
@mcauser
mcauser / frozen.c
Created May 12, 2016 15:50
micropython/micropython - /esp8266/build/frozen.c with .DS_Store in /esp8266/scripts
#include <stdint.h>
const char mp_frozen_str_names[] = {
".DS_St\0"
"_boot\0"
"flashbdev\0"
"hd44780\0"
"i2c_lcd\0"
"i2c_lcd_test\0"
"inisetup\0"
"neopixel\0"
@mcauser
mcauser / gist:aa81a8247d26adcabb4c
Created September 16, 2015 04:30
annoying crons
crontab -l | { cat; echo "* * * * * say it is now \$(date '+\%l \%M \%p')"; } | crontab -
@mcauser
mcauser / seeeduino-mega-timeout-problem.txt
Last active August 29, 2015 14:26
seeeduino mega timeout problem
Seeeduino Mega Timeout Problem
I have a sketch that fails to upload successfully each and every time.
Other simple sketches work fine.
Setup
* Arduino IDE 1.6.5
* Installed Seeeduino boards: https://raw.githubusercontent.com/Seeed-Studio/Seeeduino-Boards/master/package_seeeduino_index.json
* Show verbose output during compilation and upload
* Mac OS X Yosemite 10.10.2
* Seeeduino Mega connected to iMac via Mini-USB
@mcauser
mcauser / seeeduino-mega-timeout-log.txt
Created July 28, 2015 13:27
seeeduino mega timeout log
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/mega /var/folders/69/jl49sp2n22d2c1sm2pb3_v340000gn/T/build7698589463435088303.tmp/sketch_jul11a.cpp -o /var/folders/69/jl49sp2n22d2c1sm2pb3_v340000gn/T/build7698589463435088303.tmp/sketch_jul11a.cpp.o
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -c -g -x assembler-with-cpp -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/mega /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/
@mcauser
mcauser / seeeduino-mega-timeout-sketch.ino
Created July 28, 2015 13:25
seeeduino mega timeout sketch
/* ====== ESP8266 Demo ======
* Print out analog values
* (Updated Dec 14, 2014)
* ==========================
*
* Change SSID and PASS to match your WiFi settings.
* The IP address is displayed to soft serial upon successful connection.
*
* Ray Wang @ Rayshobby LLC
* http://rayshobby.net/?p=9734