Part Number: TMS320F28035
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE-DIGITALPOWER-SDK
Tool/software: TI C/C++ Compiler
Hi TI,
I've been developing some code using the digital_power AMS macros and I think i've come across an issue with the macro when compared with the data structure definitions in the header files.
So, path information to help locating the files; the header is located in:
"..ti\controlSUITE\libs\app_libs\digital_power\f2803x_v3.5\include" and is DPlib.h.
It defines a data structure for the coefficients of the CNTL_2P2Z: 2-pole 2-zero library. The struct definition defines 8 elements, but when compared to the assembler code it appears to only access 7.
Assembler macro can be located at this path:
"..ti\controlSUITE\libs\app_libs\digital_power\f2803x_v3.5\asm_macros" and is CNTL_2P2Z.asm
Please find attached the files in question for reference.
Due to the location of the new variable added in the header file, the assembler macro accesses when then turns out to be an uninitialised variable, resulting in some rather strange behaviour of the controller. This appear to have occurred between the transition from v3.3 of the library to v3.5.
Not sure how well this bug is documented, but if v3.5 of the library is not yet proven would you be able to suggest a stable version among those provided?
Cheers,
Alex Smith.