Hello, I've been scratching my head on this one for a day now.
If I put an org statement (besides 0x00) in my code then it doesn't work.
I can upload my custom bootloader with avrdude/usbtiny, and it seems to work properly and be located at the correct place in flash. So the hex file seems ok.
but when I upload within avrstudio I get code at 0x0000 despite the org statement.
Here is the original hex generated by avrstudio that works fine with avrdude (it's a work in progress):
:1038000000C0F89404E00EBF0FEF0DBF0E940F1C24
:1038100001E40E941C1C0E94231C0C94091C03E35D
:103820000093C40000E00093C50008E10093C100CC
:1038300006E00093C20008951091C00015FFFCCF70
:103840000093C60008950091C00007FFFCCF0091CF
:10385000C600089523E01ED021E11CD030E8099075
:10386000199021E017D032963250C9F7E05825E080
:1038700011D021E10FD030E8C058D0400590199008
:10388000011002C03150D1F707B706FF089521E1BA
:1038900001D0FACF07B700FDFDCF1FB7F894F99913
:0A38A000FECF27BFE8951FBF089573
:00000001FF
And here is what got put on the chip through the bridge, the address is zero and not the bootloader address:
:2000000000C0F89404E00EBF0FEF0DBF0E940F1C01E40E941C1C0E94231C0C94091C03E301
:200020000093C40000E00093C50008E10093C10006E00093C20008951091C00015FFFCCFDC
:200040000093C60008950091C00007FFFCCF0091C600089523E01ED021E11CD030E8099004
:20006000199021E017D032963250C9F7E05825E011D021E10FD030E8C058D0400590199068
:20008000011002C03150D1F707B706FF089521E101D0FACF07B700FDFDCF1FB7F894F999CD
:0A00A000FECF27BFE8951FBF0895AB
:00000001FF
Thanks,
Dave.
more avrstudio fun (trying to write asm bootloader)
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 4
- Joined: Sun Nov 23, 2008 11:48 am
Please be positive and constructive with your questions and comments.