JV84 (Customer) asked a question.

How can I upload bin file through windows command line for an P1AM-100?

I have successfully upload bin file to the P1AM-100 on linux and MacOS but still can't do it on windows. I have tried setting boot mode by using mode.com com8: baud=1200 dtr=on but when trying to upload, com port isn't recognized or it appears busy. Do you know what is missing to do it right?


  • FACTS_AdamC (AutomationDirect)

    Ah ok, it looks like you are using the future version of the Arduino IDE.

     

    I just checked on the most recent version (rc9.2) and had a similar issue. However, after manually placing it into a bootloader mode (i.e. quickly double tapping reset or connecting at 1200 baud with Tera Term) I was able to upload from the IDE. Additionally, after doing this, I can upload normally with the IDE without manually putting it into the bootloader.

     

    Let me know if that fixes it for you.

    Expand Post
    Selected as Best
  • FACTS_AdamC (AutomationDirect)

    On Windows, the P1AM-100 will re-enumerate to a different COM port after you touch it at 1200 baud to get it into bootloader mode. You'll need to determine this new COM port and connect to it to complete the update.

  • JV84 (Customer)

    yes, COM port changes and when setting the new COM port and trying to upload it stops in this stage of the process.

     

    1. avrdude: Version 6.3-20190619
    2. Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
    3. Copyright (c) 2007-2014 Joerg Wunsch
    4.  
    5. System wide configuration file is "C:\Users\USER\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
    6.  
    7. Using Port : COM11
    8. Using Programmer : avr109
    9. Overriding Baud Rate : 57600
    10. AVR Part : ATmega32U4
    11. Chip Erase delay : 9000 us
    12. PAGEL : PD7
    13. BS2 : PA0
    14. RESET disposition : dedicated
    15. RETRY pulse : SCK
    16. serial program mode : yes
    17. parallel program mode : yes
    18. Timeout : 200
    19. StabDelay : 100
    20. CmdexeDelay : 25
    21. SyncLoops : 32
    22. ByteDelay : 0
    23. PollIndex : 3
    24. PollValue : 0x53
    25. Memory Detail :
    26.  
    27. Block Poll Page Polled
    28. Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
    29. ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
    30. eeprom 65 20 4 0 no 1024 4 0 9000 9000 0x00 0x00
    31. flash 65 6 128 0 yes 32768 128 256 4500 4500 0x00 0x00
    32. lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
    33. hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
    34. efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
    35. lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
    36. calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
    37. signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
    38.  
    39. Programmer Type : butterfly
    40. Description : Atmel AppNote AVR109 Boot Loader
    41.  
    42. Connecting to programmer: .

     

    Expand Post
    • FACTS_AdamC (AutomationDirect)

      I think the issue may be that you are using avrdude. The P1AM-100 uses a SAMD21 which is an ARM part, not AVR. What tool did you use to upload on Mac/Linux?

  • JV84 (Customer)

    Sorry, you're right that was a different example, when trying to upload using IDE I get this but it doesn't finishes the process too.

    1. Performing 1200-bps touch reset on serial port COM7
    2. Waiting for upload port...
    3. Upload port found on COM11
    4. "C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0/bossac.exe" -i -d --port=COM11 -U true -i -e -w -v "C:\Users\user\AppData\Local\Temp\arduino-sketch-357D8C9E495E58FD2A634F6585AED490/Blink.ino.bin" -R

     

    Expand Post
    • JV84 (Customer)

      When I try to do it on cmd it stops in the same way as IDE. Process doesn't go on.

      1. C:\Users\user>mode.com com7: baud=1200 dtr=on
      2. Los bits de datos predeterminados son 7.
      3. La paridad predeterminada es par.
      4.  
      5. Estado para dispositivo COM7:
      6. -----------------------------
      7. Baudios: 1200
      8. Paridad: Even
      9. Bits de datos: 7
      10. Bits de paro: 1
      11. Tiempo de espera: OFF
      12. XON / XOFF: OFF
      13. Protocolo CTS: OFF
      14. Protocolo DSR: OFF
      15. Sensibilidad de DSR: OFF
      16. Circuito DTR: ON
      17. Circuito RTS: ON
      18.  
      19.  
      20. C:\Users\user>"C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0/bossac.exe" -i -d --port=COM11 -U true -i -e -w -v "C:\Users\user\AppData\Local\Temp\arduino-sketch-357D8C9E495E58FD2A634F6585AED490/Blink.ino.bin" -R
      21. Set binary mode

       

      Expand Post
  • FACTS_AdamC (AutomationDirect)

    What version of the IDE are you using? And can you confirm you have your board set to the P1AM-100 in the IDE?

    • JV84 (Customer)

      Here is the IDE version and the visible COM port for P1AM-100

      image

      • FACTS_AdamC (AutomationDirect)

        Ah ok, it looks like you are using the future version of the Arduino IDE.

         

        I just checked on the most recent version (rc9.2) and had a similar issue. However, after manually placing it into a bootloader mode (i.e. quickly double tapping reset or connecting at 1200 baud with Tera Term) I was able to upload from the IDE. Additionally, after doing this, I can upload normally with the IDE without manually putting it into the bootloader.

         

        Let me know if that fixes it for you.

        Expand Post
        Selected as Best
      • JV84 (Customer)

        Test it with previous IDE and all works fine also using those commands on cmd, thank you so much