New to coding for hardware, but new to coding.
I am reccomended to one of these boards for a NMEA 2000 project. I was going to start with an Arduino becuase of the support for getting up to speed with coding, but this ESP32 board is better hardware.
I am concerned that I am jumping in the deep end.
The code I am looking to work with is here
https://github.com/ttlappalainen/NMEA2000
I prefer C but I can figure out CPP i guess.
I assume the compiler to use is MS Visual Studio with all its quirks and incomprehensible work flows?
Is there a compiler avaialble for this board like for the Arduio for example?
Where to start?
Ease of programming
-
- Posts: 9749
- Joined: Thu Nov 26, 2015 4:08 am
Re: Ease of programming
That project uses ESP-IDF as its SDK/toolchain. You can use ESP-IDF standalone using your favourite editor to edit the files, or you can use Eclipse or Visual Studio, whatever you prefer.
Re: Ease of programming
Apologies, in typo. NOT new to coding
I am confused. VS2003, 2007 2010 .. all will compile executables that will run on the hardware?
Because all MS compilers require "runtime" libraries for C/CPP executables
What is the structure of the code? Is it calling a a base library unique to ESP32?
Can i implement windows objects like IOCP
https://docs.microsoft.com/en-us/window ... tion-ports
I am confused. VS2003, 2007 2010 .. all will compile executables that will run on the hardware?
Because all MS compilers require "runtime" libraries for C/CPP executables
What is the structure of the code? Is it calling a a base library unique to ESP32?
Can i implement windows objects like IOCP
https://docs.microsoft.com/en-us/window ... tion-ports
Re: Ease of programming
No, you can't compile code for ESP32 with Visual Studio. You can edit code and launch the build system from Visual Studio Code, which is an entirely different program. See the ESP-IDF Programming Guide and example code for code structure.
You can't use any Windows APIs. Some Unix/Linux type APIs like pthreads are available.
You can't use any Windows APIs. Some Unix/Linux type APIs like pthreads are available.
Re: Ease of programming
Thats not technically correctNo, you can't compile code for ESP32 with Visual Studio.
You can grab https://visualgdb.com/, and it works like a charm for the ESP32.
Honestly though, I would tell anyone starting out to use Visual Studio Code, and install PlatformIO. Its the simplest way to get started.
Who is online
Users browsing this forum: Dennie and 144 guests