Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ Electronics ➜ Microprocessors ➜ Problems with atmega328p-pu bootloader

Problems with atmega328p-pu bootloader

Postings by administrators only.

Refresh page


Posted by Leonardo Calixto   (2 posts)  Bio
Date Wed 10 Oct 2012 11:26 AM (UTC)
Message
Hey Nick !

First of all, thanks for all the job in: http://www.gammon.com.au/forum/?id=11635

But I'm having a problem:

Atmega chip programmer.
Written by Nick Gammon.
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768 bytes.
LFuse = 0x62
HFuse = 0xD9
EFuse = 0xFF
Lock byte = 0xFF
Clock calibration = 0xAE
Bootloader address = 0x7E00
Bootloader length = 512 bytes.
Type 'L' to use Lilypad (8 MHz) loader, or 'U' for Uno (16 MHz) loader ...
Using Uno Optiboot 16 MHz loader.
Type 'V' to verify, or 'G' to program the chip with the bootloader ...
Verifying ...
Verification error at address 7E00. Got: 0xFF Expected: 0x11
Verification error at address 7E01. Got: 0xFF Expected: 0x24
Verification error at address 7E02. Got: 0xFF Expected: 0x84
Verification error at address 7E03. Got: 0xFF Expected: 0xB7
Verification error at address 7E04. Got: 0xFF Expected: 0x14
Verification error at address 7E05. Got: 0xFF Expected: 0xBE
Verification error at address 7E06. Got: 0xFF Expected: 0x81
Verification error at address 7E08. Got: 0xFF Expected: 0xF0
Verification error at address 7E09. Got: 0xFF Expected: 0xD0
Verification error at address 7E0A. Got: 0xFF Expected: 0x85
Verification error at address 7E0B. Got: 0xFF Expected: 0xE0
Verification error at address 7E0C. Got: 0xFF Expected: 0x80

[...]

