I am using the D2000 CRB with the mbed application shield. I can read temperature sensor over i2c. I can flash board (using Zephyr 'make flash') when shield is not attached. But when I try to flash to flash with shield attached I see the following error
$ make BOARD=quark_d2000_crb flash
make: Entering directory '/home/hbruce/Projects/zephyr-project'
make: Entering directory '/home/hbruce/Projects/zmraa/examples/mbed-app-shield/outdir'
Using /home/hbruce/Projects/zephyr-project as source for kernel
Flashing Target Device
Open On-Chip Debugger 0.9.0-dirty (2016-05-11-16:25)
Licensed under GNU GPL v2
For bug reports, read
Info : auto-selecting first available session transport "jtag". To override use 'transport select '.
adapter speed: 1000 kHz
trst_only separate trst_push_pull
adapter speed: 1000 kHz
trst_only separate trst_push_pull
adapter speed: 6000 kHz
Info : clock speed 6000 kHz
Info : TAP quark_d2000.cltap does not have IDCODE
Info : TAP auto0.tap does not have IDCODE
Info : TAP auto1.tap does not have IDCODE
Info : TAP auto2.tap does not have IDCODE
Info : JTAG tap: auto3.tap tap/device found: 0x10208201 (mfg: 0x100, part: 0x0208, ver: 0x1)
Is the problem only when you flash the board with the shield attached? If you flash the board without the shield attached, you don't have problems, is this right?
Is that the entire log after flashing the board?
Could you post the code (or a snippet of it) to review it?
Thanks for taking the time to look at this. Flashing only fails when shield is attached. I am flashing the hello_world sample built with nano_kernel.
I can flash Arduino 101 with this shield attached so I don't think shield is at fault. More details of shield can be found at https://developer.mbed.org/components/mbed-Application-Shield/ mbed Application Shield | mbed
Find me inside Intel.
I've had a similar issue with a "blank shield" ie the Grove Base Shield and that has a reset switch and an LED as the active components. So I doubt its an issue with the shield components, but maybe just a signal or noise issue.
I can flash OK with a different shield http://jimmieprodgers.com/kits/lolshield/programlolshield/ http://jimmieprodgers.com/kits/lolshield/programlolshield/
I notice that this shield is missing pins SDA/SCL and IOREF/NC.
We were able to use the ISSM to flash with the latest Zephyr 1.4 release (and 1.2 release) while the shield is connected without any problem.
Could you try with the Zephyr 1.4? Which version are you currently using?
Thanks for checking in.
I have updated to Zephyr 1.4.0 and still see the same error.
Note that I can flash Arduino 101 when the shield shield is plugged in.
As intel_stewart mentioned, this could be a signal or noise issue.
While using the ISSM ide, I'm able to upload sketches without problems with and without a shield. (I do not have the shield you have but I'm testing this with different Arduino shields).
While using Zephyr, I get an error, but is different from yours. I get the same error with and without the shield connected.
Info : JTAG tap: quark_d2000.lmt enabled
Error: couldn't bind to socket: Address already in use
I am installing the 0.8 sdk by following: https://www.zephyrproject.org/doc/getting_started/installation_linux.html https://www.zephyrproject.org/doc/getting_started/installation_linux.html and building and flashing using: https://www.zephyrproject.org/doc/board/quark_d2000_crb.html https://www.zephyrproject.org/doc/board/quark_d2000_crb.html . Let me know if you are doing something differently so I could replicate the same behavior.
Thanks for looking into this. You seem to be doing the right thing. Take a look at https://www.zephyrproject.org/doc/board/quark_d2000_crb.html https://www.zephyrproject.org/doc/board/quark_d2000_crb.html for more details.
From your error, it seems that another openocd session is running. Make sure you disconnect from target in ISSM openocd panel before exiting.
I would like to know if you could send us the output of running lsusb and dmesg with and without the shield connected to the board.
Here is output from lsusb and dmesg. I see no difference with and without shield attached.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 05e3:0612 Genesys Logic, Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 009: ID 0557:2213 ATEN International Co., Ltd CS682 2-Port USB 2.0 DVI KVM Switch
Bus 003 Device 008: ID 0557:8021 ATEN International Co., Ltd CS1764A [CubiQ DVI KVMP Switch]
Bus 003 Device 039: ID 0409:0058 NEC Corp. HighSpeed Hub
Bus 003 Device 004: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 003 Device 045: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 003 Device 044: ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC
Bus 003 Device 010: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 002: ID 0cf3:7010 Atheros Communications, Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Here is dmesg output.
When I plug in CRB to USB
1359337.638091] usb 3-3.2: new high-speed USB device number 43 using xhci_hcd
[1359337.723116] usb 3-3.2: New USB device found, idVendor=0403, idProduct=6014
[1359337.723122] usb 3-3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1359337.723126] usb 3-3.2: Product: D2000 MCU Dev Kit
[1359337.723129] usb 3-3.2: Manufacturer: Intel Corporation
[1359337.723131] usb 3-3.2: SerialNumber: 160500562
[1359337.727435] ftdi_sio 3-3.2:1.0: FTDI USB Serial Device converter detected
[1359337.727502] usb 3-3.2: Detected FT232H
[1359337.728679] usb 3-3.2: FTDI USB Serial Device converter now attached to ttyUSB0
When I plug in FTDI serial cable
1359695.942060] usb 3-3.3: new full-speed USB device number 45 using xhci_hcd
[1359696.037981] usb 3-3.3: New USB device found, idVendor=0403, idProduct=6001
[1359696.037986] usb 3-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1359696.037989] usb 3-3.3: Product: TTL232R-3V3
[1359696.037991] usb 3-3.3: Manufacturer: FTDI
[1359696.037993] usb 3-3.3: SerialNumber: FTFOJCUL
[1359696.043924] ftdi_sio 3-3.3:1.0: FTDI USB Serial Device converter detected
[1359696.043982] usb 3-3.3: Detected FT232RL
[1359696.045419] usb 3-3.3: FTDI USB Serial Device converter now attached to ttyUSB1
When I flash CRB
[1359953.746113] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[1359953.746160] ftdi_sio 3-3.2:1.0: device disconnected