Replies: 9 comments 8 replies
-
What is the AVR chip you are using? Take note PIC32 is not supported (either MIPS core or Arm Cortex M core). And take note avr32 is not really supported other than the single chip already supported. No further work will be done for AVR32 as it is kind of obsolete already. |
Beta Was this translation helpful? Give feedback.
-
Avrdude's model of AVR memory is that it starts at 0 and has a certain size. There are parts where memory has a notional offset (XMEGAs), and this has been modelled for those parts. Watch out for tests I for one wouldn't mind if someone (different from me) took a look at the codebase with a view of making incoming offsets (from .hex/.elf files) and placement offsets in the chip a general proposition that is described in avrdude.conf, and propose a PR provided the code and avrdude.conf remain backward compatible and the ensuing memory model is more general than the current one and encompasses the AVR memory models... |
Beta Was this translation helpful? Give feedback.
-
The other thing you can try is to set the size of the memory in ~/.avrduderc to be 0x1d200000, not 0x200000. That will work for reading of the hex file and should work for writing (but note that Avrdude's STK500v2 protocol implementation might only stretch to 3-byte addresses). When reading back the flash file, Avrdude will want to read the full hog of 0x1d200000 as Avrdude does not (yet) allow to uoload/download partial memories (see Issue #1322) |
Beta Was this translation helpful? Give feedback.
-
I think https://github.com/sergev/pic32prog is better suited for my needs. |
Beta Was this translation helpful? Give feedback.
-
Interestingly I found the stk500v2 bootloader for PIC32 here. |
Beta Was this translation helpful? Give feedback.
-
In some sense ihex, srec etc formats are all converted to binary during file read. One difference is that ihex formats can have holes in them, ie, during upload the programmer might jump from uploading page 42 to uploading page 242. Some bootloaders and/or some (physical) programmer FW cannot cope with non-contiguous upload, some even require upload starts at 0. But that's all outside AVRDUDE... |
Beta Was this translation helpful? Give feedback.
-
If I remember correctly, avrdude checks the 64k Limit when reading an ihex file. Since pic32 does start somewhere above 64k it, you can Not use an ihex file. That was the reason I was asking here.
…----------------------------------------
11.06.2023 23:37:07 Stefan Rueger ***@***.***>:
> Will try binary eventually
In some sense ihex, srec etc formats are all converted to binary during file read. One difference is that ihex formats can have holes in them, ie, during upload the programmer might jump from uploading page 42 to uploading page 242. Some bootloaders and/or some (physical) programmer FW cannot cope with non-contiguous upload, some even require upload starts at 0. But that's all outside AVRDUDE...
--
Reply to this email directly or view it on GitHub:
#1353 (comment)
You are receiving this because you modified the open/close state.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Not to my knowledge: avrdude implements the Intel Hex format as prescribed and reads/writes arbitrary file sizes. However, if a part has a |
Beta Was this translation helpful? Give feedback.
-
@rhae BTW, any part that has |
Beta Was this translation helpful? Give feedback.
-
Hello,
i have a pic32 where flash resides, at a high address, like 0x1D00'0000 and is of size 0x20'0000. When loading this file avrdude says:
Looking at fileio.c:346 reads like
I guess the description of the part in the avrdude.conf is not ok. My guess is that maybe an offset in avrdude.conf may help.
Do you have any hint for me?
Regards,
Rüdiger
Beta Was this translation helpful? Give feedback.
All reactions