3 ms·
I've been working on getting a calendar on an Inkplate 10. Great hardware but my god is the Arduino software awful. It doesn't even have incremental builds! A o
by IshKebab 2y ago
I've been working on getting a calendar on an Inkplate 10. Great hardware but my god is the Arduino software awful. It doesn't even have incremental builds! A one line change to my code means it completely recompiles a ton of libraries including mbedtls! The edit-compile-run cycle is like 3 minutes. Awful.
Arduino code and APIs are also really badly designed, and badly documented. The Inkplate uses an Xtensa ESP32 so the network code uses this crap:
https://github.com/espressif/arduino-esp32/blob/2.0.17/libraries/WiFiClientSecure/src/WiFiClientSecure.h https://github.com/espressif/arduino-esp32/blob/2.0.17/libra...
Does `int read();` block? Zero comments so you'll have to read the code, which by the way is very hard to find because of course intellisense doesn't work in the gimped VSCode that Arduino is calling their IDE (it's better than the old one at least, though it wouldn't take much).
The really frustrating thing is that Arduino has basically zero competition. I was hopeful for Mbed Studio for a while but they spent so long fucking it up with web based compilers, terrible home-brewed build systems (yotta? I think they went through several bad attempts), before finally doing the right thing (Mbed Studio) that I think everyone had given up waiting and they killed the whole project. Also it's obviously ARM only.
And I can't see that really changing. I think there's PlatformIO but I think that just wraps the Arduino code in less awfulness. As long as hardware manufacturers are writing their drivers and examples for Arduino it's going to be hard for anyone else to compete.
Ok I think my one-line change has finished compiling now...
/rant
- sokoloff 2y agoI think the beauty and genius of Arduino was how much more accessible that project made microcontroller development for great many people. As a pro-SWE and dabbling electronics person, I had bounced off the PIC and other toolchains, sometimes managing to get a simple 8051 project working. Then Arduino came along and it was like a light switch was turned on. (Witness how many professional AVR programmers were up in arms over the vast eternal September that suddenly flooded the area. :D ) The IDE tooling is terrible/frustrating for pros in many ways, but "it just works" in some other very important ways. You can get to hello-world (blink an LED) in under 5 minutes. That's huge and appears to be more of what Arduino is targeting.
- IshKebab 2y agoYes I agree that the "it just works" thing is great (and missing from the vendor SDKs). But that's orthogonal to "it isn't shit". It could "just work" AND have a good API, proper build system, proper IDE, etc. That's what ARM were (very slowly) heading towards with Mbed Studio before they canned it.
- bityard 2y agoYou've missed what Arduino is for. The Arduino software/hardware combination is not meant for professional hardware and software engineers who know what they're doing. You're complaining about the quality of the software, elsewhere you'll find EEs bemoaning the fact that most practical use cases of an Arduino could be replaced with a 555 timer chip. In any event, you don't HAVE to use the Arduino software. If you hate it so much, stop using it! The Arduino software just wraps existing open source "normal" MCU toolchains, you can use those directly instead.
- IshKebab 2y ago> You've missed what Arduino is for. The Arduino software/hardware combination is not meant for professional hardware and software engineers who know what they're doing. No I haven't. This kind of "but it's for beginners!!" argument is nonsense on two fronts: 1. Just because it's for beginners doesn't give it an excuse to be bad. Why doesn't incremental compilation work? Why doesn't it have a proper build system? Why is the API so awful? You can fix all those without hurting beginner friendliness - in fact fixing those would make it more beginner friendly. 2. The fact that it is soooo popular means that there isn't a good alternative "pro" option anyway, so I am more or less forced to use the "for beginners but terrible" Arduino because it's what everyone else does. Why shouldn't people who know what they're doing be able to use Arduino? What the pros actually do is use the vendor-specific SDKs, but those have their own big downsides (namely they're vendor specific). Don't make excuses for it.
- tzs 2y agoThe Arduino IDE uses the gcc toolset for actually compiling and linking. You can use those directly if you would like incremental builds. If you turn on verbose logging in the IDE the logs will show the actual commands it is using to invoke gcc which is handy to figure out locations and flags needed for the various commands. The verbose IDE log should also show the command line tool (probably avrdude) that is used to download the binary to your Arduino.