hab einfach mal mit Bascom
1 | $regfile = "m32def.dat"
|
2 | $framesize = 32
|
3 | $swstack = 32
|
4 | $hwstack = 32
|
5 | $crystal = 16000000
|
6 | $baud = 9600
|
7 | Config Portc.0 = Output 'Ein Pin wird als Ausgang konfiguriert PC0 (also Pin0 von Port C)
|
8 | Portc.0 = 1
|
9 | Do
|
10 | Print "**** RN-CONTROL sagt Hello World *****"
|
11 | Wait 1
|
12 | Loop
|
compiliert und es versucht mit bascom zu übertragen.(Auslesen und
erkennen geht)Beim programmieren, wenn ich Autoprogramming auswähle,
geht das Fenster sofort wieder weg. Wenn ich es manuell mache bekomm ich
den Fehler:
Chip differs at byte address : 00000
Buffer read
384 bytes written to FLASH
CHIP is empty
Buffer read
CHIP erased
USBASP programmer set
Wenn ich das ganze als .hex mit avrdude hochladen bekomme ich keinen
Fehler:
1 | D:\Users\Public\Documents\µc\avrdude-5.5\avrdude-5.5-win32-bin>avrdude.exe -c u
|
2 | basp -p m32 -U justprint.hex
|
3 | found 7 busses
|
4 |
|
5 | avrdude.exe: AVR device initialized and ready to accept instructions
|
6 |
|
7 | Reading | ################################################## | 100% 0.03s
|
8 |
|
9 | avrdude.exe: Device signature = 0x1e9502
|
10 | avrdude.exe: NOTE: FLASH memory has been specified, an erase cycle will be perf
|
11 | rmed
|
12 | To disable this feature, specify the -D option.
|
13 | avrdude.exe: erasing chip
|
14 | avrdude.exe: reading input file "justprint.hex"
|
15 | avrdude.exe: input file justprint.hex auto detected as Intel Hex
|
16 | avrdude.exe: writing flash (316 bytes):
|
17 |
|
18 | Writing | ################################################## | 100% 1.52s
|
19 |
|
20 |
|
21 |
|
22 | avrdude.exe: 316 bytes of flash written
|
23 | avrdude.exe: verifying flash memory against justprint.hex:
|
24 | avrdude.exe: load data flash data from input file justprint.hex:
|
25 | avrdude.exe: input file justprint.hex auto detected as Intel Hex
|
26 | avrdude.exe: input file justprint.hex contains 316 bytes
|
27 | avrdude.exe: reading on-chip flash data:
|
28 |
|
29 | Reading | ################################################## | 100% 1.39s
|
30 |
|
31 |
|
32 |
|
33 | avrdude.exe: verifying ...
|
34 | avrdude.exe: 316 bytes of flash verified
|
35 |
|
36 | avrdude.exe: safemode: Fuses OK
|
37 |
|
38 | avrdude.exe done. Thank you.
|
allerdings wenn ich es dann auslese steht was falsches drin in Z:~0x130
sollte etwas von "Hello World" stehen.
1 | avrdude> read flash 0x120 0xF0
|
2 | >>> read flash 0x120 0xF0
|
3 | 0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
4 | 0130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
5 | 0140 f0 17 3a 04 b8 fb 12 00 e4 80 5b 00 01 9e 57 00 |.:.©...õ.[..×W.|
|
6 | 0150 80 80 5b 00 c0 fb 12 00 8a 80 5b 00 b8 fb 12 00 |..[.└.....[.©...|
|
7 | 0160 00 00 00 00 40 80 5b 00 01 9e 57 00 70 6a 09 03 |....@.[..×W.pj .|
|
8 | 0170 fc fb 12 00 a1 c2 5b 00 cc fb 12 00 c8 c2 5b 00 |³...í┬[.╠...╚┬[.|
|
9 | 0180 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
|
10 | 0190 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
|
11 | 01a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
|
12 | 01b0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
|
13 | 01c0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
|
14 | 01d0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
|
15 | 01e0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
|
16 | 01f0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
|
17 | 0200 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
|
Wo liegt mein Fehler?