Skip to content

Instantly share code, notes, and snippets.

@mpater
mpater / unlock nrf52.md
Last active January 9, 2023 22:20
unlocking nRF52 with bluepill and STLinkV2

Flash DAPlink onto NUCLEO STLink v2

Had a NUCELO-F302R8 around, used it for the onboard STLink v2.
Broke out 'reserved' programming pins (SB4, SB6, SB8 and SB10) for SWD. Connected to STLink v2 clone.
Programmed DAPlink bootloader (stm32f103xb_bl_crc.bin) to 0x8000000 and firmware (0257_stm32f103xb__0x0000.bin) to 0x800C000.
Kept going into bootloader, jumpered 'button' (CN4-pin5 to JP1-pin1).
lsusb shows 'NXP ARM mbed' (okay text bug but works!).
Fired up 'opocd', installed 'nrf52' package.

Serial Console Monitor

To start:

screen /dev/ttyACM0 338400

To stop: <Ctrl> + A then k and yes.
To scroll up/down: <Ctrl> + Escape then up/down arrow to scroll. Escape to exit.

Manual flashing

Upgrading Lenovo Y480 screen from WXGA (1366X768 - HD) to FHD (1920x1080 - Full HD)

  • Confirmed that Y480 has single-channel LVDC from motherboard, Y580 had dual channel. Cannot just replace LCD with Full HD as its missing controller signals. Bummer.
  • Find compatible Full HD screen replacement
  • Find VGA-to-LVDS controller board to fit where DVD drive was located. Remove DVD drive and permanently fasten cover.
  • Find (slim) VGA cable to solder from motherboard to VGA controller board
  • How to turn off display when standby, etc?
  • How to adjust brightness via OS? If VGA output is used, backlight is off. sigh.
  • Processor has provisions for eDP and second channel LVDS but none are populated.
@mpater
mpater / SAM9.md
Last active January 14, 2017 20:01
Download & Deploy OEL on a BeagleBone Black
http://www.openenealinux.org/?page_id=1114
How To JTAG Raspberry Pi 2 (Without custom kernel)
https://movr0.com/2015/10/15/how-to-jtag-raspberry-pi-2-without-custom-kernel/
BeagleBone and JTAG
http://www.emb4fun.de/archive/bbjtag/index.html
Beagleboard:BeagleBone
https://gist.github.com/cnicolai/ceea84c03bcb9157a0230b524381a07d
https://gist.github.com/dupuy/1855764
@mpater
mpater / ESP8266 notes.md
Last active October 1, 2016 15:00
ESP8266 notes