SysHalt on USB when halting with SWD?
Posted: Fri Feb 19, 2016 11:24 am
Hi all,
I have a strange thing happening that I am unable to explain with the USB (Serial).
If I halt the system with the debugger and then continue, everything continues as it should.
But it I halt the system, send data at the same time over USB (from the computer to ChibiOS), and then continue I get a SysHalt in usbStartTransmitI.
I have not seen this before, so I loaded an old firmware from 3.0 and then this does not happen (running 16.1.4 now).
Is this a sign that I am doing something wrong or is it by design something that 3.0 did not catch?
EDIT:
To clarify, it still works after starting the program again.
But the first USB packet that comes after the program was started again causes the SysHalt.
I have a strange thing happening that I am unable to explain with the USB (Serial).
If I halt the system with the debugger and then continue, everything continues as it should.
But it I halt the system, send data at the same time over USB (from the computer to ChibiOS), and then continue I get a SysHalt in usbStartTransmitI.
I have not seen this before, so I loaded an old firmware from 3.0 and then this does not happen (running 16.1.4 now).
Is this a sign that I am doing something wrong or is it by design something that 3.0 did not catch?
EDIT:
To clarify, it still works after starting the program again.
But the first USB packet that comes after the program was started again causes the SysHalt.