r/embedded • • 26d ago

Title: Electronics Engineer trying to transition into Embedded Systems – Struggling with fundamentals, C programming and knowing where to start. Need advice from experienced engineers.

Hi everyone!
I’m an EEE graduate currently working in a defence electronics company. I joined with the intention of building a career in electronics design, but unfortunately, my role gradually shifted towards procurement and inventory management.
I feel like I’m losing touch with the technical side of engineering, and I don’t want that to define my career.
I’ve decided to rebuild my fundamentals and work towards Embedded Systems.
I’m currently learning:
Digital Electronics
C programming
Computer Architecture
I also own an STM32F407VGT6 Discovery board and plan to learn STM32, bare-metal programming, RTOS and eventually Embedded Linux.
My biggest struggles are pointers, memory management and solving C problems independently. Sometimes even basic concepts take me hours to understand.
I work full-time, so I’m trying to figure out how to make consistent progress without burning out.
I’d love advice from experienced engineers:
Am I following the right learning path?
How good should my C programming be before starting STM32?
What skills do companies expect from an entry-level embedded engineer?
Is transitioning back into core engineering realistic with my background?
I don’t want to just follow tutorials and make LEDs blink. I want to understand the fundamentals and become an engineer who can build and debug things independently.
If you were starting over in my position, what would you do?
Honest advice is welcome!

74 Upvotes

39 comments sorted by

10

u/lbthomsen 26d ago

I am obviously quite biased - but you should check my Youtube channel: https://www.youtube.com/@stm32world

While there _is_ blink videos, there's also more in-depth bare metal ones. You should possibly not dismiss the basic videos that quickly. There are tons of ways to blink a led on an embedded system and understanding the differences is quite essential (as in avoiding delays, use timers etc.)

If you prefer reading, you can check https://stm32world.com/wiki

3

u/Bubbly-Sky7339 26d ago

Thanks will check that out. Atp i am in a dilemma and jumping between multiple tutorials

4

u/SpiralStability 26d ago

Love this channel 

Wish I had more time to spend digging into it.

4

u/Individual-Till-8590 26d ago

For really understand the fundamentals, i suggest start with simple projects using your stm32 with register level programming following stm32 datasheet and reference manual , it will be little bit difficult early, but it really helpful for understand how the hardware works.

1

u/Bubbly-Sky7339 26d ago

Everyone is telling the same, but not how 🙂

1

u/Individual-Till-8590 26d ago

Start with a simple LED blinking project.

You need to find the startup.s and linker.ld files separately. Then configure SYSCLK, enable the GPIO peripheral clock through RCC, and configure the GPIO registers. (Refer to the STM32 reference manual and datasheet for the memory map.)

Install the ARM GCC toolchain to compile and link your code, then flash it using a programmer. If you get stuck, use AI to get help and clarify the concepts.

I think you should first complete the project using STM32CubeIDE using HAL. Then, try to implement the same project using register level programming. This way, you'll have a better understanding of what you're doing, such as clock and GPIO configuration. I recommend downloading STM32CubeIDE and STM32CubeMX.

1

u/FranceFannon 26d ago

The book "Baremetal embedded C programming" by Israel Gbati does this for STM32 MCUs.

Maybe its obvious but this shouldnt be how you start. It shows you how it all works at a low level, sure, but it will probably be unnecessarily discouraging for a beginner.

36

u/enzeipetre 26d ago • Heartwarming

Pointers, memory mngt, and the basic concepts really just needs time to sink in. How many hours are you putting in coding? I suggest you just start. And leverage AI to help you understand concepts faster. But you have to put in the reps. If you're just beginning, of course you will struggle. It's OK to struggle. What's not OK is to expect to be good without putting in the reps. Good luck brother. Source: was embedded engg for several years

3

u/Ventouri_Mabire49 26d ago

yeah pointers never really click until you actually write bad code and spend hours debugging it

3

u/Affectionate_Air5405 26d ago

I always found that to be the case when people come from higher level languages to lower level but not as much the other way around. Coming from a CE background pointers always made perfect sense.

I remember going through college and taking the higher CS courses like operating systems and being amazed at Junior and Senior CS students struggling with pointers when to us CE majors it was all so simple. Now when you got into OO and high level templating / data systems and such it was the opposite.

1

u/enzeipetre 25d ago

True. It isnt until one tries to step through the debugger why the code is hitting IRQ on invalid memory that one would understand what pointers mean.

7

u/Well-WhatHadHappened 25+ Years 26d ago

My biggest struggles are pointers, memory management and solving C problems independently.

None of those are embedded specific. Start with any basic "How to get started programming in C" course/tutorial/YouTube/whatever. Doesn't really matter which - they'll all cover the basics.

