This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

debug stuck in if loop?

I loaded the can example that came with the pack installer and stepped thru it till I got to these lines.

#if (CAN_LOOPBACK == 1) if (can_cap.external_loopback != 1U) { return false; } status = ptrCAN->SetMode (ARM_CAN_MODE_LOOPBACK_EXTERNAL); if (status != ARM_DRIVER_OK) { return false; }

The debug will not pass, it is just sitting at this point. I can see it is running but can not find a way to break the code. if I remove the code it runs.