Dear All,
I want to capture traces of a function GS().
I am using CWLITEARM and STM32F4 target.
My paython code is as follow:
key = os.urandom(SIZE)
text = os.urandom(SIZE)traces = []
#output = target.simpleserial_read(‘r’, 256, timeout=100000)
target.simpleserial_write(‘k’, key)
target.simpleserial_wait_ack(timeout=50000)
scope.arm()target.simpleserial_write(‘p’, text)
ret = scope.capture()
traces.append(scope.get_last_trace())
output = target.simpleserial_read(‘r’, SIZE, timeout=50000)print(output)
I have the error
WARNING:root:Timeout in OpenADC capture(), trigger FORCED
WARNING:root:Timeout in OpenADC capture(), trigger FORCED
I tried to augment the baudrate to 11500, and add time.sleep(0.000001) to read and write functions in the serial.py file but this was not useful.
The GS code was compiled and executed on my machine which means the code itself does not have issues.
GS() contains functions inside it, I run every function alone and got the traces, however when I call GS it seems like the chip needs more time to execute the “heavy code”. But as I said, augmenting the timeout did not help me solve it.
Any suggestions?
Thank you,
Sou