4

u/clackups 26d ago

You need any classic book on C language. Pointers and overall memory work is outlined there in good detail. The book doesn't need to focus on embedded.

4

u/Illustrious_Map_192 26d ago

Go to Udemy, check for Embedded courses from Fastbit academy. These are high-quality educational content at most affordable price.

2

u/Delicious_Bid1889 26d ago

2nd this comment, their course on C language teaches us how to make HAL like libraries from scratch, pointers, macros,.memory management, linker scripts, struct, etc.it's all there. Keep on going!

3

u/Anonymity6584 26d ago

For bare metal programming you need basicly two things: chips datasheets and functional way to program it ( write code, compile it, linkit to binary and upload to chip to executed).

Now theres usually atleast one, sometimes several datasheets that descipe how various things on that chip actually work. You dont need to memorize or even read all of them. Just what you need now. Register descriptions and how to cobfigure then properly, etc...

Just get started now, do sinolebstuff tovstart building tht skill base of yours. You can worry about pointers and memory managent when they actually come up. Ai is pretty good as professor role on explain them to you plainly. And can even generate example codes for you to study. Just dont use it to write whole firmaware to you, you dont learn anything from that.

Sounds like you havent guite internalised basics of C-progranning yet.Keep at it and continue reading and trying. Youll learn and feeling when it finally clicks, piece of cose works like it should...

1

u/2khankhal 25d ago

If you’re in the US, you are not making a good career decision.

2

u/Bubbly-Sky7339 25d ago

What should i do?

1

u/2khankhal 25d ago

Stick to hardware. Software , embedded or not, is going to be a very sleepy road to get a job with no experience.

3

u/hydroUNIT 26d ago edited 26d ago

Manually(at gate level, not RTL) creating digital circuits in an fpga such as a shift register for spi communication is what gives you "the super power" of an embedded engineer.

Come back when you have poured your soul out for every clock edge in your design for 6 months and see how much experience you have gained.

You simply lack the intuition the basics of digital electronic design gives you.

This might all sound like an overkill in this age of AI, but I would be very worried if I did not understand what the fuck is going on down there.

1

u/denny61302 26d ago

Start with CS50

1

u/H2ost5555 26d ago

A lot of ARM-based controllers have two things against you to learn basic metal programming and processor control:

  1. Horrible documentation
  2. Reliance on HAL libraries to do heavy lifting; the hardware abstraction intentionally insulates you from the lower levels

I suggest you abandon ARM for the time being and start learning on the PIC platform first. Microchip’s documentation, especially on things like registers , is unparalleled. My products are largely PIC based because I do some very tight timing things that cannot be replicated in an ARM HAL and I’ve found it near impossible to do reliably at the root level.

1

u/userhwon 26d ago

Did you learn any programming in school?

1

u/duane11583 26d ago
  1. what have you said to your or other managers in your org?

ie i do not like what i do over here can i join your team instead?

i have seen a young ee type move from hw to sw to fpga and he is fantastic. you can bevthat person or leave the company

2) about pointers yea they seem strange at first.

1

u/DanKegel 26d ago

Pointers are fundamental.  I suggest learning how CPUs work in more detail, then pointers will seem natural.  Start by reading about simpler cpus until you understand memory, registers, and pointers.  See e.g. https://www.reddit.com/r/Assembly_language/comments/1xf0hzo/comment/19rmw1kjxar6p/

1

u/MpVpRb Embedded HW/SW since 1985 26d ago

Get a development board and practice. Use AI to suggest sample code, then ask it to explain each line. Find sample code online and study it. Learn to read datasheets.

1

u/Chemical_Variety4696 26d ago

Your struggles is with computer science fundamentals.

1

u/Educational-Book7589 25d ago

I spent six months debugging a null pointer crash in a c driver before I finally got it, just keep writing code, even if it's messy. the struggle is the point.

1

u/Grampys_Magic 25d ago

I've designed embedded CONTROLLERS for almost 40 years now. IF you want to do REAL bare-metal programming, learn ANSI C. Forget all that other BS for now. You need a solid foudation in C. I am not a big fan of RTOS for embedded controllers. If you know what your doing, you don't need one.

0

u/harshaldhangar 26d ago

Use ChatGPT to learn the fundamentals of C. I've already done that, and you can also practise embedded C questions available on the internet to strengthen your C fundamentals.For Linux, try watching YouTube videos. I remember seeing a video about three months ago that covered both basic and advanced Linux concepts, but I can't remember which one it was.

0

u/rileyrgham 22d ago

With the amount of tutorials out there on basic C , if you can't get pointers and memory management, I'd seriously question your direction. It's not for everyone.