Hello!
I’m working on a project with the FE310 UFO, and I’m having trouble using the serial connection through SimpleSerial and the Python library (from a Jupyter notebook) on this target. I have tried to use the simpleserial-base firmware as provided in the tutorials, which provides me with the following results:
>>> target.get_simpleserial_commands()
(ChipWhisperer Target WARNING|File SimpleSerial.py:414) Unexpected start to command:
{
"name": "TypeError",
"message": "'NoneType' object is not subscriptable",
"stack": "---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[12], line 1
----> 1 target.get_simpleserial_commands()
File ~/cw/chipwhisperer/software/chipwhisperer/capture/targets/SimpleSerial.py:232, in SimpleSerial.get_simpleserial_commands(self, timeout, ack)
229 num_commands = self.simpleserial_read('r', 1, timeout=timeout, ack=ack)
230 self.simpleserial_write('w', bytearray())
--> 232 cmd_packet = self.simpleserial_read('r', num_commands[0]*3, timeout=timeout, ack=ack)
233 command_list = []
234 for i in range(num_commands[0]):
TypeError: 'NoneType' object is not subscriptable"
}
Reading any other command results in the same “Unexpected start to command” error, and the target does not ack either.
I have also tried to run my own firmware that just prints “Hello World!” to the serial connection and turns a GPIO pin high and low every second. Using a logic analyzer, I have confirmed that the FE310 is actually flashed, as this seems to work as intended. Even here, though, I am not able to read the serial monitor using “target.read()” as it just returns an empty string.
Does anyone have any idea what could be going on here, or am I missing something very obvious?