Doing the Eval for 45 days, though the plan is perpetual user on Personal and Business license. I was going for Industrial Open-source Arduino hardware, Pro grade Editor, doing Industrial automation work and over git for source control... Angle.... I got everything setup and found out that Visual Micro cannot upload to my controller. It can’t find it, though it shows the comport of industrial hardware. I was attempting to upload an OTA Programmer to the controller, Code link at end. As of now, I did not check if the Program I uploaded with Arduino native programmer allows me to OTA with Visual Micro. I’d like to know if I messed up somewhere.
Info I thought would be useful:
I added the board manager json
Downloaded the latest P1AM-100 Board Info
Installed the library for the P1AM-100 modules <- though that isn’t the reason it’s not finding the controller
Specifics about my controller on com3. Output from micro build, minus the code:
Compiling ‘EthernetOTATest ' for 'P1AM-100'
Program size: 33,624 bytes (used 13% of a 262,144 byte maximum) (6.45 secs)
Uploading 'EthernetOTATest' to 'P1AM-100' using 'USB'
Unable to auto-reset: . Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.
int j;
for(j=0; j < 40; j++ ) // for loop
{
Serial.println(“PORTS {COM3} / {COM3} => {}“);
}
Couldn’t find NativeUSB or Leonardo on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.
Same code on Arduino software, Compiles and uploads to the controller:
Sketch uses 25856 bytes (9%) of program storage space. Maximum is 262144 bytes.
Atmel SMART device 0x10010005 found
Device : ATSAMD21G18A
Chip ID : 10020005
Version : v2.0 [Arduino:XYZ] Jun 25 2019 14:33:08
Address : 8192
Pages : 3968
Page Size : 64 bytes
Total Size : 248KB
Planes : 1
Lock Regions : 16
Locked : none
Security : false
Boot Flash : true
BOD : true
BOR : true
Arduino : FAST_CHIP_ERASE
Arduino : FAST_MULTI_PAGE_WRITE
Arduino : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
done in 1.068 seconds
Write 26320 bytes to flash (412 pages)
[==============================] 100% (412/412 pages)
done in 0.197 seconds
Verify 26320 bytes of flash with checksum.
Verify successful
done in 0.020 seconds
CPU reset.
Hardware Information:
Model P1AM-100
Spec sheet
https://cdn.automationdirect.com/static/specs/p1amspecs.pdf The Information on the Open source P1AM-100 “board”:
https://github.com/facts-engineering/P1AMCore I added the board manager json
https://raw.githubusercontent.com/facts-engineering/facts-engineering.github.io/... Should have the rest of the information, I hope, so that the issue can be understood:
https://github.com/facts-engineering Code for OTA:
https://github.com/jandrassy/ArduinoOTA/blob/master/examples/OTEthernet/OTEthern...