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.
Tool/software: Code Composer Studio
I'm trying to use the eCAN module with instaspin lab 5b. I've created a new C source file, "can.c", and which sets the appropriate data sections in memory, and I've added the F2805x_Headers_nonBIOS.cmd file to the project as well.
When I try to call a function from can.c in the main method of proj_lab05b.c, it is not recognized. I'm not sure what more linking I need to do, as the can.c file is in the project already. What do I do? All I want is to be able to set the bits of the eCAN module shown in can.h
Thank you
I'll add that in the can.c file, the keywords defined to be used for EALLOW access (ENABLE_PROTECTED_REGISTER_WRITE_MODE, DISABLE_PROTECTED_REGISTER_WRITE_MODE) are not recognized. They're defined in cpu.h and work fine in other c files (gpio.c, hal.c, etc), but not in can.c. Hopefully this highlights the issue.
Very strange. I noticed that none of the functions from any c files were working in main. Index > Rebuild solved all of my issues, now can.c is linked correctly and everything is working.
Good to know that. You might refer to the HAL guide in motorWare at the folder below. And let me know if you have any further questions.
\ti\motorware\motorware_1_01_00_18\docs\tutorials