How to make avrisp mkII. A USB driver is. After you click the “upload using programmer” tab you should now be able to download programs to your AVR. First of all, sorry for my bad English. I have build an avrisp mkII clone, used your code with very minor modifications(just added some ctrl lines to select ISP/PDI mode at hw level), and it's working flawlessly with Atmel Studio 6. However it doesn't works with Atmel Studio 6.2/7.0. Tested on Win8.1/Win10. I found a patch on some russian site for Atmel Studio 6.2 that addresses this issue. I ported it to Atmel Studio 7.0 and guess what: it works on it too! However there is an annoying bug(feature??) in AS 7.0: it resets the ISP clock to 125kHz every time it connects to the programmer; sends a CMD_SET_PARAMETER(PARAM_SCK_DURATION,6) command before CMD_GET_PARAMETER(PARAM_SCK_DURATION). Here are the details(just patch a conditional jump): - for AS 6.2: change the byte 0x74 to 0xEB at file offset 0x35F11 in file atbackend codeCache com_atmel_hil_usb.dll located in AS 6.2 install dir - for AS 7.0: change the byte 0x74 to 0xEB at file offset 0x2F632 in file atbackend codeCache com_atmel_hil_usb.dll located in AS 7.0 install dir - for AS 7.0.634: change the bytes 0x0F 0x84 to 0x90 0xE9 at file offset 0x2F74C in file atbackend codeCache com_atmel_hil_usb.dll located in AS 7.0.634 install dir It is a temporary solution, but better than nothing. First of all, sorry for my bad English. I have build an avrisp mkII clone, used your code with very minor modifications(just added some ctrl lines to select ISP/PDI mode at hw level), and it's working flawlessly with Atmel Studio 6. However it doesn't works with Atmel Studio 6.2/7.0. Tested on Win8.1/Win10. I found a patch on some russian site for Atmel Studio 6.2 that addresses this issue. I ported it to Atmel Studio 7.0 and guess what: it works on it too! However there is an annoying bug(feature??) in AS 7.0: it resets the ISP clock to 125kHz every time it connects to the programmer; sends a CMD_SET_PARAMETER(PARAM_SCK_DURATION,6) command before CMD_GET_PARAMETER(PARAM_SCK_DURATION). Here are the details(just patch a conditional jump): - for AS 6.2: change the byte 0x74 to 0xEB at file offset 0x35F11 in file atbackend codeCache com_atmel_hil_usb.dll located in AS 6.2 install dir - for AS 7.0: change the byte 0x74 to 0xEB at file offset 0x2F632 in file atbackend codeCache com_atmel_hil_usb.dll located in AS 7.0 install dir - for AS 7.0.634: change the bytes 0x0F 0x84 to 0x90 0xE9 at file offset 0x2F74C in file atbackend codeCache com_atmel_hil_usb.dll located in AS 7.0.634 install dir It is a temporary solution, but better than nothing. I can confirm that the ISP clock gets reset to 125kHz. I have a slightly different behavior, however, with Windows 10 and Atmel Studio 7.0.634: While using 'Device Programming' I click 'Apply' to connect to the target and I get an error. Then if I click in the next second again 'Apply' I would connect successfully (and I can read memories, program, check fuses etc). This happens repeatedly (when I disconnect using software means, for example, selecting 'Simulator' and clicking 'Apply'; then I attempt to select the programmer again I would again receive an error on the next 'Apply' and if I click 'Apply' in the next second or so I would get properly connected and so on). Another strange thing is that if I use an USB hub (instead of connecting directly to the PC) I can never establish a connection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
September 2018
Categories |