Results 39 comments of thalesmaoa

I think ARDUINO_PACKAGE_DIR is right. Please check the output: ``` $ make ------------------------- Sam.mk Configuration: - [AUTODETECTED] CURRENT_OS = LINUX - [USER] ARDUINO_DIR = /home/thales/NAND/arduino-1.8.7 - [AUTODETECTED] ARDUINO_PACKAGE_DIR = /home/thales/.arduino15/packages...

Ok. A bit more digging and found that all files are being compiled fine with the `ln` links, however the merge process is the problem. After many trials I decided...

Just reading the issue again, just forgot to mention: ``` $ uname -a Linux rasp 4.14.70+ #1144 Tue Sep 18 17:20:50 BST 2018 armv6l GNU/Linux ``` After I figure that...

@sej7278 Thanks for your help, but renaming it is not an option. I have a huge appliance with lot of cpp and h files with classes definitions. The problem emerged...

Perhaps, but I'm so sure. Same code compile and run on Arduino IDE. Can you try my code?

Perhaps, but I'm so sure. Same code compile and run on Arduino IDE. Can you try my code?

Sure, only the main code. The extra include and defines are kept out.

Ok, just found the problem. If Arduino.h is included, the pre-processor goes crazy because of two setup() and loop() declarations. A workaround is to use and empty main.cpp file as...

@sej7278 I thank you again, but I tried NO_CORE but this is not the problem. As I mentioned, the problem is the main.cpp file and multiple setup() and loop() declarations....

I have checked the issue, and made more testes. If I ran: `MONITOR_PORT=com3 make reset` or `MONITOR_PORT=3 make reset` or `MONITOR_PORT=/dev/ttyWhatEver make reset` It always give me: `Resetting Arduino... Arduino-Makefile-master/bin/ard-reset-arduino...