Reverse Project - Mini Oscilloscope

Reverse Project - Mini Oscilloscope. Reprogram it using SDCC
To download assembly instructions & user manual (everything in Chinese) use the password "DFRE" as shown below

Original Project by Creative Lau
Project origin: https://github.com/CreativeLau/Mini-DSO
Video: https://www.youtube.com/watch?v=-8PadlS7c4c
New Software
The project from Creative Lau ported to SDCC can be downloaded below. The HEX file is included.
Bug in SDCC
SDCC does not produce proper code for reading a string from a table in program memory. The Mini-DSO uses two of these tables, and reading them the SDCC way makes the program crash. Replacing the tables by functions fixed the issue.
In-Circuit Programming of the STC MCU
Download the STC-ISP tool from the STCmicro website.Get device information
- Switched off the device,
- Click the Check MCU button
- Switch the device on
Information about the MCU appears in the output window.
An interesting observation here was that it showed the MCU as an STC8A8K64D4 instead of an S4A12. I used STC-ISP version◦V6.91K. V6.94K doesn’t seem to have the Check MCU button.
Upload a HEX file
- Switch off the board
- Load the HEX file in the STC-ISP tool and
- Click the Download/Program button
- Switch on the board to start programming
It takes about ten seconds to complete.
Full Article
The complete article can be downloaded here.
Discussion (2 comments)
Alectronic 4 days ago
I do not see what needed to be hacked since the Mini-DSO v3.0 from CreativeLau already worked!
And was the same circuit with the same 40pins STC8A8k64 controller and exactly the same 7pins OLED with the same Mini-DSO program. It was only that most by CreativeLau online published links to the v0.3 hex file were corrupt and didn't work as to be expected. Only the mini-DSO-Master version on Github was working fine!
The other version 0.3 files locked as soon as the main Oled screen showed when the EC11 knob was pushed-in long enough to show and then also the blue led no longer lit up. Afterwards reactivation of the mini-DSO only was possible by reconnecting the 5V power which unlocked the DSO in the corrupt v0.3 versions.
R v. Poppelen 3 months ago
I managed to load the new program.
Everything works exept writing to the Eprom.
If I change the BRT (brightness) and store it I get ""save fail"
After repower BRT is set to the default value.
Can you help me?
Thanks in advance.
Greetings Robert-Jan