MICROCHIP STUDIO ERROR,programming mode

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

hey, when i try to program my atmega32a with microchip studio this error appears almost all the time:An error occurred while executing a command with ID 0x13. Timed out waiting for a response. An erroneous checksum was detected 1 time(s). Sometimes after many tries programming is successful but may I lost 1 hour after this. I tried many solutions like unplug and plug a USB ,restart the pc or test other values of isp clock but didn't help so much. Below is my setting.Also, i notice that while my code getting bigger is more difficult to achieve a success programing. Any help, please?Sry for my English.

Attachment(s): 

Last Edited: Fri. Oct 8, 2021 - 06:22 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try reducing the ISP clock frequency (4.PNG and 5.PNG) to something closer to 25KHz.

 

Do you have anthing connected to the reset pin or the serial programming pins?

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

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

I test 25 khz and other frequencies but same problem..No,these pins are free

Also i forgot to say that i use stk500.

.

 

 

Last Edited: Fri. Oct 8, 2021 - 07:31 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Those settings look good (ie 125KHz ISP), what you are not showing us is the board you are using or are you programming the chip on the STK500?

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I am programming on the stk500.I just test again a simple blink led code and program almost every time was successful.But when i program my other codes with big size  program is

about 1 of 10 succesfull or without any success.

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

Are you using a USB to RS232 converter? Do you have another one you can try or better still a real RS232 port?

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Keep the chip on the internal clock & program it. .then change it to external. After the change of clock source you MUST have a valid external clock supplied.

 

Some of the newest chips have a clock failed mode to recover the situation, so MUST, becomes preferred

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

Ok i will try these solutions and i will reply the results.Thank you for answers😁

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

Sry for llate respond ,an other problem appeared that is now ok.I try this but nothing happened..same error again.I will try an other cable rs232.Home it will works.Thank y again.

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

Also i notice something.Always i just build my solution then device programming and i program.i never debug my code.Now I try debug the simple led code example and everything was ok...but when i debug my project this error appears and with a second debug it says failed to set-up tool.I just ask in case the error is cause of this.

Sry for my beginner questions thank you.

Attachment(s):