-
joerg_wunsch committed patchset 218 of module avarice to the AVaRICE CVS repository, changing 2 files.
2009-08-26 20:22:55 UTC by joerg_wunsch
-
The bulk of the changes are in devdescr.cc where I added the size of the .fuses and .lock pages. I used the same code that is used to write the flash and eeprom to write the fuses and lockbits, but just added support for the two additional sections.
I updated the code for both the mkI and mkII (jtagprog.cc and jtag2prog.cc). I only have an mkII so I can't confirm functionality on other...
2009-08-21 23:34:45 UTC by suudy
-
I've uploaded a patch to support this feature. It also includes support for the .lock section.
2009-08-21 22:50:21 UTC by suudy
-
Attached is a patch (against the head) that supports programming the fuses and lock bits from the .fuses and .lock sections in the ELF file.
2009-08-21 22:49:48 UTC by suudy
-
This bug exists, regardless of the section. If the .lock section is present (and the .fuses is not) this crash would occur. This attached patch fixes it in all cases.
The root cause is the fact that sectmemtype is not initialized. After the if/else if chain it could be anything (depending upon the stack). In the crash I've seen it is 0, which ends up being MEM_FLASH. Instead the if/else...
2009-08-21 22:46:46 UTC by suudy
-
In jtag2prog.cc there is a warning about "deprecated conversion from string constant to 'char*' ". This patch eliminates that warning.
2009-08-21 21:11:50 UTC by suudy
-
Instead of only programming the fuses via the command line, it would be nice to have avarice read the .fuses section and program the fuses.
2009-08-21 21:10:21 UTC by suudy
-
Moving to feature requests.
2009-08-21 21:09:55 UTC by suudy
-
Moved to patches section.
2009-08-21 21:09:27 UTC by suudy
-
Avarice crashes when the .fuses section is present in the ELF when programming. The simple fix (for the segfault) is to have get_section_addr() return 0xffffff when an invalid section address is discovered. This prevents jtag_create_image() from overrunning the image->image buffer.
2009-08-21 21:08:51 UTC by suudy