This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DCAN communication with using SCIOPTA on HDK board

Other Parts Discussed in Thread: HALCOGEN

Dear TI Team, 

I am working on CAN communication using HDK board now. 

Without using SCIOPTA, I am able to send and received the CAN message successfully, the driver code is generated from HALCOGEN.

This non-sciopta project's entry point is _c_int00 ( which is in sys_startup.c file, and this file is also generated form HALCOGEN), it will call some functions in system.c which is also HALCOGEN generated file.

Now I want to do the same CAN communication under a SCIOPTA process, that failed.   And i see the "Stuff Error" bit in status and error register.

my SCIOPTA project's entry point is boot.S file and i didn't see functions in system.c (Halcogen's system.c) was called.

the only difference i see between the non-SCIOPTA project and SCIOPTA project is the entry point and system.c related things. so I'm wondering what's this system.c doing exactly?  if DCAN  tranceiver on HDK board need to be configured using this system.c?

or i'm in the wrong direction, the failed transmission is caused by something else?

Regards,

Tracy

  • Hi Tracy,

    system.c configure the device's various system parameters such as setting clocks, setting flash wait states, enabling clocks to peripherals and releasing peripherals from reset. I'm not familiar with SCIOPTA. The systemc. is very likely the reason why the CAN is not working since the peripheral is probably still in reset with no clock if you didn't call system.c unless the SCIOPTA has its own API to set up the device. Please check with SCIOPTA on this. The first thing is to make sure the device is properly setup.