OpenOCD und LM3S6965

OP #930675
Lesenswert?

Hallo zusammen,

seit kurzem habe ich ein LM3S6965 Eval board daheim. Nun versuche ich 
schon seit mehreren Tagen das Ding zu flashen. Leider bisher ohne 
Erfolg, und es macht sich schon langsam Verzweiflung breit.

Das File was ich flashen will (RTOSDemo.bin) ist mit CodeSourcery G++ 
kompiliert (einfach das Eclipse/GCC demo projekt runtergeladen, unzip, 
make).

Hier mal ein Auszug aus dem Log (der interessante Part - der Rest is 
angehängt):
1
Debug:   171 2293 cortex_m3.c:288 cortex_m3_examine_exception_reason(): HardFault SHCSR 0x20000, SR 0x40000000, CFSR 0x10000, AR 0xffffffff
2
Debug:   172 2294 cortex_m3.c:363 cortex_m3_debug_entry(): entered debug state in core mode: Handler at PC 0xa230, target->state: halted

Ich benutze OpenOCD rev889 mit FTDI kompiliert, mit folgender config 
(quasi 1 zu 1 der des RTOSDemo-Projekts):
1
#daemon configuration
2
telnet_port 4444
3
gdb_port 3333
4

5
#interface
6
interface ft2232
7
ft2232_device_desc "Stellaris Evaluation Board"
8
ft2232_layout evb_lm3s811
9
ft2232_vid_pid 0x0403 0xbcd9
10
jtag_speed 40
11
#LM3S811 Evaluation Board has only srst
12
reset_config srst_only separate
13

14
#jtag scan chain
15
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
16
jtag_device 4 0x1 0xf 0xe
17

18
#target configuration
19
daemon_startup reset
20
#target <type> <startup mode>
21
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
22
target cortex_m3 little run_and_init 0
23
# 4k working area at base of ram
24
working_area 0 0x20000800 0x1200 nobackup
25
#target_script 0 reset ../doc/scripts/evb_lm3s811_test.script 
26

27
target_script 0 reset program.script
28

29

30
#flash configuration
31
flash bank stellaris 0 0 0 0 0

und folgendem script als program.script:
1
halt
2
sleep 200
3
wait_halt
4
flash probe 0
5
#sleep 500
6
flash info 0
7
#sleep 500
8
#flash protect 0 0 31 off
9
#sleep 500
10
flash erase 0 0 255
11
sleep 200
12
flash write 0 RTOSDemo.bin 0
13
sleep 200
14
reset run
15
shutdown

Kann mir da irgendwer weiter helfen. Auch googeln und änliches bringt 
nichts ... da stand nirgenwo was brauchbares.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren