Re: Weird CAN an ADC problem
You are right, after I posted the question I made the test, and indeed, only changing the C2RX to input is enough.
But I don't need the scenario where C2RX is an output, I need it as CAN only, and I have a CAN driver attached to it, the CAN is working great, I can send and receive data with no problem.
The system I am developing has a bootloader. In this bootloader I use the ADC, and it works perfectly. This way I saw that the problem wasn't hardware, so I started removing things that I have enabled in my application and not in the bootloader. When I started messing with the CAN2 pins the problem went away, but I need them working as CAN. I have no clue why this is happening.
Thank you for helping