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.
Tool/software: Code Composer Studio
I would like to reopen this question
I am following the instructions included in motorware (instaspin_labs.pdf) to compile and run the first lab example.
It is typically found in this install location...
C:\ti\motorware\motorware_1_01_00_17\docs\labs
Project compiles fine.. I am following the instructions on page 24 of the Doc. I click on Debug and the code runs (It says it's running) but no LED blinks anywhere.
I have enabled Silicon Real time however the LED still does not blink
I am having the exact same problem as this old thread and I could not find an answer in the original post
Thankyou
Please check if the HAL_Gpio_LED2 is set to GPIO_Number_31 in hal.h, and the hal.h is correct. f not, a wrong header file (hal.h) is included in this project, you may refer to lab01b to change the including directory of the header file.
Or click "Project->Properties->Build->C2000 Compiler->Include Options", change the #include search path from "${MW_INSTALL_DIR}/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/" to "${MW_INSTALL_DIR}/sw/modules/hal/boards/boostxldrv8305_revA/f28x/f2806x/src/"
Hi Yanming
Thank you for responding, I did as you suggested but it made the project unbuildable. I changed back to the original settings and had a further look into the GPIO settings. Turns out LED 2 (blue LED) is assigned to GPIO_39. When I initialised the mode and direction, I was able to turn it on.
Not sure if this is an error in the downloaded motorware lab, or just a discrepancy with my board model.
None the less my issue is resolved. Thank you!