atmega328pb signature byte error

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

I am using atmega328pb mcu, i have been trying to burn bootloader using usbasp and avrdudess.

but everytime time i detect for signature it returns different values all the time.

i've tried uno boards they seem to work properly, also tried to flash hex code directly but the values are not being written into the flash memory.

 

j1 is the isp header.

Attachment(s): 

This topic has a solution.
Last Edited: Tue. Dec 26, 2017 - 10:38 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Never, ever, use -F (Force) with avrdude.  Unless you show us a picture of your breadboard or a schematic there is really not much we can suggest other than check your wiring again.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

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

wiring is proper, i've double checked them. i was able to burn hex blink to arduinos no problem there.

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

udayAKUMAR123 wrote:

wiring is proper, i've double checked them. i was able to burn hex blink to arduinos no problem there.

Is this chip installed on an Arduino?  The clock fuse is set for an external crystal oscillator, if you do not have an external crystal oscillator connected to the chip you will need to supply a clock to recover the chip to a usable state.  Always remember what I said above about -F.

 

Late here, I will let one of the other AVRFreaks continue to help you with this issue.

 

EDIT: ssf.png in OPs 1st post was added after this post, may need to disregard this, or not, see post #8.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

Last Edited: Tue. Dec 26, 2017 - 09:33 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

R5 and R6 are shown as 0 Ohms. This means that whatever is connected to WI_FI RXD and WI_FI TXD will interfer with the SPI programming signals. And why have you got R7 there at all?

"This forum helps those that help themselves."

"How have you proved that your chip is running at xxMHz?" - Me

"If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

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

The fuse value for clk selects internal rc oscillator so the crystal is of no use. This is a custom board not an arduino.

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

Those 0 ohm resistors are smd jumpers its just a short , but r7 is there by mistake .can jumper resistors interferewith spi?

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

udayAKUMAR123 wrote:

The fuse value for clk selects internal rc oscillator so the crystal is of no use. This is a custom board not an arduino.

Your Fuse values, as shown in q.png, Low 0xFF  High 0xDE  Extended 0x05 do not select the internal rc oscillator.  https://www.avrfreaks.net/sites/d...

 

Did you program the fuses to something other than what is shown?

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

Last Edited: Tue. Dec 26, 2017 - 09:46 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

udayAKUMAR123 wrote:

...can jumper resistors interferewith spi?

 

Not the resistors but what is connected to WIFI_TXD?

"This forum helps those that help themselves."

"How have you proved that your chip is running at xxMHz?" - Me

"If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

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

And can we clear up EXACTLY what chip you are using? Your schematic says "ATMEGA328-PB" which is not a valid part number. What EXACTLY is written on the top of your chip?

"This forum helps those that help themselves."

"How have you proved that your chip is running at xxMHz?" - Me

"If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

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

i have not written fuse values that are displayed, the default fuses from factory are present.

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

its a wifi module , i think it may be

interfering

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

Oh, and C7 at 1uF is too large a value.

"This forum helps those that help themselves."

"How have you proved that your chip is running at xxMHz?" - Me

"If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

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

Read this...

 

 

Attachment(s): 

"This forum helps those that help themselves."

"How have you proved that your chip is running at xxMHz?" - Me

"If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanx for your time guys, the issue was the connection made to wifi module, 

removed jumper resistors now i am getting correct signature of 328pb.

Last Edited: Tue. Dec 26, 2017 - 10:38 AM