Part Number: TMS320F28069M
Other Parts Discussed in Thread: MOTORWARE, CONTROLSUITE
Tool/software: TI C/C++ Compiler
Hi,
I noticed a weird behavior when trying to run instaSPIN lab1 on our custom-made PCB with F28069M MCU (the design is based on DRV8301-EVM with slight changes). There is an OFFSET_init() function called from within HAL_init() at the start of the program, however offset.c source file is not included in compilation. The code runs alright on development kit, but the debugger trace disappears after stepping into this function when run on our PCB! The linker doesn't throw any errors, so I suppose these functions are defined to reside somewhere in ROM memory of the MCU. Manually adding offset.c and filter_fo.c/_so.c to the project solves the problem. Similar issue applies to CTRL_init() from Lab1b, but I cannot find this one anywhere...
Update: I checked the number on MCU chip itself and it seems that the controlCard uses f28069mpzt version instead of f28069upzps (as seen on the schematics* - and this is what we ordered). Can it be the reason of missing functions?
My specific questions are:
1. Why are the source files not used for original lab project, even though the code is included in motorware package?
2. If functions are fun from ROM, where is their location defined? Maybe it is a matter of tweaking the linker file to use another location?
3. What is the difference between MCU used on development kit and the one we ordered separately?
4. What other catches like that can we expected when switching to a custom PCB? I am aware of possible differences in GPIO porting and user.h parameters, but wouldn't expect the need for additional files...
*The schematics of the control card with F28069U-PZPS instead of F28069M-PZT is found in controlSuite, as suggested in: https://e2e.ti.com/support/applications/motor_drivers/f/38/t/366344