CW1173 chipwhisperer lite - cw308 ufo board issue

I executed
scope.upgrade_firmware()
where CW1173 chipwhisperer lite with a cw308 ufo board. When I read the official document, it was a command that should not be executed on a chipwhisperer equipped with a cw308 board.
(Updating Firmware — ChipWhisperer 5.7.0 documentation)

I conducted Manual SAM3U Firmware Update by using newae wiki document. (https://wiki.newae.com/Manual_SAM3U_Firmware_Update)

After entering bootloader mode(turn on red and blue light), usb which is connected CW1173 is no longer detected CPU(window10 and linux both of all).
I tried to use bossa, but the serial port is not currently searching for CW1173.
Several CPU were used for recongnizing the chipwhisperer lite, but there was no cpu searching for the board. Neither Linux nor Windows recognize the CW1173.
How can I solve this problem?

image

Hi,

You’ve misread that warning. It’s talking about trying to use the upgrade_firmware() to load code onto a CW308 target board. You should use this upgrade interface for all scopes (Lite, Husky, Pro, and Nano)

Try running the following:

import chipwhisperer as cw
cw.program_sam_firmware(hardware_type='cwlite')

Alex

Thanks for reply.
However, my chipwisperer is currently in the bootloader state, and it is connected to cpu, but it is not searched by serial port.

Can you post the output of lsusb -v? There should be an entry that corresponds to the bootloader with a PID/VID of 0x03eb/0x6124.

You may also be running into this issue: CW1173 ChipWhisperer-Lite - NewAE Hardware Product Documentation.

Alex

Hi Alex,

Here is output of lsusb -v

(base) sujin@sujin-VirtualBox:~$ lsusb -v

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Couldn’t open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 3
bMaxPacketSize0 9
idVendor 0x1d6b Linux Foundation
idProduct 0x0003 3.0 root hub
bcdDevice 5.04
iManufacturer 3
iProduct 2
iSerial 1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 31
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
bMaxBurst 0

Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Couldn’t open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x80ee VirtualBox
idProduct 0x0021 USB Tablet
bcdDevice 1.00
iManufacturer 1
iProduct 3
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 85
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn’t open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 5.04
iManufacturer 3
iProduct 2
iSerial 1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12

I run the CW1173 ChipWhisperer-Lite - NewAE Hardware Product Documentation.
The following error occurs.

Thank you,
Sujin

Hi Sujin,

Just to confirm, did you do all of the steps listed at that link, including disconnecting/rebooting before running those commands?

Also, how is your ChipWhisperer connected to your computer? Is it connected through a USB hub? If so, try connecting directly. You may also want to try some different USB cables.

Alex

Thanks for reply Alex,

I did all of the steps below, including disconnect the chipwhisperer lite and rebooting.

  1. Unplug your ChipWhisperer (Leave unplugged until instructed otherwise)
  2. Reboot your computer
  3. Once logged in again, open a terminal session
  4. Run this command: sudo modprobe usbserial vendor=0x3eb product=0x6124
  5. Plug your ChipWhisperer back in
  6. Check that a serial port is now open using: ls -l /dev/ttyUSB*

I connect the Chipwhisperer diretly my computer.
It works fine when I connect another Chipwhisperer with firmware. Therefore, it is determined that it is not a problem with the USB cable.

I have previously performed “Erase all” and “Boot to flash” with SAM3U_CW1173.atsln instead of SAM3U_CW1173.bin on bossa.
Since then, when I connected the Chipwhisperer, it seems that no ports are caught on serial port on bossa and my computer.

Is there any way to reset the Chipwhisperer?
Is there any other way to install the firmware on the Chipwhisperer?

Thanks,
Sujin

The device is running different code with a different configuration when in bootloader mode (that we don’t control), so it could be there’s some interaction there with a USB cable.

Did you perform the firmware erase again after doing this? If not, there’s your issue.

Alex

Thanks for reply Alex,

I erase the board again, the problem solved.
Thanks for your help.

Thank you very much!

Sujin

1 Like