Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
E_forge
PostPosted: Mar 30, 2012 - 11:27 PM
Rookie


Joined: Oct 20, 2011
Posts: 23


Hi!

OK, I have been trying to establish a simple connection with my AT32UC3C1512 microcontroller (comes with pre-installed bootloader according to Atmel app notes).

I simply try connecting my protoboard to my computers USB port and use commands "dmesg" and lsUSB to see if it is detected.

Well, it is not. There's no connection or enumeration attempt done by the computer. I figured out this is because the D+ line is not pulled high by the MCU. Why would this be? with an evaluation board for AT32UC3A-series the device can be seen with "lsUSB" as "ID 03eb:2ff8 Atmel Corp.". My protoboard has similar connection (the physical USB-related circuitry is basically the same), but it is not recogized.

I had a USB isolator chip ADuM 3160 installed at first, but I removed it and hardwired the USB connection because it was not working. Now the circuit is similar to the USB connection on the evaluation board I tried. Now I know that the problem really wasn't with the isolator chip, but with the MCU itself.

Would someone kindly provide a check-list on how to get the USB boot loader responding. I'm kinda running out of options here. Would the problem be with software or hardware? I think it shouldn't be hardware since the connection is very simple, but how can I be sure?

I have AVR dragon in my disposal, and I have already tried reading Device ID and Device information through JTAG. I also reset the device with run -r option so that the MCU would resume it's normal operation after JTAG connection. Still, not getting my protoboard to recognise as USB device by my computer

Any ideas?
 
 View user's profile Send private message  
Reply with quote Back to top
E_forge
PostPosted: Apr 01, 2012 - 10:43 AM
Rookie


Joined: Oct 20, 2011
Posts: 23


Alrighty!
I managed to root the problem down to software, and there seems to be an incompatibility with the provided DFU boot loader and my proto board configuration

My crystal (8MHz) is hooked up to osc1, but the firmware is written for osc0. I also tried replacing all references to osc0 with osc1 in the bootloader code, but I'm still getting nothing, and it would also seem that the crystal is not oscillating (tested by scope).

This would indicate that there's still something wrong with the code, but I can't figure out what. Have you ever come across this sort of problems? I still need some help here.
 
 View user's profile Send private message  
Reply with quote Back to top
eaanon01
PostPosted: Apr 02, 2012 - 09:47 AM
Posting Freak


Joined: Aug 22, 2002
Posts: 1586
Location: Arendal Norway

Wrong forum.. You are not running linux on your AT32UC3C1512 are you??

_________________
Life's to short for waiting on slow CPU's
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
E_forge
PostPosted: Apr 02, 2012 - 06:17 PM
Rookie


Joined: Oct 20, 2011
Posts: 23


You got me there pal Smile I though this forum was for folks running their development toolchain on linux. Sorry, my bad
 
 View user's profile Send private message  
Reply with quote Back to top
eaanon01
PostPosted: Apr 03, 2012 - 08:19 AM
Posting Freak


Joined: Aug 22, 2002
Posts: 1586
Location: Arendal Norway

np Very Happy

_________________
Life's to short for waiting on slow CPU's
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits