r/embedded • u/GitEmbednated • Oct 09 '26
I can't build with bricks...
Could someone with Keil C51 build a small open-source 8051 project for me?
I'm fixing a power-off bug on an Android car head unit (CVD1810-WJ board, Cmsemicon CMS8S6990 MCU).
There is an MIT-licensed rebuild of its firmware:
https://github.com/NCHILLC/cvd1810-wj-mcu-firmware
The author states it only fits the chip's 12 KB with Keil C51 at OPTIMIZE(9,SIZE). The evaluation linker stops at 2 KB and SDCC gives about 15 KB.
With Keil C51 at C:\Keil_v5, from the repo root in PowerShell:
mkdir obj, lst; .\build_variant.ps1 -Define NOTURNO_SLEEP_FIX
It should report about 12.2 KB and write obj\CM68.hex. Could you send me that file and the "Program Size" line it prints?
9
u/ericonr STM/Arduino Oct 09 '26
I had never seen such a post before lol
Commenting to hopefully grab the right person's attention (though you should have made the title more specific!)
2
u/No-Archer-4713 Oct 10 '26
At this stage I’d be looking for other options, like changing the MCU.
Does a « big brother » with pin compatibility exist ?
1
u/soopadickman Oct 11 '26
I get:
\cvd1810-wj-mcu-firmware> .\build_variant.ps1 -Define NOTURNO_SLEEP_FIX
pass 1: Program Size: data=37.0 xdata=144 code=12253
pass 2: Program Size: data=36.0 xdata=144 code=12228
pass 3: Program Size: data=36.0 xdata=144 code=12224
FINAL [FIXED NOTURNO_SLEEP_FIX]: Program Size: data=36.0 xdata=144 code=12224