KW40Z FRDM board - BLE not works after enabling PWM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KW40Z FRDM board - BLE not works after enabling PWM

ソリューションへジャンプ
721件の閲覧回数
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 解決策
587件の閲覧回数
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 返信
588件の閲覧回数
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 件の賞賛
返信