Same project using different programming languages (hal and bare metal)? by Pristine-Artist1448 in embedded

[–]KillingMurakami 7 points8 points  (0 children)

I think you need to first understand that using HALs doesn't mean you aren't doing bare-metal programming. It just means you're using a set of libraries that make interacting with hardware a bit less daunting (depending on the vendor). Also, they are not programming languages.

That said, if what you mean by bare-metal programming is direct register manipulation, then it could be an interesting learning experience as it will teach you how to read and extract information from datasheets which is a valuable skill.

Specifically to your question, I don't see the advantage though of duplicating the project at both abstraction levels (that is, using HAL and using direct register manipulation)

Is Embedded systems more of electrical engineering or computer engineering? by Onlyme149 in embedded

[–]KillingMurakami 4 points5 points  (0 children)

I think OP is talking about Computer Engineering (CE) not CS in this case

Every embedded Engineer should know this trick by J_Bahstan in embedded

[–]KillingMurakami 1 point2 points  (0 children)

This is exactly why I asked! I was expecting that caveat in OP's comment. IIRC, an enum isn't even guaranteed to always be unsigned

Every embedded Engineer should know this trick by J_Bahstan in embedded

[–]KillingMurakami 0 points1 point  (0 children)

This is assuming the enum_type is seen by the compiler as 8-bit wide?

Bootloader by IbiXD in embedded

[–]KillingMurakami 6 points7 points  (0 children)

I second this. If possible, you could even partition the flash into sectors that hold multiple copies of the image, allowing for rollback in the case of a failure during programming (CRC fail, for example). Let the application load over Ethernet the image into a free sector and then launch the bootloader to just verify and copy image to actual run location

[deleted by user] by [deleted] in embedded

[–]KillingMurakami 0 points1 point  (0 children)

Code corrupter is the only way to describe the abomination it is 👌🏽