Hi All,
I am using an FRMD-K32L2B3 board and the latest MCUXpresso IDE v11.6.0 [Build 8187] [2022-07-13] IDE.
I have a fairly simple C based application I've developed using the UARTs and some GPIO on that board, it works fine. However I wanted to add PWM output to one of the GPIOs. The sample project tpm_simple_pwm.c works fine and generates the expected PWM output signal on the green LED output on the board. When I try to cut and paste that exact file into my custom project and run it, I get no PWM output on the pin however, just a constant voltage of about 1.5V.
Are there any additional settings I should be carrying over from the tpm_simple_pwc project into my custom project to get PWM output working?
Also if it has any effect, in my custom project I had to change a few symbol defines to get floating point printf working, the full set of defined symbols in my custom project is:
-std=gnu99 -D__REDLIB__ -DPRINTF_ADVANCED_ENABLE=1 -DCPU_K32L2B31VLH0A -DCPU_K32L2B31VLH0A_cm0plus -DFRDM_K32L2B -DFREEDOM -DMCUXPRESSO_SDK -DSDK_DEBUGCONSOLE=1 -DPRINTF_FLOAT_ENABLE=1 -D__MCUXPRESSO -D__USE_CMSIS -DDEBUG -I"C:\project\source" -I"C:\project\utilities" -I"C:\project\drivers" -I"C:\project\device" -I"C:\project\component\uart" -I"C:\project\component\lists" -I"C:\project\CMSIS" -I"C:\project\board" -I"C:\project\frdmk32l2b\driver_examples\gpio\led_output" -O0 -fno-common -g3 -c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fmerge-constants -fmacro-prefix-map="$(<D)/"= -mcpu=cortex-m0plus -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs