I am learning to use TiVa 1294 kit
All USB-based examples has this "extern void USB0DeviceIntHandler(void);" in its startup_ccs.c, but when I want to read more into this, I can't find its source.
Any pointer?
Thanks!
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.
I am learning to use TiVa 1294 kit
All USB-based examples has this "extern void USB0DeviceIntHandler(void);" in its startup_ccs.c, but when I want to read more into this, I can't find its source.
Any pointer?
Thanks!
Hello David,
The Interruot Handler and it's function call is in the TIVAWare usblib directory
For device specific it is in
C:\ti\TivaWare_C_Series-2.1.0.12573\usblib\device
Regards
Amit
Got it, Thanks, Amit,
CCS doesn't provide a way to search all the source files under a project, so I used my old CodeWright to search the project directory, but it didn't work properly under Windows 7 due to bad configuration :)
Amit, need your pointer again,
I tried to add test points inside USB0DeviceIntHandler since my design requires hooking to the USB rx routine in the lowest level to minimize the software latency, but no matter what I do, including to totally messing up the codes (changing USB0DeviceIntHandler to USB0DeviceIntHandler2!) , the projects ignores my modifications.
What did I miss here?
Thanks for your reply in advance!
Hello David
Did you modify the startup_ccs.c file to change the mapping to the new device interrupt handler?
Otherwise you would need to use
IntDisable(INT_USB0);
IntRegister(INT_USB0,USB0DeviceIntHandler2);
IntEnable(INT_USB0);
The former suggestion would work though
Regards
Amit
I'v tried that already, and it didn't help. I got a feeling the linker is pulling a .lib or .obj from outside of my project even though I had changed the codes insides usblib
Maybe CCS doesn't work properly under Windows 7, since I keep getting notice like the following --- wrong date may prevent the linker and compiler to realize I have changed the files.
**** Build of configuration Debug for project watchdog ****
"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
gmake: ../startup_ccs.c: Timestamp out of range; substituting 1969-12-31 19:00:00
gmake: ../watchdog.c: Timestamp out of range; substituting 1969-12-31 19:00:00
gmake: ../watchdog_ccs.cmd: Timestamp out of range; substituting 1969-12-31 19:00:00
gmake: Nothing to be done for `all'.
**** Build Finished ****
Hello David,
Can you zip your project and send it across? I may have to check the project database.
Also which version of CCS and TIVAWare are you using?
Regards
Amit
Amit, thanks for your reply.
I have an urgent product release next week, so I will get back to you later after that
It seems all example projects have this TimeStamp issue.... to avoid confusion, I attached one from TI's example project (enet_lwip) without any modification:
"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
gmake: ../enet_fs.c: Timestamp out of range; substituting 1969-12-31 19:00:00
gmake: C:/Users/Chen/TiVa/enet_lwip/lwipopts.h: Timestamp out of range; substituting 1969-12-31 19:00:00
gmake: ../enet_fsdata.h: Timestamp out of range; substituting 1969-12-31 19:00:00
gmake: ../enet_lwip.c: Timestamp out of range; substituting 1969-12-31 19:00:00
gmake: ../startup_ccs.c: Timestamp out of range; substituting 1969-12-31 19:00:00
gmake: ../enet_lwip_ccs.cmd: Timestamp out of range; substituting 1969-12-31 19:00:00
gmake: Nothing to be done for `all'.
Thanks for your time!