sam-ba usb connection

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

uglyoldbob
Posts: 11
Joined: Fri Feb 24, 2012 7:36 pm

sam-ba usb connection

Fri Feb 24, 2012 7:53 pm

I'm having problems getting SAM-BA 2.11 (Windows) to connect to my new ATSAM3U4CA board. I'm using a 12MHz crystal.

I'm not seeing any sort of USB device recognition when I plug in a usb cable.
uglyoldbob
Posts: 11
Joined: Fri Feb 24, 2012 7:36 pm

Re: sam-ba usb connection

Sat Feb 25, 2012 12:02 am

Ok I had a mistake in my footprint for the USB port. I soldered a cable directly to my board but I still have a problem.

These messages are from a linux system. (2.6.32.38-generic kernel).

Code: Select all

[  702.764553] usbcore: registered new interface driver usbserial_generic
[  702.764559] usbserial: USB Serial Driver core
[  710.560359] usb 1-6.1: new high speed USB device using ehci_hcd and address 35
[  725.632325] usb 1-6.1: device descriptor read/64, error -110
[  740.809277] usb 1-6.1: device descriptor read/64, error -110
[  740.984261] usb 1-6.1: new high speed USB device using ehci_hcd and address 36
[  756.072217] usb 1-6.1: device descriptor read/64, error -110
[  771.249348] usb 1-6.1: device descriptor read/64, error -110
[  771.440348] usb 1-6.1: new high speed USB device using ehci_hcd and address 37
[  781.848107] usb 1-6.1: device not accepting address 37, error -110
[  781.921340] usb 1-6.1: new high speed USB device using ehci_hcd and address 38
[  792.328098] usb 1-6.1: device not accepting address 38, error -110
[  792.328361] hub 1-6:1.0: unable to enumerate USB device on port 1
uglyoldbob
Posts: 11
Joined: Fri Feb 24, 2012 7:36 pm

Re: sam-ba usb connection

Sat Feb 25, 2012 1:57 am

Here is a log from USBTrace on Windows.
http://pastebin.com/FMD5JuwA
CptTitanic
Posts: 871
Joined: Sat Oct 30, 2010 6:04 pm

Re: sam-ba usb connection

Sat Feb 25, 2012 7:52 am

Not familar with the M3, but all the other SAM/ARM parts require you to put them in a specific BOOT mode so that the target operates with a SAM-BA loader.
uglyoldbob
Posts: 11
Joined: Fri Feb 24, 2012 7:36 pm

Re: sam-ba usb connection

Sat Feb 25, 2012 8:15 am

According to the docs, applying 3.3V to the ERASE pin for at least 220ms will erase the flash, clear the security bit, and set the boot mode selection bit to 0 (boot from SAM-BA ROM). The security bit and the boot mode selection are in GPNVM.

I have attempted to perform an erase on my microcontroller (I left it on for 30 seconds with ERASE tied to 3.3V).

I verified the on-board 1.8V regulator is working and that the chip is received a proper 3.3V supply. I can't verify the exact oscillator frequency right now but it appears to be working properly. I checked the wiring of the USB port again and everything appears to be fine (now that I have rewired my usb cabling). I also redid the soldering for the microcontroller.

I ordered the SAM-ICE and the ATSAM3U4E dev board so I would have something to compare to. Perhaps I will be able to the the SAM-ICE to work through JTAG.

Should an AVR Dragon be able to do anything at all with the JTAG on my microcontroller?
gerhardf
Posts: 554
Joined: Thu Dec 02, 2004 2:28 pm

Re: sam-ba usb connection

Sat Feb 25, 2012 9:09 am

uglyoldbob wrote: Should an AVR Dragon be able to do anything at all with the JTAG on my microcontroller?
no chance!
uglyoldbob
Posts: 11
Joined: Fri Feb 24, 2012 7:36 pm

Re: sam-ba usb connection

Tue Feb 28, 2012 8:35 pm

Ok I managed to get the windows version of SAM-BA 2.11 to connect over a serial line. Here is an interesting problem though. If I remove the 12 MHz crystal from my board, the serial stops working. The datasheet says it should fall back to the internal RC oscillator but for some reason that is not happening. I measured the oscillator frequency with a frequency counter as 11.999191 MHz.
uglyoldbob
Posts: 11
Joined: Fri Feb 24, 2012 7:36 pm

Re: sam-ba usb connection

Wed Feb 29, 2012 7:26 am

Well something I did while testing lots of stuff caused the usb to start working. I'll have to wait until the SAMBA-ICE gets here to do some debugging on the code.

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 3 guests