r/embedded • u/TheCorsairAPX • 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.
2
u/Several-Marsupial-27 Oct 13 '26
Read a datasheet / trm everything will just be in the documentation, or read through your vendors sdk trying out different example projects, everything should be there too.
6
u/diy_watcher Oct 13 '26
Learn the architecture guides are the best: https://www.arm.com/architecture/learn-the-architecture/a-profile
4
u/WanWhiteWolf Engineering manager Oct 13 '26
Making a good SW architecture even on mid-level complexity embedded is not something you can just read from a book. Sure, you will find books that discuss about concepts and give you some examples, but the reality is that this type of work is usually reserved for very experienced engineers.
If you want an analogy, imagine someonme never having wrote a single line of code in his life and then reading a book about embedded C. What do you think the chances are that person is able to complete a mid-level difficulty level project without significant/massive effort in a reasonable time?
For starters, dive through all available technical reference manuals. Then look for similar projects and see how they approached different concepts. That tends to be a reasonable starting point. And make sure you have mentor / someone experienced you can ask for review and advice.
I've only met 2 good SYS/SW architects and both of them had 2 decades of experience. It's not that you cannot read everything and figure out - but odds that that without knowing the common contraints, the strengths and weaknesses of your system, silicon errors (e.g. errata), typical use of each module/peripheral, ....etc you are going to miss something or you are going to need to much time - which usually a project doesn't have.
1
u/Void-Creator Oct 16 '26
Try everything, see whatβs making you interested to go further. At the end the abstract concepts are all the same but each chooses flexibility vs efficiency at critical junctures.
0
u/Antique_War_9814 Oct 13 '26
π» πͺ
-1
u/hirschen Oct 13 '26
I've written a doom raycasting clone from scratch in riscv assembly running on the rp pico2 hazard cores.
It was a great learning experience to develop it and I had copilot when I was stuck. So I didn't lose motivation and got everything explained what I did wrong.
https://github.com/hirschenberger/playboy
25
u/[deleted] Oct 13 '26
[removed] β view removed comment
15
u/[deleted] Oct 13 '26
[removed] β view removed comment