KW40Z FRDM board - BLE not works after enabling PWM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KW40Z FRDM board - BLE not works after enabling PWM

跳至解决方案
747 次查看
ashokfair
Contributor IV

Hi All,

Im using KW40Z freedom  board , i m using KW40Z_Connectivity_Software_1.0.1 with SDK 1.3.0

I cloned the project of Bluetooth wireless uart demo. It works fine im able to send and receive data via "IoT Toolbox " android app. 

Later , i added new PWM module to the code.

configure_tpm_pins(TPM0_IDX);

TPM_DRV_Init(TPM0_IDX,&pwm_gconfig);

TPM_DRV_SetClock(TPM0_IDX, kTpmClockSourceModuleClk, kTpmDividedBy2);

TPM_DRV_PwmStart(TPM0_IDX,&param1,1);

PWM is using LED4 (PTC0) so i removed LED4 GPIO init from LED module.

I tested PWM alone and works fine. after integrating to the "Bluetooth wireless uart demo"   BLE stoped working not advertising.

Any idea ? please help on this asap.

Thanks,

Ashok r

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
613 次查看
ashokfair
Contributor IV

Hi All,

PWM works now by changing module to TPM1 from TPM0

configure_tpm_pins(TPM1_IDX);   
TPM_DRV_Init(TPM1_IDX,&pwm_gconfig);
TPM_DRV_SetClock(TPM1_IDX, kTpmClockSourceModuleClk, kTpmDividedBy2);

TPM_DRV_PwmStart(TPM1_IDX,&param1,0);

PTC4, PTC5 are PWM output pins

Thank you

在原帖中查看解决方案

0 项奖励
回复
1 回复
614 次查看
ashokfair
Contributor IV

Hi All,

PWM works now by changing module to TPM1 from TPM0

configure_tpm_pins(TPM1_IDX);   
TPM_DRV_Init(TPM1_IDX,&pwm_gconfig);
TPM_DRV_SetClock(TPM1_IDX, kTpmClockSourceModuleClk, kTpmDividedBy2);

TPM_DRV_PwmStart(TPM1_IDX,&param1,0);

PTC4, PTC5 are PWM output pins

Thank you

0 项奖励
回复