0x80
Verification error at address 7E25. Got: 0xFF Expected: 0x93
Verification error at address 7E26. Got: 0xFF Expected: 0xC4
Verification error at address 7E27. Got: 0xFF Expected: 0x00
Verification error at address 7E28. Got: 0xFF Expected: 0x8E
Verification error at address 7E29. Got: 0xFF Expected: 0xE0
Verification error at address 7E2A. Got: 0xFF Expected: 0xC9
Verification error at address 7E2B. Got: 0xFF Expected: 0xD0
Verification error at address 7E2C. Got: 0xFF Expected: 0x25
Verification error at address 7E2D. Got: 0xFF Expected: 0x9A
Verification error at address 7E2E. Got: 0xFF Expected: 0x86
Verification error at address 7E2F. Got: 0xFF Expected: 0xE0
Verification error at address 7E30. Got: 0xFF Expected: 0x20
Verification error at address 7E31. Got: 0xFF Expected: 0xE3
Verification error at address 7E32. Got: 0xFF Expected: 0x3C
Verification error at address 7E33. Got: 0xFF Expected: 0xEF
Verification error at address 7E34. Got: 0xFF Expected: 0x91
Verification error at address 7E35. Got: 0xFF Expected: 0xE0
Verification error at address 7E36. Got: 0xFF Expected: 0x30
Verification error at address 7E37. Got: 0xFF Expected: 0x93
Verification error at address 7E38. Got: 0xFF Expected: 0x85
Verification error at address 7E39. Got: 0xFF Expected: 0x00
Verification error at address 7E3A. Got: 0xFF Expected: 0x20
Verification error at address 7E3B. Got: 0xFF Expected: 0x93
Verification error at address 7E3C. Got: 0xFF Expected: 0x84
Verification error at address 7E3D. Got: 0xFF Expected: 0x00
Verification error at address 7E3E. Got: 0xFF Expected: 0x96
Verification error at address 7E3F. Got: 0x1F Expected: 0xBB
Verification error at address 7E40. Got: 0xFF Expected: 0xB0
Verification error at address 7E41. Got: 0xFF Expected: 0x9B
Verification error at address 7E42. Got: 0xFF Expected: 0xFE
Verification error at address 7E43. Got: 0xFF Expected: 0xCF
Verification error at address 7E44. Got: 0xFF Expected: 0x1D
Verification error at address 7E45. Got: 0xFF Expected: 0x9A
Verification error at address 7E46. Got: 0xFF Expected: 0xA8
Verification error at address 7E47. Got: 0xFF Expected: 0x95
Verification error at address 7E48. Got: 0xFF Expected: 0x81
Verification error at address 7E49. Got: 0xFF Expected: 0x50
Verification error at address 7E4A. Got: 0xFF Expected: 0xA9
Verification error at address 7E4B. Got: 0xFF Expected: 0xF7
Verification error at address 7E4C. Got: 0xFF Expected: 0xCC
Verification error at address 7E4D. Got: 0xFF Expected: 0x24
Verification error at address 7E4E. Got: 0xFF Expected: 0xDD
Verification error at address 7E4F. Got: 0xFF Expected: 0x24
Verification error at address 7E50. Got: 0xFF Expected: 0x88
Verification error at address 7E51. Got: 0xFF Expected: 0x24
Verification error at address 7E52. Got: 0xFF Expected: 0x83
Verification error at address 7E53. Got: 0xFF Expected: 0x94
Verification error at address 7E54. Got: 0xFF Expected: 0xB5
Verification error at address 7E55. Got: 0xFF Expected: 0xE0
Verification error at address 7E56. Got: 0xFF Expected: 0xAB
Verification error at address 7E57. Got: 0xFF Expected: 0x2E
Verification error at address 7E58. Got: 0xFF Expected: 0xA1
Verification error at address 7E59. Got: 0xFF Expected: 0xE1
Verification error at address 7E5A. Got: 0xFF Expected: 0x9A
Verification error at address 7E5B. Got: 0xFF Expected: 0x2E
Verification error at address 7E5C. Got: 0xFF Expected: 0xF3
Verification error at address 7E5D. Got: 0xFF Expected: 0xE0
Verification error at address 7E5E. Got: 0xFF Expected: 0xBF
Verification error at address 7E5F. Got: 0xFF Expected: 0x2E
Verification error at address 7E60. Got: 0xFF Expected: 0xA2
Verification error at address 7E61. Got: 0xFF Expected: 0xD0
Verification error at address 7E62. Got: 0xFF Expected: 0x81
Verification error at address 7E63. Got: 0xFF Expected: 0x34
Verification error at address 7E64. Got: 0xFF Expected: 0x61
Verification error at address 7E65. Got: 0xFF Expected: 0xF4
496 verification error(s).
First 100 shown.
Type 'C' when ready to continue with another chip ...



And, of course, I can't program it as well...

Could you please help me, I've already wasted almost 7 hrs trying to bootload my chip !

Thanks!
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 10 Oct 2012 08:11 PM (UTC)
Message
You appear to have the "divide by 8 clock" fuse bit set. Try changing the line in the sketch which has:


  // slow down SPI for benefit of slower processors like the Attiny
  SPI.setClockDivider (SPI_CLOCK_DIV64);


to:


  // slow down SPI for benefit of slower processors like the Attiny
  SPI.setClockDivider (SPI_CLOCK_DIV128);


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Leonardo Calixto   (2 posts)  Bio
Date Reply #2 on Wed 10 Oct 2012 10:41 PM (UTC)
Message
Thanks ! It worked !

But bad news, I 've discovered that the chip wasn't my only problem, something is wrong with the board. (I'm using 2 boards).
It lights up the power and blinks the L led 3 times, but the PC don't recognize the arduino...
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #3 on Thu 11 Oct 2012 02:59 AM (UTC)
Message
I would rather you posted these issues on the Arduino forum, to save splitting assistance between that and here.

http://arduino.cc/forum

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


17,664 views.

Postings by administrators only.

Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.