Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic P1AM-100 Series, Arduino uploads Visual Micro does not. (Read 1633 times)
Dankn
Newbies
*
Offline


Posts: 3
Joined: Sep 25th, 2021
P1AM-100 Series, Arduino uploads Visual Micro does not.
Sep 25th, 2021 at 2:03pm
Print Post  
      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.
Code (C++)
Select All
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...

« Last Edit: Sep 25th, 2021 at 4:42pm by Dankn »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: P1AM-100 Series, Arduino uploads Visual Micro does not.
Reply #1 - Sep 25th, 2021 at 10:52pm
Print Post  
Thanks for all the info. Can you also please provide the info requested in the yellow box near the top of this page.
  
Back to top
WWW  
IP Logged
 
Dankn
Newbies
*
Offline


Posts: 3
Joined: Sep 25th, 2021
Re: P1AM-100 Series, Arduino uploads Visual Micro does not.
Reply #2 - Sep 25th, 2021 at 11:46pm
Print Post  
Sorry about that, please let me know if there is something else you need from me. I'll be happy to provide any thing I can.


Thank you.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Dankn
Newbies
*
Offline


Posts: 3
Joined: Sep 25th, 2021
Re: P1AM-100 Series, Arduino uploads Visual Micro does not.
Reply #3 - Sep 27th, 2021 at 1:19am
Print Post  
Yep... I thought Verbose did both, that was silly. Added "Show Build Properties" AND "Verbose".
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint