Skip to content

Instantly share code, notes, and snippets.

View martonmiklos's full-sized avatar

Miklós Márton martonmiklos

View GitHub Profile
@martonmiklos
martonmiklos / ATmega16M1.cfg
Created February 1, 2024 09:08
ATmega16M1 IDA config file
.ATmega16M1
SUBARCH=107 ; should be AVR8 -- 107 is highest supported
ROM=16384
RAM=1280
EEPROM=512
area DATA REGISTERS_ 0x0000:0x0020 REGISTERS_
area DATA MAPPED_IO_ 0x0020:0x0100 MAPPED_IO_
mm@P15:/opt/microchip/mplabx/v6.15/mplab_platform/mplab_ipe$ ./ipecmd.sh /?
------------------------------------------------------------------------------------------------------
IPECMD COMMAND LINE HELP
------------------------------------------------------------------------------------------------------
Usage: ipecmd <deviceName> <toolName> [Options] - Note: Device and Tool are mandatory commands
Note: More examples available in [Readme for IPECMD.html] under installation docs folder
------------------------------------------------------------------------------------------------------
Options Description Default
------------------------------------------------------------------------------------------------------
# Communication Ports 1 thru 255 supported.

Shell Motorsport Bluetooth Remote Control

Shell Motorsport collection

Shell Oil Company in its gas station offers loyalty program under name Shell ClubSmart. Members collect points which can be later used to get rewards. In 2020 they have offered a collection of die-cast car models under name Shell Motorsport. All models of the colletion are equipped with electrical motor. One of the models - Nissan Formula E Gen 2 Car - contains a battery that can be used to control a model remotely over Bluetooth. In some markets a battery with

HiBoot 1.1.1.7 (Jan 8 2010 - 16:24:48)
HiBoot code: 30500000 -> 30519F00 BSS: -> 30550468
RAM Configuration:
Bank #0: 30000000 64 MB
Flash: 16 MB
In: serial
Out: serial
Err: serial
MAC: 00-00-00-00-00-02
mm@P15:~$ diff /tmp/env_ff /tmp/env_tb
9a10
> force_s3tc_enable=true
13a15,16
> NO_AT_BRIDGE=1
> XUL_APP_FILE=
14a18,19
> XRE_BINARY_PATH=
> MOZ_CRASHREPORTER_STRINGS_OVERRIDE=/usr/lib/thunderbird/crashreporter-override.ini
16a22
m@DESKTOP-4AITTRD /z/Projektek/flashrom_git
$ meson compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: "c:\Program Files\Meson\ninja.EXE" -C //VBoxSvr/mm/Projektek/flashrom_git/build
ninja: Entering directory `//VBoxSvr/mm/Projektek/flashrom_git/build'
[8/116] Compiling C object libflashrom-1.dll.p/helpers_fileio.c.obj
FAILED: libflashrom-1.dll.p/helpers_fileio.c.obj
"gcc" "-Ilibflashrom-1.dll.p" "-I." "-I.." "-I..\include" "-IC:\Program Files (x86)\National Instruments\Ni-845x\MS Visual C" "-fdiagnostics-color=always" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-Wextra" "-Werror" "-std=c99" "-Os" "-Wshadow" "-Wmissing-prototypes" "-Wwrite-strings" "-Wno-unused-parameter" "-Wno-missing-braces" "-D_DEFAULT_SOURCE" "-D_POSIX_C_SOURCE=200809L" "-D_BSD_SOURCE" "-D__BSD_VISIBLE" "-D__XSI_VISIBLE" "-D_NETBSD_SOURCE" "-D_DARWIN_C_SOURCE" "-DFLASHROM_VERSION=\"1.4.0-devel (git:v1.2-1291-gfa8720d2)\"" "-DHAVE_STRNLEN=1" "-DIS_WINDOWS=1" "-D__FLASHROM_LITTLE_ENDIAN__=1
@martonmiklos
martonmiklos / bootlog.txt
Last active January 20, 2023 15:27
Broken Techson TC DVR SS3008 IP NVR bootlog
Device does not boot on VGA black screen present.
UART pinout:
1: +3V3 (Square pin)
2: RX
3: Tx
4: GND
115200 8n1
PCB label: TD2808NS-A(V1.3)
@martonmiklos
martonmiklos / Bosch indego firmware strings.txt
Created September 25, 2022 19:46
Bosch indego firmware strings.txt
BOOTING xxxxx
CodVnxxx.bin
RdMapxxx.bin
CovInxxx.bin
CvMapxxx.bin
HMI__xxx.bin
DSMu1xxx.bin
DSMu2xxx.bin
LTH__xxx.bin
GrAstxxx.bin
@martonmiklos
martonmiklos / gist:27564ca2fc0ac7108c7fccc117e1413a
Created June 16, 2022 12:37
Circle contour for gencad issue reproduction
$HEADER
GENCAD 1.4
USER ""
DRAWING board-outline.cad
REVISION ""
UNITS USER 1000
ORIGIN 0 0
INTERTRACK 0
$ENDHEADER
@martonmiklos
martonmiklos / gencad.cad
Created June 14, 2022 14:51
gencad issue test
$HEADER
GENCAD 1.4
USER ""
DRAWING board-outline.cad
REVISION ""
UNITS USER 1000
ORIGIN 0 0
INTERTRACK 0
$ENDHEADER