SPRAD24 august 2023 AM2631 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1 , AM263P4 , AM263P4-Q1
PI controllers must be added to close current loop. The PI controller here is implemented similar to C28 program for TIDM-02014. There are different implementations in CMSIS DSP library and others. The intend here is not to cover details on PI controllers. The key message is to make sure the controller is allocated in TCM. Running from TCM is critical for deterministic execution time. If not, significant amount of time will be taken from either content switching between cache and OCRAM or directly running in OCRAM. An example of attribute setting is given in line 1. Another example of one function call is shown in line 2 and 3. The attribute setting must match link command file and Memory Protection Unit configuration. More details can be found from the Technical Reference Manual.