Hi,
Just wired up a jlink to my seeed xiao samd21 based board.
Couple of odd issues,
- when starting the debugger always stops here
^~~~~~~~~
Archiving .pio\build\seeed_xiao\libFrameworkArduino.a
*** [.pio\build\seeed_xiao\firmware.elf] C:\icotest\fc-range\PowerPortMax\SystemController\FC5000 PowerController.pio\build\seeed_xiao\firmware.elf: The process cannot access the file because it is being used by another process
- \brief Main entry point of Arduino application
*/
int main(void)
{
init();
I’m using the device as a HID and normally use the USB serial for debugs, this USB device never comes up so I don;t have these capabilities with the link in use. Aware that you have a small amount of time from enurmation to device coming up and suspect that the “break” in the main() causes the USB to fail. Anyways around this?
Using the debugger to track an issue where code gets stuck in a wait loop somewhere I assume, do need to use a separate host or switch to serial debugs? that might not be easy due to pins!
Any ideas?