Page 1 of 1

Ease of programming

Posted: Tue Oct 19, 2021 9:39 pm
by Flamingo
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?

Re: Ease of programming

Posted: Wed Oct 20, 2021 1:03 am
by ESP_Sprite
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

Posted: Wed Oct 20, 2021 10:30 am
by Flamingo
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

Re: Ease of programming

Posted: Wed Oct 20, 2021 9:17 pm
by markkuk
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.

Re: Ease of programming

Posted: Thu Oct 21, 2021 1:05 am
by username
No, you can't compile code for ESP32 with Visual Studio.
Thats not technically correct ;-)
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.

Re: Ease of programming

Posted: Thu Oct 21, 2021 2:03 am
by chegewara