AVR Downloader/UploaDEr - Bugs: bug #40145, 6.0.1 - STK500v2 fails on uploads...
You are not allowed to post comments on this tracker with your current authentication level.
bug #40145: 6.0.1 - STK500v2 fails on uploads to parts with pages greater than 256b
Submitter: | Natan Keddem <nkeddem> | ||
Submitted: | Mon 30 Sep 2013 01:50:11 AM UTC | ||
Category: | None | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | None |
Status: | None | Privacy: | Public |
Assigned to: | None | Originator Name: | Natan Keddem |
Open/Closed: | Open | Release: | None |
Programmer hardware: | Device type: |
Attached Files
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2013-09-30 | nkeddem | Attached File | - | Added doc2591.pdf, #29263 |
Powered by Savane 3.13-f8d8.
Corresponding source code
The function stk500v2_paged_write(and possibly other paged write functions) need the following changes:
1 - Start utilizing the blocksize variable in the .conf file to determine the maximum size of data transmissions.
2 - Perform sanity checks on blocksize to ensure conformance to STK500v2 transfer protocol maximum body specifications. AVR068 states that the body should not exceed 275b, use this number or the buffer size you choose, which ever is less.
3 - Per AVR068, during a paged write transaction utilizing CMD_PROGRAM_FLASH_ISP the mode byte will alert the programmer when a page should be written.
AVR068 states:
For paged operation, the Write page bit decides if a Write Program Memory Page command should be issued after the data has been loaded into the page buffer. For devices with page size bigger than what can be transferred to STK500 in one command, several CMD_PROGRAM_FLASH_ISP commands must be issued. In such a case, only the last command should have the Write Page
mode bit set.