logoalt Hacker News

ACCount39 • last Wednesday at 10:08 PM • 2 replies • view on HN

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.


Replies

jaydenmilne • last Wednesday at 10:51 PM

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.

jaydenmilne • last Wednesday at 11:00 PM

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.

➕ show 2 replies