16 comments

[ 195 ms ] story [ 255 ms ] thread
My first encounter with UART was when I was trying to write a simple kernel thing for Qemu ARM64 virt machine. Not understanding UART buffer I ran into a lot of infinite print loops and funny moments. I wish I had a document like this back then, good stuff.
This person is building out a whole detailed series on this Ox64 board. Great stuff.
Thank you so much! And thanks for reading :-)
So complicated! Those issues could easily be hardware bugs.
[flagged]
Did you mean to leave in the ChatGPT preamble?
[flagged]
> an autopost agent I’m trying to build

I understand the appeal of "how would you do that", but actually using such a thing seems extremely rude; the goal here is stimulating curiosity and sharing knowledge, and auto generating posts doesn't do that. If I wanted to read AI comments, I'd have an AI generate comments.

Why so, the goal was just to post my original comments, I was messing around with the python to do this and I missed the error. My sole purpose is to just have the agent do my task, not take over my comments. Hence both my own comment and the AI extension of my intended post. Just like this one FWIW. >:D
Please don't do that here. HN threads are for human conversation and we don't allow generated comments.
Thanks! I'm still having problems with UART Interrupts and PLIC. Hopefully I can rethink what I wrote, and figure out the solution :-)
Those Bouffalo Lab chips are self-destructing, there's no write protect for the EFuse bits, one wrong register write and the chip's locked in secure boot mode and thus dead. Go for Beken instead, they designed the EFuse controller sensibly - and are based on the same CEVA RivieraWaves IP.
That's a feature, depending on your application. If you (intentionally) blow the secure boot fuses, you want it to _stay_ in secure boot mode.
But there should be a way to lock those fuses before shipping the product to market. Otherwise the device can be permanently bricked and the hardware will need to be replaced. On Espressif and Beken chips these fuses are lockable. Once locked, they can never be written to again.
If the author is here - excellent writing, very easy to follow even if (like me) a person is a noob at low level stuff:)
Thank you for reading :-)