setting USERROW with pyupdi on AVR128DA

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

I want to program the USERROW section with pyupdi. I tried the following command to set USERROW0 to 0x03:

 

pyupdi -c /dev/ttyUPDI -d avr128da32 -fs 48:0x3

 

48 should be the correct offset, it is the difference between the  fuses (0x1050) and userrow(0x1080)

However, this always fails with:

 

Device info: {'family': 'AVR', 'nvm': 'P:2', 'ocd': 'D:1', 'osc': '3', 'device_id': '1E9709', 'device_rev': '1.7'}
Verify error for fuse 48, expected 0x03 read 0xFF
Error during processing

 

Any ideas what might be wrong?

 

 

 

This topic has a solution.
Last Edited: Sun. Oct 3, 2021 - 07:57 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I recommend moving over to pymcuprog, installed using pip: https://pypi.org/project/pymcuprog/

Use -t uart -u <serialport> -m user_row -o <offset> -l <value>

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

Thanks a lot, just tried that, works great!