Other Parts Discussed in Thread: HALCOGEN
I working on a custom board built with RM48 and have a problem bringing it up in IAR (existing CCS project works OK but need to move to IAR for production).
In my test project I'm trying to blink an LED connected to CAN1RX (pin B10). I don't need CAN bus so I'd like to use this as GIO (configure as output). I'm able to compile and download my project but when I run it it goes into the weeds at this line in canInit():
/** - Setup control register
* - Enter initialization mode
*/
canREG1->CTL = 0x00000001U;
I believe the purpose of the above is to set the pin as GIO instead of CAN bus (correct me if I'm wrong).
The same line executes fine in CCS project. What am I missing and how do I find out what is going when execution gets stuck at this point (no errors, just sit there waiting indefinitely).