steps
-
in the arduino IDE under File / Preferences / Show check verbose output during upload
-
in the IDE under Sketch / Include Library / Manage Libraries / The Things Network Arduino Library / version 2.5.12 OR 2.5.13 (no lib problem)
-
reboot arduino IDE
-
remove USB cable and insert again
-
select Board ‘‘Arduino Leonardo’’
-
select Port ‘’ COM 1x Arduino Leonardo’’
-
Load sketch from File / Examples / TheThingsNetwork / DeviceInfo
-
Load File / Examples / TheThingsNetwork / DeviceInfo
-
change line 7 with the right plan #define freqPlan TTN_FP_EU868
-
verify (sketch uses 6268 bytes(21%)
-
press and hold reset button board
-
press upload sketch !
-
because you’ve set verbose output previous , its possible that you see the compiler searching for a port
the moment you see this… RELEASE resetbutton
now the sketch should upload , when done without errors:
start serial monitor… the board should respond like this after some time