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.

CCS/DRV8301-69M-KIT: DRV8301-69M-KIT

Part Number: DRV8301-69M-KIT

Tool/software: Code Composer Studio

Hello,

I wish to be able to change the PWM Frequency when using the instaSPIN software. However, when I go to edit the user.h, I'm not sure how to rebuild the instaSpin FOC file so that it uses my edited settings. Can someone please help explain this process? 

  • If you are changing the user.h, you should select "Rebuild Project" when right-clicking the project name in the CCS workspace pane. This will clean and build the project which should refresh the header definitions in the .obj files

    Sean
  • Thank you for the response! That is what I have been doing however, I am not exactly sure about what to rebuild or how to import the right project so that the InstaSpin software runs with the new settings that I changed. 

  • The best way to check if the new parameters have been successfully loaded into a project would be to view the gUserParams structure. While debugging a lab, set a breakpoint after the USER_setParams() call, which loads the user.h values into the gUserParams structure. Add gUserParams to the "Expressions" watch window and expand the structure. From here, you should be able to verify that the correct values are loaded into the appropriate variables. pwmPeriod_usec will allow you to verify if the PWM frequency you updated in user.h was correctly loaded into your project

    Sean
  • Unfortunately I am not using the labs, I am just using the InstaSpin FOC GUIComposer which is not launching with my updated user.h file.
  • Which lab are you using as your appProgram.out? I just tried with the InstaSPIN_F2802xF_UNIVERSAL GUI and proj_lab04.out as the appProgram.out and was able to see the correct PWM Frequency update on the right hand side with "user.h Params" option checked

    Sean