problem with bootloader for ATmega324P

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

Hi All,

For some reason I can't get the processor to write the first page of 64 words to the flash. I have checked the TWI communication and the master send all pages, including the first.

I have tried to follow the example in the avr-libc user manual as closely as possible.

Can you find any obvious mistakes?

TIA!
/Janne

PS
Why are multiple spaces reduced to a single space and leading spaces removed? Nice for indented code!?

.

Attachment(s): 

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

And the preview didn't even look like the final result...

Ok, enough whining :*|

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

Ok, I just found the obvious mistake.

I didn't have a correct CRC in the downloaded file so the bootloader downloaded the file, checked the CRC, erased the first page and waited for a new file over TWI.

I feel so stupid...