Hallo alle zusammen,
ich spiele heute das erste mal in meinem Leben mit einem MSP430 und habe
dafür ein Launchpad.
Eigentlich war es bis jetzt relativ schmerzfrei.
Ich kann ein Programm mit MSP-GCC compilieren (es wird eine .ELF Datei
erstellt).
Ich kann mspdebug (mit rf2500) starten und gebe ich darin:
erase
prog blink.elf
Tastenkombination CTRL-D
ein, dann blinkt es doch tatsächlich.
Einzig ich würde mspdebug gerne ohne Interaktion mit mir verwenden.
Auf der Kommandozeile eingegeben:
mspdebug rf2500 erase
löscht den Controller tatsächlich und kehrt zur Kommandozeile zurück.
Ein
mspdebug rf2500 prog blink.elf
bringt folgende Fehlermeldung:
1 | MSPDebug version 0.25 - debugging tool for MSP430 MCUs
|
2 | Copyright (C) 2009-2017 Daniel Beer <dlbeer@gmail.com>
|
3 | This is free software; see the source for copying conditions. There is NO
|
4 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
5 | Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.
|
6 |
|
7 | Trying to open interface 1 on 008
|
8 | rf2500: warning: can't detach kernel driver: No such file or directory
|
9 | Initializing FET...
|
10 | FET protocol version is 30001000
|
11 | Set Vcc: 3000 mV
|
12 | Configured for Spy-Bi-Wire
|
13 | fet: FET returned error code 4 (Could not find device or device not supported)
|
14 | fet: command C_IDENT1 failed
|
15 | Using Olimex identification procedure
|
16 | Device ID: 0xf201
|
17 | Code start address: 0xf800
|
18 | Code size : 2048 byte = 2 kb
|
19 | RAM start address: 0x200
|
20 | RAM end address: 0x27f
|
21 | RAM size : 128 byte = 0 kb
|
22 | Device: F20x2_G2x2x_G2x3x
|
23 | Number of breakpoints: 2
|
24 | fet: FET returned NAK
|
25 | warning: device does not support power profiling
|
26 | Chip ID data:
|
27 | ver_id: 01f2
|
28 | ver_sub_id: 0000
|
29 | revision: 30
|
30 | fab: 40
|
31 | self: 0000
|
32 | config: 02
|
33 | fuses: 00
|
34 | Device: F20x2_G2x2x_G2x3x
|
35 | prog: you need to specify a filename
|
Wie mache ich es richtig ?