Hi,
I´m using the TMS570 MCU development Kit, and I´m trying to do a simple CAN program.
First of all I have created a program using HALCoGen and then I have taken the attached DCAN program of this page.
I’ve modified all the registers so that it can compile with the TMS570.
So, I’ve initialized the module with canInit(), and the rest of the program it´s the same of the attached program.
But nothing happens, I can´t transmit either receive messages, I don’t know what I´m doing wrong. The only difference is that I don’t use this functions:
VIM_RAM_Init();
swi_enable_irq();
dcan_enable_int();
I don´t know where can I find the first two functions, and the 3rd , if its only for enabling the interrupts, I think I do that in the function canInit.
When I run the program, it always stops in the while for detecting the newdat.
Are these functions necessary?
I can send the main program with all the changes I did if necessary.
Thanks in advance for your help.
David