Skip to content

Instantly share code, notes, and snippets.

@jeanthom
jeanthom / fix.txt
Created March 3, 2024 16:31
Fixing an Askoll M550 motor module
Fixing an Askoll M550 motor module, commonly found on some Whirlpool models (F22 error).
CHECK ALL SMD RESISTORS. INCLUDING THOSE HIDDEN UNDER THE SILICON PUTTY. MINE WAS BROKEN DUE TO AN OPEN-CIRCUIT ON A 33R RESISTOR NEXT TO A BIG CAPACITOR.
Some people (https://sites.google.com/site/entomeco/motor-m500-askoll) have reported issues with 150R resistors.

Decoding UART to plaintext

sigrok-cli -i my-sigrok-capture.srzip -P uart:baudrate=115200:rx=D0 -A uart=rx_data  | cut -d ' ' -f 2 | xxd -r -p > my-decoded-capture.txt
@jeanthom
jeanthom / diskwarrior-recipe1.md
Last active October 18, 2021 21:36
Using DiskWarrior from macOS recovery

This short tutorial explains how to run DiskWarrior 5 from the macOS recovery without using a USB key (ideal for helping someone over the phone).

  1. Boot the Macintosh into recovery mode (Cmd+R at boot)
  2. Ensure the Macintosh is connected to the internet
  3. Open a terminal
  4. Create a RAM disk (I chose a 1GB size)
diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://2097152`
  1. Unzip DiskWarrior.dmg from the DiskWarrior5.zip Alsoft sent you, and upload it to some place that can be accessed via unsecured HTTP (I used transfer.sh)
@jeanthom
jeanthom / kicad-recipe1.md
Created March 7, 2021 10:29
KiCad recipe: schematic to LaTeX

KiCad recipe: schematic to LaTeX

  1. Open your schematic, and export it to PostScript (we'll call it myschem.ps)
  2. Install ps2eps and run the following command: ps2eps -R + myschem.ps
  3. Include the newly created eps file into your LaTeX document using includegraphics
@jeanthom
jeanthom / ghdl-recipe1.md
Last active February 27, 2021 01:14
GHDL recipe: debugging assertion warnings

GHDL recipe: debugging assertion warnings

This method doesn't work with ghdl-mcode.

  1. Build your simulation with debug infos (ie. add -g flag to the ghdl build)
  2. Open the generated executable in a debugger
  3. Add a breakpoint on the __ghdl_fatal function (in gdb b __ghdl_fatal)
  4. Run the program with --assert-level=warning as its argument (in gdb run --assert-level=warning)
  5. Use the debugger backtrace functionality (in gdb bt) to resolve the origin of the issue
diff --git a/nmigen/back/rtlil.py b/nmigen/back/rtlil.py
index 100df5a..7581163 100644
--- a/nmigen/back/rtlil.py
+++ b/nmigen/back/rtlil.py
@@ -749,6 +749,9 @@ class _StatementCompiler(xfrm.StatementVisitor):
on_Assume = on_property
on_Cover = on_property
+ def on_Display(self, stmt):
+ pass
@jeanthom
jeanthom / omigen-to-nmigen.md
Last active June 10, 2020 07:56
Migrating a Migen codebase to nMigen

Migrating a Migen codebase to nMigen

In addition to nmigen.compat.

Signals

max=

Replace:

s = Signal(max=1234)