Previous in Forum: Batch File Command Parameters   Next in Forum: Thermal Cycle Analysis Software
Close
Close
Close
3 comments
Rate Comments: Nested
Active Contributor

Join Date: Apr 2012
Posts: 10

Microcontroller with JTAG

07/05/2012 6:03 AM

Hello!!

I am trying to debug a program into a microcontroller using AVR jtag adapter...

When I run the program with the JTAG I get the results but if the JTAG is disconnected the program dose not display any result. Why does this happen, is it the program not saved in the microcontroller or something to do with the port connection??

micro controller is AVR ATXMEGA128A1 module,

program written in AVR STUDIO 6

connector is JTAG

Register to Reply
Pathfinder Tags: microcontroller
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Anonymous Poster #1
#1

Re: Microcontroller with JTAG

07/05/2012 6:25 AM
Register to Reply
Active Contributor

Join Date: Apr 2012
Posts: 10
#2

Re: Microcontroller with JTAG

07/05/2012 6:58 AM

Yes but neither do I have any reason for the problem there.

Register to Reply
Guru
Popular Science - Evolution - New Member Popular Science - Weaponology - New Member

Join Date: May 2006
Location: The 'Space Coast', USA
Posts: 11119
Good Answers: 918
#3

Re: Microcontroller with JTAG

07/05/2012 8:21 AM

When you re-compile the program make sure that debug mode is off.

Generally, compilers for embedded microcontrollers either compile in debug mode or stand-alone. There probably are some configuration bits that need to be set or cleared.

Here is an example of those bits for a PIC32MX:

// Debugger Related Settings
//#pragma config DEBUG = ON // Debugger Enabled.
#pragma config DEBUG = OFF // Debugger Enabled.
#pragma config CP = OFF // Code Protect
#pragma config PWP = OFF // Program Flash Write Protect
#pragma config ICESEL = ICS_PGx2 // ICE/ICD Comm Channel Select

Register to Reply
Register to Reply 3 comments
Copy to Clipboard

Users who posted comments:

Anonymous Hero (1); Anonymous Poster (1); kakde (1)

Previous in Forum: Batch File Command Parameters   Next in Forum: Thermal Cycle Analysis Software

Advertisement