 |
bladox.com Turbo SIM Toolkit Adapter Forums
|
View previous topic :: View next topic |
Author |
Message |
PeregrineFalcon
Joined: 03 Mar 2011 Posts: 6
|
Posted: Thu May 26, 2011 6:34 pm Post subject: ISP Programming (read Debugging with Breakpoints) |
|
|
I would like to debug some applications using the AVR JTAGmkII.
I reviewed the Product sheet for the BXTOP45P Bladox board and see the pin-out information. Is this possible with the BXTOP45P?
I would like to be able to use AVaRICE similar to what is described here.
Any help in this effort would be appreciated.
Thanks,
-PF |
|
Back to top |
|
 |
PeregrineFalcon
Joined: 03 Mar 2011 Posts: 6
|
Posted: Fri May 27, 2011 4:46 pm Post subject: |
|
|
So I believe I know what I need to do, but still would like guidance on how to proceed, and if my assumptions are correct.
Again, my goal is to perform debugging using hardware breakpoints. At first I thought this could be accomplished with either Atmels debugWire or Bladox's ISP interface. Upon further research it appears this is not possible in the current configuration.
Research into the ATmega128 chip indicates that in order to enable JTAG debugging I need to modify the Fuse bits. Bladox provides tools for this, but users should be cautious.
For example. one could read the fuse (lock, info, calibration) bytes from the Bladox components using 'urdfu' which comes with the turbo-prog-utils. One could also write the fuse hi,low, extended bytes with tools like uwrf[h,l,e], but per the Atmel documentation this requires first changing the lock byte (specifically bit 0 of the Lock Bit Byte).
In order to do this (again per the Atmel documentation) requires performing the "Chip Erase Command". Once again BLADOX to the rescue (since I was thinking I would have to write the program to accomplish this), however, BLADOX warns against this, as it may make the device unusable and require a re-flashing by BLADOX.
Therefore, I'm at the point where I want to perform these set of operations in order to turn on JTAG debugging to use with my Atmel JTAG mkII, but I want to make sure I follow 'semi-official' BLADOX procedures. Could someone chime in on the best way to accomplish this?
Hopefully, my summary of what I learned above will serve useful to others using the BLADOX product (which is quite a good package).
Thanks,
-PF |
|
Back to top |
|
 |
pz
Joined: 12 Mar 2004 Posts: 1161
|
Posted: Mon May 30, 2011 5:55 am Post subject: |
|
|
You can't. You erase the firmware and that's it, device will not work.
If you want to debug your code use dbc(), dbch(), dbi(), dbsp() etc calls and "dbg" utility. JTAG is not allowed. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|