Ease of programming

Flamingo
Posts: 3
Joined: Tue Oct 19, 2021 9:31 pm

Ease of programming

Postby Flamingo » Tue Oct 19, 2021 9:39 pm

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?

ESP_Sprite
Posts: 9772
Joined: Thu Nov 26, 2015 4:08 am

Re: Ease of programming

Postby ESP_Sprite » Wed Oct 20, 2021 1:03 am

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.

Flamingo
Posts: 3
Joined: Tue Oct 19, 2021 9:31 pm

Re: Ease of programming

Postby Flamingo » Wed Oct 20, 2021 10:30 am

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

markkuk
Posts: 38
Joined: Wed Mar 27, 2019 11:50 am

Re: Ease of programming

Postby markkuk » Wed Oct 20, 2021 9:17 pm

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.

username
Posts: 541
Joined: Thu May 03, 2018 1:18 pm

Re: Ease of programming

Postby username » Thu Oct 21, 2021 1:05 am

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.


Who is online

Users browsing this forum: No registered users and 90 guests