AS7 doesn't see the Xmega 32E5 Xplained board

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

 

Microchip Studio 7 (Version: 7.0.2542 - )

 

See also this https://www.avrfreaks.net/commen...

 

I have been trying to get the board running with the EMDBG?? but I cannot select it as it doesn't show on the drop down list of tools.

 

Windows sees the board when plugged in, I have uninstalled it and reinstalled with the current drivers but nothing.

 

 

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Last Edited: Wed. May 5, 2021 - 12:08 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That is not an EDBG board, so no on-board debugger. Just a board controller...

 

See  XMEGA-E5 Xplained (microchip.com) / http://ww1.microchip.com/downloa...

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

Last Edited: Wed. May 5, 2021 - 01:30 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just a board controller... that controls WHAT exactly? cheeky I know about the USB virtual serial port but even that doesn't come up in the serial ports list when I plug the board in.

 

And as I mentioned in the other thread it has connection from the control chip to the PDI header of the E5...so shall we say that program/debug was never implemented? wink

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

It was, when the EDBG happened... came a bit after this board though 😉
.
Honestly, no idea why the PDI lines are connected to the board controller...

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

Last Edited: Wed. May 5, 2021 - 02:00 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Oh well, thanks for the info. The USB serial port needs a CDC driver for it to work, found the .inf file, don't know what to do with it. blush

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Device Manager, Update Driver ...

 

Windows 10 will use a default INF for USB CDC ACM iff the device enumerates exactly; otherwise, INF.

Windows 10 | USB serial driver (Usbser.sys) - Windows drivers | Microsoft Docs

 


Communication through the USART-to-USB Gateway | AT02667: XMEGA-E5 Xplained Hardware User's Guide

 

"Dare to be naïve." - Buckminster Fuller

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

The device doesn't enumerate I guess? ie plugging it into the PC does not show a new com port in the manager even though it shows the Microchip "tool".

 

Also the docs for the Xmega32E5 explained is so old that nothing makes sense like nothing shows up in Studio anymore from the old ASF or even the board in the drop-down menu.

 

The demo firmware is supposed to be available in Studio to rebuild but I have spend a few hours chasing my tail, at least in the old days Atmel used to have the pdf and the firmware files available.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I bought this same board a few months ago, & couldn't get it to work (program) in Studio...was scratching my head for a while

 

The board software manual says nothing about downloading any programs to the board!! It does spout a lot about using Start or other things I have no interest in.  I just wanted to type my code, compile & down load.

 

The hardware manual is a bit cryptic:   The kit can be programmed using an external programming tool.

 

Shouldn't that be MUST??? Or am I overlooking something silly?

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

Last Edited: Wed. May 5, 2021 - 03:30 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yeah it's a must. It looks like the board was half finished, the hardware part is there but not the firmware in the UC32 chip.

 

And while you are reading this, do you still have the original Xmega32E5 firmware running or have you erased it with a programmer? If you still have it can you please suck it out of the chip and send it to me? cheeky I guess you have a suitable PDI programmer??

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I guess you have a suitable PDI programmer??

I have an AVRISP MKII , if that will do the trick (used on other XMEGA projects)  ...let me fiddle a bit to see if I can actually talk to the board!!! All previous mis-attempts at several PC"s led nowhere---now I know why.

 

I'm a little confused...why is there another "AVR controller" if it can't program...what is its purpose?   

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

Last Edited: Wed. May 5, 2021 - 04:15 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Maybe in some obscure place in the old Atmel Norway there is a firmware upgrade for the UC3 that will do Program/Debug that never saw the light of day?? Who knows!

 

The UC3 seems to have a bootloader for upgrades triggered by grounding PA1 via the provided link (BC Boot-loader link).

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Success!!

 

Here is a dropbox link  ...about 100k hex file from the 32E5

 

https://www.dropbox.com/s/die298...

 

With my ISPMKII I can finally talk to this board

 

I also noted when I was trying for this board to so something/anything (without knowing I needed to connect my own programmer), that if I open studio7 with the board usb already plugged, in studio hangs up (never ending spinning circle) with some message about no tool found (or something about tool problem, not recognized, etc)...only by unplugging the board will studio fully open up (then plugging in after does nothing as far as studio is concerned)...so I was thinking the board was scrap. 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

Last Edited: Wed. May 5, 2021 - 04:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
The device doesn't enumerate I guess?
Unsuccessful enumeration is 'unknown device'.

js wrote:
ie plugging it into the PC does not show a new com port in the manager even though it shows the Microchip "tool".
COM created after enumerated device is linked to usbser.sys (driver); that INF may be what's necessary for this case.

js wrote:
... like nothing shows up in Studio anymore from the old ASF ...
IIRC, that board's XMEGA32E5 source code is in ASF 3.6.0

js wrote:
... or even the board in the drop-down menu.
As expected since the board controller is only USB CDC ACM (your preferred terminal emulator); Microchip Studio is USB HID for programming and debugging via EDBG.

 

edit : 8th item is the demo application; ASF 3.50 was released 29-Apr'21 though ASF web page is 3.49.1

https://asf.microchip.com/docs/latest/search.html?board=XMEGA-E5%20Xplained

https://www.microchip.com/RSS/recent-software.xml

Advanced Software Framework (ASF) | Microchip Technology

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Wed. May 5, 2021 - 04:53 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Double success, programmed the code into my board and now I have the 2 flashing lights and the LCD working!

 

However I'm sure I also had the quadrature encoder and the temperature or light???? sensor working at one stage?? The projects were in an older ASF version I think and I can't find them anymore with the current version of Studio.

 

Studio seems to hang the mouse with certain types of mices (like the one I have sad) and the old JTAG Mk3 and even the Atmel ICE. Using a different mouse fixes things, a known issue.

 

So I guess is forget the UC3 and USB connectivity, in fact I think I powered the board from a  phone charger through the USB and just use the 6 pin header for programming and debugging (if you have an ICE)

 

I used this board to develop a new product when the chip first came out and now I have almost 4,000 boards in the field.

 

In fact I was one of the first to get the Xplained board even before it went to market and even chips were scarce, thanks to a guy on the inside of Atmel.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

avrcandies this is the firmware that I remember my board came with and corresponds to the PDF application note. Your code above worked but was nothing like I remember so you may want to try this

 

https://www.avrfreaks.net/commen...

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly