P1AM USB Programming Port Problem

Created Date: March 06,2020

Created By: ChiefGeek63

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

Having an issue with the P1AM USB programming port and the Arduino IDE. Links for PDF with screen captures and INO file... https://github.com/jesawyers/myBasic_AD_P1AM The Arduino IDE v1.8.2 on Win10 with the P1AM Library v1.0.0 Win10 installs the P1AM and assigns a serial port. In the Arduino IDE, I set the Board to Arduino MKRZERO and the Port to COM3 I upload my sketch to the P1AM which has no expansion modules. The sketch is just a simple sketch that detects a change in SWITCH_BUILTIN and sets the LED_BUILTIN accordingly. This function works correctly as programmed. The problem is the following when uploading…

Forcing reset using 1200bps open/close on port COM3

PORTS {COM1, COM3, } / {COM1, } = > {}

PORTS {COM1, } / {COM1, } = > {}

PORTS {COM1, } / {COM1, COM4, } = > {COM4, }

Found upload port: COM4

 

This is preventing the Serial.println commands from displaying on the Arduino IDE Serial Monitor. First troubleshooting steps were to… Unplug USB programming cable from P1AM CPU Uninstall ALL Arduino board serial ports in Win10 Reboot Win10 Plug-in USB programming cable to P1AM CPU P1AM CPU successfully installed by Win10 as COM3. Tested again and same issue. Thoughts???

 

GitHub - jesawyers/myBasic_AD_P1AM: Basic sketch for the Automation Direct P1AM, Arduino MKRZERO compatible, industrial CPU

https://github.com

 

Basic sketch for the Automation Direct P1AM, Arduino MKRZERO compatible, industrial CPU - jesawyers/myBasic_AD_P1AM


  • adccommunitymod (AutomationDirect)

    Created Date: March 06,2020

    Created by: ChiefGeek63

    Having an issue with the P1AM USB programming port and the Arduino IDE.

    Links for PDF with screen captures and INO file...

    https://github.com/jesawyers/myBasic_AD_P1AM

    The Arduino IDE v1.8.2 on Win10 with the P1AM Library v1.0.0

    Win10 installs the P1AM and assigns a serial port.

    In the Arduino IDE, I set the Board to Arduino MKRZERO and the Port to COM3

    I upload my sketch to the P1AM which has no expansion modules. The sketch is just a simple sketch that detects a change in SWITCH_BUILTIN and sets the LED_BUILTIN accordingly. This function works correctly as programmed.

    The problem is the following when uploading…

    Forcing reset using 1200bps open/close on port COM3

    PORTS {COM1, COM3, } / {COM1, } => {}

    PORTS {COM1, } / {COM1, } => {}

    PORTS {COM1, } / {COM1, COM4, } => {COM4, }

    Found upload port: COM4

    This is preventing the Serial.println commands from displaying on the Arduino IDE Serial Monitor.

    First troubleshooting steps were to…

    Unplug USB programming cable from P1AM CPU

    Uninstall ALL Arduino board serial ports in Win10

    Reboot Win10

    Plug-in USB programming cable to P1AM CPU

    P1AM CPU successfully installed by Win10 as COM3.

    Tested again and same issue.

    Thoughts???

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: March 06,2020

    Created by: ADC_CommTeam01

    Have you installed the board manager for P1AM-100?

    If so why did you not select the P1-AM-100 in the board manager?

    image_4732

    Are you sure it is port 3? Does it say P1AM-100 on Com 3 at the bottom of the IDE?

    I loaded your sketch and it works fine here. Mine is on COM 12.

    image_4733

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: March 06,2020

    Created by: ChiefGeek63

    Ugh...I knew I was doing something wrong.

    I saw that the P1AM-100 was compatible with the Arduino MKRZERO so I was too focused on selecting that board instead of the P1AM.

    Sorry for wasting your time. :o

  • adccommunitymod (AutomationDirect)

    Created Date: March 06,2020

    Created by: ChiefGeek63

    Ok...There is still something wrong. Sorry but I was a controls engineer in the power industry for 28 years and I can't let things go.

    DO NOT RESPOND TO THIS UNTIL MONDAY!!! I use to do technical support for GE. UGH! Enjoy Your Weekend!

     

    Forcing reset using 1200bps open/close on port COM5

    PORTS {COM1, COM5, } / {COM1, } => {}

    PORTS {COM1, } / {COM1, COM4, } => {COM4, }

    Found upload port: COM4

    So according to Win10, the device is installed as...

    Device Manager...Ports (COM & LPT)..USB Serial Device (COM5)

    Why is the Arduino IDE showing the upload port as COM4?

    Also, if you look at the setup() routine, I print some messages. These do no show up in the Serial Monitor even when the monitor is open at upload.

    Also it would be nice that the compile messages were not RED. RED is considered as a bad issue in our industry.

    Thoughts??

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: March 07,2020

    Created by: kewakl

    Also it would be nice that the compile messages were not RED. RED is considered as a bad issue in our industry.

    Thoughts??

    I do not have arduino installed here, so this may be out of date.

    https://forum.arduino.cc/index.php?topic=71882.0

  • adccommunitymod (AutomationDirect)

    Created Date: March 07,2020

    Created by: ChiefGeek63

    @kewakl...Thanks! I'll take a look at the settings to see if I can change the compiler colors.

  • adccommunitymod (AutomationDirect)

    Created Date: March 08,2020

    Created by: ChiefGeek63

    Found the issue with not getting messages from the setup() routine.

    I had the baud rate for the serial monitor set to 9600 and the Serial.begin(9600) .

    I set it to 115200 along with the Serial.begin(115200) and everything works.

  • adccommunitymod (AutomationDirect)

    Created Date: March 09,2020

    Created by: FACTS_ENG_TEAM1

    I noticed in your repo program you used a delay after the Serial.begin. if this is to try and give some extra time to catch a printout, try "while(!Serial); "instead. This makes the code wait at that line until a serial port is actually opened.

    Adam

  • adccommunitymod (AutomationDirect)

    Created Date: March 09,2020

    Created by: ChiefGeek63

    @Adam...Thank you Sir!