Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - tcz

1
Bus Pirate Support / BPv4.0 with OpenOCD
Hello,

I have the following configuration file (openocd-buspirate.cfg):

Code: [Select]
interface buspirate

buspirate_port /dev/ttyACM3

# communication speed setting
buspirate_speed normal ;# or fast

# voltage regulator Enabled = 1 Disabled = 0
buspirate_vreg 0

# pin mode normal or open-drain
buspirate_mode normal

# pullup state Enabled = 1 Disabled = 0
#buspirate_pullup 0

# this depends on the cable, you are safe with this option
reset_config srst_only

After execution of the following command:

Code: [Select]
openocd -f ./openocd-buspirate.cfg

I receive the folloing output:

Code: [Select]
Open On-Chip Debugger 0.9.0-dev-00346-g3e1dfdc-dirty (2015-03-12-14:30)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Warn : Adapter driver 'buspirate' did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Info : Some stale data from a previous connection was discarded.
Error: Error reading data
Error: Buspirate error. Is binary/OpenOCD support enabled?

configuretion of OpenOCD is as follows:

Code: [Select]
OpenOCD configuration summary
--------------------------------------------------
MPSSE mode of FTDI based devices        yes
ST-Link JTAG Programmer                yes (auto)
TI ICDI JTAG Programmer                yes (auto)
Keil ULINK JTAG Programmer              yes (auto)
Altera USB-Blaster II Compatible        yes (auto)
Versaloon-Link JTAG Programmer          yes (auto)
Segger J-Link JTAG Programmer          yes (auto)
OSBDM (JTAG only) Programmer            yes (auto)
eStick/opendous JTAG Programmer        yes (auto)
Andes JTAG Programmer                  yes (auto)
USBProg JTAG Programmer                yes (auto)
Raisonance RLink JTAG Programmer        yes (auto)
Olimex ARM-JTAG-EW Programmer          yes (auto)
CMSIS-DAP Compliant Debugger            no

configure: WARNING: Building the deprecated 'ft2232' adapter driver.

Could any one of you put some light on this issue?

Best Regards,
Tomek
2
Bus Blaster JTAG debugger / BBv3c with Openocd
Hello,

I have the following configuration file for Openocd:

Code: [Select]
interface ftdi
ftdi_device_desc "Dual RS232-HS"
ftdi_vid_pid 0x0403 0x6010

ftdi_layout_init 0x0c08 0x0f1b
ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400
ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800

adapter_khz 100
transport select jtag

After execution of the following command:

Code: [Select]
openocd -f ./openocd-busblaster-ftdi.cfg

I receive the following output:

Code: [Select]
Open On-Chip Debugger 0.9.0-dev-00346-g3e1dfdc-dirty (2015-03-12-14:30)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : If you need SWD support, flash KT-Link buffer from https://github.com/bharrisau/busblaster
and use dp_busblaster_kt-link.cfg instead
adapter speed: 100 kHz
xsvf
Info : clock speed 100 kHz
Warn : There are no enabled taps.  AUTO PROBING MIGHT NOT WORK!!
Info : JTAG tap: auto0.tap tap/device found: 0x06e5e093 (mfg: 0x049, part: 0x6e5e, ver: 0x0)
Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 2 -expected-id 0x06e5e093"
Error: IR capture error at bit 2, saw 0x3FFFFFFFFFFFFF05 not 0x...3
Warn : Bypassing JTAG setup events due to errors
Warn : gdb services need one or more targets defined

Could anyone put some light on the error message?

Best Regards,
Tomek
4
Bus Pirate Support / Re: BPv4: firmware compilation
After import bpv4.mcp project from MPLAB IDE level, compilation fails as follows:

