Confusion with the XMEGA A1 Xplained board interface

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

I recently bought XMEGA A1 Xplained board which features ATXMEGA128A1 micro-controller. The serial number for the board is A09-0560/07 SN:0200016064 (which is written on the back side of the board).

Upon reading through the Application notes for getting started with the board, I found out that we need to use mini-AB type of USB connection in order to connect this board to the PC. I could successfully connect the board and also install the driver "XPLAINED_Virtual_Com_Port.inf" and could see that the board is detected as a virtual COM port in the device manager as explained in the application note.

I went next step further in order to find out, how will flash my own program onto the device and read through another application note that there is an utility called FLIP (v3.4.3 is the latest available on the ATMEL website).

When I installed FLIP (v3.4.3) and ran it in GUI mode (the other mode is command mode i.e. batchisp which is part of FLIP installation). When I select a device, I don't see our device ATXMEGA128A1 in the list of devices available??

However, I can see another device called ATXMEGA128A1U. May I know what is the difference between these 2 devices ATXMEGA128A1 and ATXMEGA128A1U?

Upon little more investigations and detailed reading in FLIP manuals, I found out that there is another driver file "atmel_usb_dfu.inf". The FLIP manual says that we need to point to this driver file while connecting the board to the USB interface with proper ISP hardware conditions met (i.e. in our case, it is pressing and holding SW0 on the XMEGA A1 Xplained board while attaching the USB cable to the PC). We tried this as well, but we do not get any device recognized under the Atmel category as explained in the FLIP help manual.

We peeked through the "XPLAINED_Virtual_Com_Port.inf" wherein we found out that there is vendor id and device id usage as follows

USB\VID_03EB&PID_2122

However, in the driver file from FLIP installation, we do not have any such device mentioned with the above device ID. May I know, whether this target device ATXMEGA128A1 is supported by FLIP? (If yes, which version). If not, then can someone help us in configuring this board for usage with either the FLIP GUI or with batchisp command line tool?

When we refer to the application notes for this board, we read that Batchisp can be used in the following manner

batchisp -device ATXMEGA128A1 -hardware USB_UART -port CM46 -operation blankcheck

However, with the device ATXMEGA128A1, it fails indicating that the device doesn't exist. (here we have installed "XPLAINED_Virtual_Com_Port.inf" driver)

When we change the device to ATXMEGA128A1U, which has a valid entry in the "atmel_usb_dfu.inf" driver file from FLIP installation, we get the following message

Device selection.........PASS
Hardware selection.......PASS
Openinr Port.............AtLIbUsbDfu 3EB 2FED no device present

FAIL could not open USB device
ISP done.

Which clearly indicates that there is a mismatch on the device ID side. Because in the driver file from FLIP installation there is no entry for ATXMEGA128A1, however, there is an entry for ATXMEGA128A1U with the above displayed device ID 2FED.

This puts us into confusion? Can somebody help us out?

Thanks & Regards,
Sakar Kalkotwar

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The on-board USB doesn't connect to ATxmega128A1, but to AT32UC3B1256, a second AVR on the board that acts as a board controller. Hardware type is RS232, not USB_UART. Here's an example given in AVR1927: XMEGA-A1 Xplained Getting Started Guide:

"4. Run the command below using the correct COM port:

Batchisp  -device ATXMEGA128A1 
-hardware RS232 
-port COM19 
-baudrate 115200 
–operation onfail abort 
memory flash 
erase f 
blankcheck 
loadbuffer your_firmware_file.hex 
program verify 
start reset 0 

"5. Your firmware should now be running"

If you haven't done so, you also need to press a switch: "The boot loader on the ATxmega128A1 is evoked by pushing the mechanical switch (SW0) during reset. Programming can be performed by using the BatchISP command line tool from the FLIP installation."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
I think I was quite lengthy while describing the issue. Let me put it this way.

1. The PID 2122 mentioned in "XPLAINED_Virtual_Com_Port.inf" corresponds to which device? ATXMEGA128A1?

2. Which is the correct *.inf file which should be provided while installing the hardware?

3. When using FLIP (GUI) or batchisp, which *.dll and/or *.sys gets used in case of this hardware?

I think this is pretty precise way of putting my doubts.
Please help.

Thanks & Regards,
Sakar

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

1. The PID 2122 mentioned in "XPLAINED_Virtual_Com_Port.inf" corresponds to which device? ATXMEGA128A1?


As the 128A1 is not a USB controller it seems unlikely.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As per the getting started guide for XMEGA A1-Xplained kit, if I use batchisp in the following manner

Batchisp -device ATXMEGA128A1
-hardware RS232
-port COM46
-baudrate 115200
–operation onfail abort
memory flash
blankcheck

I get an error indicating ATXMEGA128A1 device not present.

Where am I wrong?
Please help

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://grieg.gotdns.com/blog/?p=545, search for xml, follow the instructions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you very much for the link. This solves the issue. :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Glad to help.