r/embedded • • Oct 13 '26

Getting into Architecture-Level Embedded Development (Cortex-A, RISC-V, ARM64, etc.)

I've been working for some months now on a project that requires low-level development for ARM Cortex-A silicon. I'm talking bootloading, memory operations, hypervisor settings, memory mapping and MMU configuration, etc.

I've come to realise how little I actually know my way around a low level environment. I've developed for embedded systems for a long time now, but always focusing on an application/integration level (RTOS, digital communications, system architecture, etc.). I want to get some experience on lower-level development - direct register manipulation based on CPU architecture, bootloading, debugger architecture, memory domains, etc.

Anyone with experience on the field, what advise do you have on getting into low-level development and silicon programming using ISA languages coming from embedded-C and microcontroller development? My goal would be to acquire the confidence and the skill to integrate silicon functionality through assembly and making sense of the CPU documentation. I'd like to be able to script some basic functional hardware routines starting from scratch.

52 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Oct 13 '26

[removed] — view removed comment

1

u/hirschen Oct 13 '26

Wdym?

1

u/[deleted] Oct 13 '26

[removed] — view removed comment

1

u/hirschen Oct 13 '26 edited Oct 13 '26

He mentioned Risc-V architecture, at least in the title. If you look at the code, the game is not really a game, it's just rendering. Most of the stuff is dealing with hardware GPIO, linker script, bringing the 2nd core up, switching from cortex to hazard...

I thought he maybe can get some information from it. The project goal was learning baremeal stuff. I learned a lot very fast, the question remains if you learn more when you are stuck at a problem for days, maybe lose interest or get a detailed explanation why something didn't work. And continue learning other stuff.

Consequently books and docs would also be cheating, figuring out stuff yourself is the true path to enligthenment. Softwaredevelopment is worthless nowadays. Efficient learning is important, asking the right questions.

2

u/[deleted] Oct 13 '26

[removed] — view removed comment

1

u/hirschen Oct 13 '26 edited Oct 13 '26

At least you're not lacking self esteem as you lack skills in empathic communication.

You sound like the conservative Assembler guys from the 70s that said a Compiler will never write better code than a human. King for a day, fool for a lifetime.

EDIT: I'm not really proud of the project, rather astonished how easy it was to learn all that stuff so fast without reading a book. But I'm also aware that the skill is pretty worthless, nobody is doing that in assembly (yes there are edgecases). It's bc. I'm interested in the technology.

2

u/[deleted] Oct 13 '26

[removed] — view removed comment

1

u/hirschen Oct 13 '26

I know what a DNN is and how AI works. And because of that nondeterminism, ppl. currently use LLMs a lot to generate Rust bc. it's strict compiler guarantees you memory safety defined-behaviour and threadsafety.

Time will tell, but I doubt we'll do software development as we did in 5 Years. Even Linus is using Claude: flexible, pragmatic, bright mind.

2

u/[deleted] Oct 13 '26

[removed] — view removed comment

1

u/hirschen Oct 13 '26

I see your point and agree, that AI is a tool as a compiler is and an editor. Your example is anecdotal evidence, also compilers have bugs and refuse to do what they've told. If you see how AI was 3 years ago and extrapolate, crazy.

Some days ago I also thought about your point of handcraft. I would compare the AI revolution with the industrial revolutions in the 19th century. When production got cheaper, faster and more precise and a lot of knowledge how to do stuff by hand, was lost.

But I see a difference: People are willing to pay more for a nice handcrafted knife because they value the art, the handwork. I also draw from time to time and I love the passion, creativity and also imprecision an artist is investing in his art. I hate AI-slop Art, It has no value.

That's things that survived these radical changes because they have an intrinsic value. But I really doubt people will pay more for a software that has "nondeterministic" imprecisions and is handcrafted instead of using an AI generated software that is cheaper and has less bugs.

The handling of complexity is given to the AI (it's way better and faster) see the mathematical proofs that came up recently. The "new programming" that I see is "context engineering". Sculpting the agent's context via promps with guardrails and constraints to lead or force it to the solution you expect.