attiny816 break pin

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

hi,

I thought it might be cool to add some type of simple debugging to mr aardvarks pyupdi programmer. (dwire-debug comes to mind) So on linux I can work fast without visual candy distractions. (aka pushing and clicking my way to happiness smiley(;<\)

 

In this connection has anyone got an opinion about this stanza in ATtiny816.atdf :

      <property-groups>
        <property-group name="OCD_FEATURES">
          <property name="BREAK_PIN" value="PA1"/>
          <property name="BREAK_PIN_ALT" value="PC4"/>
        </property-group>

or is that forever going to stay a secret?

 

Greetings

 

jan

 

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

deiKruve wrote:
In this connection has anyone got an opinion about this stanza in ATtiny816.atdf :
Not likely to be implemented due to the paucity of pins in tinyAVR though would be a nice fusible feature so that an external signal can enter OCD instead of via the tinyAVR 1-series UPDI controller.

deiKruve wrote:
or is that forever going to stay a secret?
fyi, the first revision of tinyAVR 1-series datasheet had minimal non-essential information about OCD.

Proprietary OCD is a significant factor to reducing the price of any MCU.

 

P.S.

deiKruve wrote:
I thought it might be cool to add some type of simple debugging to mr aardvarks pyupdi programmer. (dwire-debug comes to mind)
Indeed that would be cool.

The effort may result in joy as UPDI OCD may be relatively simple unless there's simple crypto (doesn't take much HDL to add keys based on MCU's serial number, current key can be data-at-rest encrypted inside EDBG)

One operates a debugger less often than a monitor and/or stream service (akin to arm semihosting)

sigrok has a PDI decoder; could extend that to a UPDI decoder (PDI and UPDI share instructions)

Could attach a MCU or MPU to the UPDI signal to implement a streamer or the higher levels of a monitor (low level monitor already exists in UPDI controller, bus matrix, and unified memory access)

deiKruve wrote:
So on linux I can work fast without visual candy distractions.
Likewise on Windows via PowerShell.

Would also be useful on macOS and Chrome OS.

 


https://github.com/dcwbrown/dwire-debug#acknowledgement

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0471g/Bgbjjgij.html (What is semihosting?)

AVR - Calibration & Daq toolchain?

by max_torque_2008

https://www.avrfreaks.net/forum/avr-calibration-daq-toolchain

https://sigrok.org/wiki/Protocol_decoder:Avr_pdi

 

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

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

gchapman wrote:
fyi, the first revision of tinyAVR 1-series datasheet had minimal non-essential information about OCD.

 

Here is a custom search to get the old datasheet with a bit of OCD info: https://www.google.com/search?q=...

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

Right,

got the message.

sigrok.org only decodes the instructions that are published, and that I had done halfway already for a serial device simulator to test things.

 

So back to some real serial port sniffing. jpnevulator should do the trick.

Suppose I will have to invest in an attiny416-explained board. And than there is the great expense of finding place for avr studio inside my Virtual box.

 

Thanks for the pointer to the old datasheet: It has the debug key.

 

Cheers,

 

Jan.

 

 

 

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

Debug wire has been laregly reverse-engineerd cq documented by 3rd-parties.

https://hackaday.com/?s=debugwire

https://sites.google.com/site/wayneholder/debugwire

Doing magic with a USD 7 Logic Analyser: https://www.avrfreaks.net/comment/2421756#comment-2421756

Bunch of old projects with AVR's: http://www.hoevendesign.com

Last Edited: Sat. Apr 28, 2018 - 03:56 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the links Paul. The debugger Wayne did is a clean piece of work.

 

But unfortunately as you will be aware it is 2 generations older than the present invocation of the beast.

 

Jan.