Re: iSendIR / Samköpsprojekt #1
Postat: 5 januari 2011, 02:37:40
Det är inga problem för mig heller. Du måste få tid till att ta igen dig först och främst! 

Svenskt forum för elektroniksnack.
https://elektronikforumet.com/forum/
Kod: Markera allt
cd $home
sudo apt-get install git-core libtool autoconf texinfo libftdi-dev tcl8.5
git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd
cd openocd
git pull
./bootstrap
./configure --enable-maintainer-mode --enable-ft2232_libftdi
make
make install
sudo make install
Kod: Markera allt
openocd -v
Kod: Markera allt
Open On-Chip Debugger 0.5.0-dev-...........
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Kod: Markera allt
cat /etc/udev/rules.d/45-ftdi2232-libftdi.rules
Kod: Markera allt
BUS!="usb", ACTION!="add", SUBSYSTEM!="usb_device", GOTO="kcontrol_rules_end"
SYSFS{idProduct}=="6010", SYSFS{idVendor}=="0403", MODE="666", GROUP="plugdev"
LABEL="kcontrol_rules_end"
Kod: Markera allt
Open On-Chip Debugger 0.5.0-dev-00677-g7cd2617 (2010-12-25-14:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
500 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
srst_only separate srst_gates_jtag srst_open_drain
Info : clock speed 500 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: lm3s6965.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0x7 in JTAG-DP transaction
Polling target failed, GDB will be halted. Polling again in 100ms
Polling target failed, GDB will be halted. Polling again in 300ms
Error: Target not examined yet
Runtime Error: isendir.cfg:10: Command handler execution failed
in procedure 'script'
at file "embedded:startup.tcl", line 57
in procedure 'halt' called at file "isendir.cfg", line 10
Kod: Markera allt
Open On-Chip Debugger 0.5.0-dev-00677-g7cd2617 (2010-12-25-14:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
500 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
srst_only separate srst_gates_jtag srst_open_drain
Info : clock speed 500 kHz
Info : JTAG tap: lm3s6965.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
Info : lm3s6965.cpu: hardware has 6 breakpoints, 4 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x21000000 pc: 0x00000358 msp: 0x2000fff0
1000 kHz
** Programming target
auto erase enabled
wrote 120832 bytes from file source/gcc/isendir.bin in 40.737785s (2.897 KiB/s)
** Programming done
Info : JTAG tap: lm3s6965.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
Kod: Markera allt
developer@dev-ubuntu:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
Bus 002 Device 002: ID 80ee:0021
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Kod: Markera allt
developer@dev-ubuntu:~$ cat /etc/udev/rules.d/45-ftdi2232-libftdi.rules
BUS!="usb", ACTION!="add", SUBSYSTEM!="usb_device", GOTO="kcontrol_rules_end"
SYSFS{idProduct}=="6010", SYSFS{idVendor}=="0403", MODE="666", GROUP="plugdev"
LABEL="kcontrol_rules_end"
Kod: Markera allt
developer@dev-ubuntu:~$ cd workspace/iSendIR/Software/
developer@dev-ubuntu:~/workspace/iSendIR/Software$ openocd -f isendir.cfg
Open On-Chip Debugger 0.5.0-dev-00714-g8684bd1 (2011-01-10-18:24)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
500 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
srst_only separate srst_gates_jtag srst_open_drain
Error: unable to open ftdi device: device not found
Runtime Error: isendir.cfg:9: Command handler execution failed
in procedure 'script'
at file "embedded:startup.tcl", line 57
in procedure 'init' called at file "isendir.cfg", line 9
developer@dev-ubuntu:~/workspace/iSendIR/Software$
Kod: Markera allt
fsdata.c:12879: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12881: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12881: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12883: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12883: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12885: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12885: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12887: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12887: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12889: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12889: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12891: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12891: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12893: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12893: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12895: error: 'file__svn_all' undeclared here (not in a function)
fsdata.c:12895: error: 'wcprops' undeclared here (not in a function)
fsdata.c:12897: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12897: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12899: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12899: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12901: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12901: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12903: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12903: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12905: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12905: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12907: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12907: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12909: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12909: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12911: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12911: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12913: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
fsdata.c:12913: warning: ISO C does not allow extra ';' outside of a function
fsdata.c:12915: error: 'file__svn_prop' undeclared here (not in a function)
fsdata.c:12915: error: 'base_perror_htm_svn' undeclared here (not in a function)
fsdata.c:12915: error: 'base' undeclared here (not in a function)
fsdata.c:12915: error: invalid operands to binary - (have 'int' and 'const struct fsdata_file *')
fsdata.c:12915: error: initializer element is not constant
fsdata.c:12915: error: (near initialization for 'file_network_html[0].next')
make: *** [gcc/lmi_fs.o] Error 1
Kod: Markera allt
static const unsigned char data__svn_text-base_relay_html_svn-base[] = {
/* /.svn/text-base/relay.html.svn-base */
0x2f, 0x2e, 0x73, 0x76, 0x6e, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x2d, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0x2e, 0x73, 0x76, 0x6e, 0x2d, 0x62, 0x61, 0x73, 0x65, 0,
0x3c, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0xa, 0x3c, 0x68, 0x65,
Kod: Markera allt
static const unsigned char data_img_sics_gif[] = {
/* /img/sics.gif */
0x2f, 0x69, 0x6d, 0x67, 0x2f, 0x73, 0x69, 0x63, 0x73, 0x2e, 0x67, 0x69, 0x66, 0,
0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32,