Other Parts Discussed in Thread: C2000WARE, POWERSUITE
Hello everybody,
I have trouble to implement CLA in my program, this is the situation :
-> My project is working correctly on flash in standalone mode with all periphericals which I need (ADC, PWM, CAN, GPIO, Timer, Interrupts etc) but I need to increase sample rate and my butterworth filters are too heavy for time calculation... so I want to put all filters on CLA.
-> I have modified compilation options with cla2 = on, predifined symbol 'CLA_C' and I have added CLA_MyPurpose.c,CLA_MyPurpose.cla and CLA_MyPurpose.h
-> Instead of "2837xD_FLASH_ink_cpu1.cmd" I have put "2837xD_FLASH_CLA_ink_cpu1.cmd"
-> I have used examples to make template with empty claTasks, empty claISR and configuration
My big trouble concern project build, first "__TMS320C28XX_CLA__" seems to not be defined by compiler (despite the presence of .cla file) so I have stdarg.h message error. Then I saw somewhere (I can't remember where) that if "__TMS320C28XX_CLA__" is defined, can.h can't be included => does it mean that CAN bus can't run if CLA is activated ?
I have also "cla1IsrX is undefined" for all 8 ISR despite the prototype declaration in .h (it's ok for claTaskX).
I f I am adding "__TMS320C28XX_CLA__" in predefined symbol I haven't this troubles but I have at least 100 errors with UintX undefined types ...
I also precise that compilation time is about 5min against 30sec for the same project without CLA config.
Could you help me please I am stuck.
Thank you very much and have a nice day,
Best regards,
Jérémy Bargas