We put the radio test project on our custom battery powered board and encountered a problem.
When we disconnect the usb cable, the tone emitted by radio test project disappeared.
We want to disconnect the cable as the cable could act as an antenna.
Why the radio test needs usb cable connected to keep running? Where can I modify the code so that disconnecting cable would not stop the test?
How is the board supplied and what transport layer are you using for CLI module?
Thanks for reaching out to help.
The board is a customized board that has a usb port on it.
The cli module transport layer is usb cdc acm through that port.
I merged the radio test with cli example, because the original radio test project uses UART instead of USB cdc.
My guess is that the application asserts because you disconnect the backend that the CLI module is dependent on.
Sorry for the delay, but I had a chance to re-visit the problem. I turned off all asserts, the tone generated by radio test still vanishes after usb cable is pulled off.
I don't know how to solve the problem right now..
And is the board still supplied after you plug the cable out? What is supplying the board?
cpeng said:I turned off all asserts, the tone generated by radio test still vanishes after usb cable is pulled off.
How did you do this? I don't see how this would solve the issue. Have you routed the SWD pins out so you could connect the board to a debugger? Could you try to see what the application is doing when you plug out the usb cable?