I've been trying to get the simple_tx.c example in Stellarisware to output to a pin so I can see the output on an oscilloscope. Stepping through the code, the data part of my message is in the correct registers and the important bits such as INIT, CCE, and TXRQST seem to be working correctly. However, the output on the scope is just a constant voltage of +3.3v.
Has anyone been able to get the CAN0TX signal to output correctly? I imagine the signal to be 3.3v for a "1" and 0v for a "0."
Here's my code:
The changes I have made are minor. Changed the pins from port D default to port B for my board, and used my own sample data rather than default incrementing data.. I also excluded a lot of TI's comments and the interrupt handler function defined externally according to my startup file.
Startup code is below my main source file.
I was getting a warning for 'unused declaration of function '_c_int00'. I know it is supposed to be defined externally according to my startup code. I copy and pasted it from somewhere.
Also uART is not working I don't think. No messages are printing to console, and not sure why pins are needed. But it compiles, so I left it.
I just need some possible points of how to get this example code running.
Thanks!