SAM3x8E download problems (Arduino)

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This may be an Arduino issue.  If it is please point me in the right direction.

 

I'm trying to trouble shoot an image download problem on the DUE board when using the Marlin software.  

 

This is an Arduino environment.

 

This appears to be happening only when the native USB port is connected to a Windows host.  It's not been seen on a MAC host.

 

A few months ago one of our contributors added the Atmel USB mass storage controller to the code for the Due.  This uses the native USB port. 

 

One of the serial ports is used to program the chip and as the host interface.  A microcontroller programmed to act as a USB to UART interface sits between the serial port and a USB port on the host.

 

We've just noticed, when the USB mass storage port is cabled up to a Windows host, that attempting an image download kills the controller. The chip is fully functional until the download program takes control of the host port. 

 

​If the cable to the native port is NOT connected then downloading proceeds normally.

 

The Atmel error message is:

Forcing reset using 1200bps open/close on port COM4
C:\Users\bobku\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino/bossac.exe -i -d --port=COM4 -U false -e -w -v -b C:\Users\bobku\AppData\Local\Temp\arduino_build_211226/Marlin_Copy.ino.bin -R
Send auto-baud
No device found on COM4
Set binary mode
An error occurred while uploading the sketch

 

What i mean by killed is it ceases to run it's FLASH program and doesn't respond to the host/programming port.

 

​When I connect up my J-Link I see that the chip is executing from the Internal ROM (0x0010 0000 region) and that the Internal ROM is mapped to the boot area.

 

​The previously executing FLASH image is complete and not corrupted.  

 

​I can recover the chip by using the J-Link to download an image to FLASH.  Once the J-Link finishes it's magic, FLASH0 is mapped to the boot area and all is well.

 

Ideas, suggestions, pointers, ... ?

This topic has a solution.

Bob

Last Edited: Sun. Mar 11, 2018 - 07:03 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is definitely an Arduino code issue.

 

Please close this topic.

Bob