Hacker News new | ask | show | jobs
by ACCount39 3 days ago
What a wild SoC.

XIP from SPI flash with dual core but no Icache/Dcache? So that execution is kneecapped by fetches over a bus that's optimistically quad at 40MHz, and if both cores ever try to XIP together, one starves to death? What the fuck.

I'd go looking for a cache peripheral that just isn't enabled by the stock firmware. Because, why? Why would you do that in the design stage? Did they just expect the second core to be a DSP/protocol slave that either runs a few DSP routines loaded manually into SRAM, or spends most of its time in BT ROM? Did they expect the firmware devs to grit their teeth and manually SRAM every little bit of code that needs to do things at a speed faster than "glacial"? All to save a couple KB worth of SRAM for the cache? On a chip that relies on the SPI flash die for the bulk of its code and assets, and already ships a 512KB chunk of SRAM?

At this point, I feel like the reason chips like that don't see public documentation isn't something like "proprietary information", but that their makers live in shame of what they have created.

2 comments

Yup! Kind of crazy. The second core just draws the UI IIRC. I had Claude poke around for a cache but it didn't find anything, maybe I could say "continue" a few times and see what turns up. According to Claude the stock firmware does the same tricks of copying hot functions into SRAM from flash.

I think you're right, stock is around 40mhz. Right now it's running at 55mhz, that was the fastest stable speed we could squeeze out of it.

I have a player with the "bigger brother" SL6806 SoC (1 MiB sram) and I am curious to see what it does. The firmware looks similar. I wonder if the SL6801 is a cut down / artificially made terrible chipset. Maybe that firmware enables the cache that isn't used on the SL6801.
I know that it's common for vendors like this to use the same SoC dies in different products - like JieLi's "BT MCU" chips that use the same dies as "BT TWS", but with analog peripherals like headphone DAC+amp left unused. But halved SRAM?

Well, it's not impossible that those are the same dies that start as 1 MB but get "halved" if one of the halves is defective, or for market segmentation reasons. And that the same happened to caches. But it does seem a bit unlikely.

Did you find any MaskROM/calibration data chunks? Or vendor tools that might be writing to them?

Also, one way to tell if SL6806 is the same die as SL6801 is to compare MaskROMs.

Chips from the same family would usually have differences in ROM, while the same die with changed chip ID would, within a revision, have the exact same ROM. And it's not that common for those kinds of chips to ever do a revision, let alone one that changes ROM. The die either works well enough or it doesn't.

If the USB IDs/serials that differ from chip to chip come from ROM and not something like registers or fuses, it's different dies.