⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
7 posts / 0 new
Last post
邓昌永
Offline
Last seen:1 month 1 week ago
加入:2020-02-10 02:23
pwm demo does not run

Excuse me, how should the PWM be configured,Can you provide some source code for my reference。

Device:
PM_Dialog
Offline
Last seen:7 hours 56 min ago
工作人员
加入:2018-02-08 11:03
Hi There,

Hi There,

Please check theDA1469x Input Capture & PWM TimerSW example. You can find it from the DA1469x product page. You will find source code for your reference in order configure the PWM functionality. In case of latest SDK version (SDK10.0.8), you should do the following modifications. You are working on updating the SW example for the latest SDK version. All the following modification should be done in in config/custom_config_xxx.h header file.

1. Remove the following macros

#define dg_configEMULATE_OTP_COPY ( 0 ) #define dg_configUSER_CAN_USE_TIMER1 ( 0 )

2. There are no memory layout schemes and so, the following definition should be removed completely.

/* Include memory layout */ #include "bsp_memory_layout.h"

3. Enable the WDOG mechanism

#define dg_configUSE_WDOG ( 1 )

4.Use the following configurations

#define dg_configFLASH_CONNECTED_TO ( FLASH_CONNECTED_TO_1V8P ) #define dg_configFLASH_POWER_DOWN ( 1 ) #define dg_configPOWER_1V8P_ACTIVE ( 1 ) #define dg_configPOWER_1V8P_SLEEP ( 1 )

Thanks PM_Dialog

邓昌永
Offline
Last seen:1 month 1 week ago
加入:2020-02-10 02:23
hi!

hi!

Thanks for your guidance. But according to what you said, the program can compile and pass, but cannot run. According to preliminary debugging, the program has crashed after running it again.Please also give me the answer after successful debugging, thank you very much!The attached picture is the print result.

Attachment:
PM_Dialog
Offline
Last seen:7 hours 56 min ago
工作人员
加入:2018-02-08 11:03
Hi There,

Hi There,

Could you please run it in debug mode and indicate where it gets crashed?

Thanks, PM_Dialog

邓昌永
Offline
Last seen:1 month 1 week ago
加入:2020-02-10 02:23
Hi:

Hi:

Thank you, my problem has been solved。

suzhoupate
Offline
Last seen:10 months 1 week ago
加入:2020-01-03 12:52
Hi Mr.Deng

Hi Mr.Deng

Can I Join you WeChat,My Account:wxid_oorfdiukdjp922

Thanks

PM_Dialog
Offline
Last seen:7 hours 56 min ago
工作人员
加入:2018-02-08 11:03
Hi There,

Hi There,

Thanks for accepting my answers and glad that you figured your issue out.

Thanks, PM_Dialog