Quote
CLEAN SUCCESSFUL (total time: 82ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/tmp/0/Firmware/bpv4.X'
make  -f nbproject/Makefile-default.mk dist/default/production/bpv4.X.production.hex
make[2]: Entering directory '/tmp/0/Firmware/bpv4.X'
"/opt/microchip/xc16/v1.24/bin/xc16-gcc"  ../main.c  -o build/default/production/_ext/1472/main.o  -c -mcpu=30F1010  -MMD -MF "build/default/production/_ext/1472/main.o.d"        -g -omf=elf -mlarge-code -mlarge-data -O0 -I".." -I"../dp_usb" -I"../jtag" -I"../translations" -I"." -msmart-io=1 -Wall -msfr-warn=off
"/opt/microchip/xc16/v1.24/bin/xc16-gcc"  ../SPI.c  -o build/default/production/_ext/1472/SPI.o  -c -mcpu=30F1010  -MMD -MF "build/default/production/_ext/1472/SPI.o.d"        -g -omf=elf -mlarge-code -mlarge-data -O0 -I".." -I"../dp_usb" -I"../jtag" -I"../translations" -I"." -msmart-io=1 -Wall -msfr-warn=off
"/opt/microchip/xc16/v1.24/bin/xc16-gcc"  ../raw3wire.c  -o build/default/production/_ext/1472/raw3wire.o  -c -mcpu=30F1010  -MMD -MF "build/default/production/_ext/1472/raw3wire.o.d"        -g -omf=elf -mlarge-code -mlarge-data -O0 -I".." -I"../dp_usb" -I"../jtag" -I"../translations" -I"." -msmart-io=1 -Wall -msfr-warn=off
"/opt/microchip/xc16/v1.24/bin/xc16-gcc"  ../raw2wire.c  -o build/default/production/_ext/1472/raw2wire.o  -c -mcpu=30F1010  -MMD -MF "build/default/production/_ext/1472/raw2wire.o.d"        -g -omf=elf -mlarge-code -mlarge-data -O0 -I".." -I"../dp_usb" -I"../jtag" -I"../translations" -I"." -msmart-io=1 -Wall -msfr-warn=off
nbproject/Makefile-default.mk:325: recipe for target 'build/default/production/_ext/1472/main.o' failed
nbproject/Makefile-default.mk:346: recipe for target 'build/default/production/_ext/1472/SPI.o' failed
nbproject/Makefile-default.mk:339: recipe for target 'build/default/production/_ext/1472/raw3wire.o' failed
In file included from ../raw3wire.c:16:0:
../base.h:18:22: fatal error: p24Fxxxx.h: No such file or directory
compilation terminated.
In file included from ../SPI.c:18:0:
../base.h:18:22: fatal error: p24Fxxxx.h: No such file or directory
compilation terminated.
In file included from ../main.c:17:0:
../base.h:18:22: fatal error: p24Fxxxx.h: No such file or directory
compilation terminated.
make[2]: *** [build/default/production/_ext/1472/main.o] Error 255
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [build/default/production/_ext/1472/SPI.o] Error 255
make[2]: *** [build/default/production/_ext/1472/raw3wire.o] Error 255
nbproject/Makefile-default.mk:332: recipe for target 'build/default/production/_ext/1472/raw2wire.o' failed
make[2]: Leaving directory '/tmp/0/Firmware/bpv4.X'
make[1]: Leaving directory `/tmp/0/Firmware/bpv4.X'
In file included from ../raw2wire.c:16:0:
../base.h:18:22: fatal error: p24Fxxxx.h: No such file or directory
compilation terminated.
make[2]: *** [build/default/production/_ext/1472/raw2wire.o] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 612ms)"

p24Fxxxx.h file you can find on the following location:

/opt/microchip/xc16/v1.24/support/PIC24F/h/p24Fxxxx.h

Can you tell me which file edit to add "-I/opt/microchip/xc16/v1.24/support/PIC24F/h" parameter to compiler?

After execution from cmd of the following command:

opt/microchip/xc16/v1.24/bin/xc16-gcc ../main.c  -o build/default/production/_ext/1472/main.o  -c -mcpu=30F1010  -MMD -MF "build/default/production/_ext/1472/main.o.d"        -g -omf=elf -mlarge-code -mlarge-data -O0 -I".." -I"../dp_usb" -I"../jtag" -I"../translations" -I"." -msmart-io=1 -Wall -msfr-warn=off -I/opt/microchip/xc16/v1.24/support/PIC24F/h/

I receive the following error:

Quote
/"In file included from ../main.c:17:0:
../base.h:116:2: error: #error "No hardware defined in base.h."
../main.c: In function 'Initialize':
../main.c:130:5: error: 'OSCCONbits' undeclared (first use in this function)
../main.c:130:5: note: each undeclared identifier is reported only once for each function it appears in
../main.c:171:37: error: 'DEV_ADDR_UPPER' undeclared (first use in this function)
../main.c:171:53: error: 'DEV_ADDR_TYPE' undeclared (first use in this function)
../main.c:172:52: error: 'DEV_ADDR_REV' undeclared (first use in this function)
../main.c:204:5: error: 'TBLPAG' undeclared (first use in this function)"
5
Bus Pirate Support / BPv4: firmware compilation
Hello,

I have cloned svn repository and tried to compile firmware for BPv4 - unfortunately without success.
I have the following development tools:
MPLABX-v2.30-linux
xc16-v1.24-full-install-linux

Compilation fails when try to compile non existed files i.e "m_1wire_213.c". Can any one put a bit of light on this topic?

Best Regards,
Tomek

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01302320400session_write_close ( )...(null):0
20.01332452000ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01332452776Database_MySQL->query( ).../DatabaseHandler.php:119
40.05682591520Database_MySQL->error( ).../Db-mysql.class.php:273