Other Parts Discussed in Thread: HALCOGEN
Hi there,
I am trying to use two of the CAN pins on the RM42 as GPIO. I have them configured as such in halcogen, and I noticed that given the way the pins are controlled it doesn't appear they can be driven with the GPIO driver so I wrote a simple interface function to change the state of the pins. At this point I noticed it seems to have no effect, and on further investigation I discovered that the FUNC bit in either pin control register cannot be set to zero, whether through the halcogen startup utility or otherwise (debugger, other function).
As far as I can tell the INIT bit in the CAN control register is NOT being reset. If I set it to one it remains that way and it does not seem to change state from zero, so I do not believe that it is the problem. If I set it to one the changes to the FUNC bits remain until I clear it to zero to exit initialization mode.
I was wondering what exactly I may have overlooked, any help is much appreciated.
Cheers,
Jonathan