Answer the question
In order to leave comments, you need to log in
Is it possible to write firmware for a microcontroller in C++?
Good day, I would like to try my hand at programming microcontrollers, I know C ++ and python from programming languages, but after searching the Internet I found only information on programming in C, and then the question arose whether it was really possible to write a program for a microcontroller in C ++, if yes, then you can have some books or articles - where to start and where to dig.
Answer the question
In order to leave comments, you need to log in
Can. Atmel Studio for example. But it's easier for a beginner to start with Arduino, it's not quite C++, but almost. You also need to understand that microcontrollers are only half programming. the other half is electronics.
It is possible, but the problem is that C++ chips eat up a lot of memory - for desktop applications, for example, a couple of kilobytes may not be critical, but on microcontrollers every byte is valued.
Is it possible to write firmware for a microcontroller in C++?
Realistically, why not. Another thing is that usually in such tasks there is no abstraction for abstraction and monstrous patterns. Here it is much more difficult to write without new :)
First you need to choose a microcontroller - preferably one of the popular ones so that there are no problems with the availability of free software for development.
In general, one of the simple ones is to buy a scarf with STM32 or simpler
Download CoIDE or assemble it yourself on the basis of Eclipse
searching for information on the Internet, I found only information on programming in CEven in this case, if we consider C++ as a special case of C, then we can )
It is possible if there is a C ++ compiler to an assembler of a suitable architecture.
Start unequivocally with the choice of a microcontroller depending on the tasks, otherwise it may be visually possible to program for some solution from Siemens, but it costs $ 1000, and its GPIO terminals are so huge that you cannot clamp the LED leads in them, it will fall out , and it will also need 3 phases to power it :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question