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.
Hi,
In my software, I'm trying to use GPIO24 and GPIO32 as ePWM8A and 8B. When I wrote following lines for init. I got errors. Could you please comment how I cannot use it?
// GPIO24 is the PWM8A pin for 48. // GPIO14 is the PWM8A pin for 49C. //GPIO_setAnalogMode(24, GPIO_ANALOG_DISABLED); GPIO_setMasterCore(24, GPIO_CORE_CPU1); GPIO_setPinConfig(GPIO_24_EPWM8_A); GPIO_setDirectionMode(24, GPIO_DIR_MODE_OUT); GPIO_setPadConfig(24, GPIO_PIN_TYPE_STD); GPIO_setQualificationMode(24, GPIO_QUAL_ASYNC); // GPIO32 is the PWM8B pin for 48. // GPIO32 is the PWM8B pin for 49C. //GPIO_setAnalogMode(32, GPIO_ANALOG_DISABLED); GPIO_setMasterCore(32, GPIO_CORE_CPU1); GPIO_setPinConfig(GPIO_32_EPWM8_B); GPIO_setDirectionMode(32, GPIO_DIR_MODE_OUT); GPIO_setPadConfig(32, GPIO_PIN_TYPE_STD); GPIO_setQualificationMode(32, GPIO_QUAL_ASYNC);
Hi Gokhan,
Thanks for your question! Are you using Sysconfig by any chance? Or just driverlib?
If this is just driverlib, then I thin the issue may be something related to syntax somewhere higher up in the code. If you could also provide the code that was working, we can compare to see if something has a typo somewhere.
Regards,
Vince
Hi Vince,
I don't use Sysconfig, but when I tried it at another project. I also couldn't configure it.
I just use driverlib based project, I write my code on my own.
Whole code has so much lines, sending it here isn't feasible. I can search some line in my code whether there is another line related to it.
Could you please offer?
Hi Gokhan,
This looks like incorrectly imported header files. Can you start with a known-good project and then re-implement your changes? These errors above shouldn't occur unless the entirety of driverlib headers are not being imported properly
Regards,
Vince