Disable all interrupts in 14683

Learn MoreFAQsTutorials

11 posts / 0 new
Last post
xuguodong
Offline
Last seen:2 months 20 hours ago
Joined:2020-06-04 13:34
Disable all interrupts in 14683

Hi Dialog teams,

In the process of system bring up, there are GPIO interruptions that cause the system to run away.

We want to enble all interrupts after the system is bring up. Is there a global register?

Mail:xuguodong@15610103088.com

Phone:15610103088

Thanks && Regards.

Device:
PM_Dialog
Offline
Last seen:11 hours 45 min ago
Staff
Joined:2018-02-08 11:03
Hi xuguodong,

Hi xuguodong,

You might use the GLOBAL_INT_RESTORE() to disable all interrupts and GLOBAL_INT_DISABLE() to restore all of them. But what is your requirement and what would you like to implement?

Thanks , PM_Dialog,

xuguodong
Offline
Last seen:2 months 20 hours ago
Joined:2020-06-04 13:34
Hi PM_Dialog,

Hi PM_Dialog,

Why GLOBAL_INT_RESTORE() immediately after GLOBAL_INT_DISABLE() in hw_wkup_init()?

I think GLOBAL_INT_RESTORE() should be do before create task?

Thanks.

PM_Dialog
Offline
Last seen:11 hours 45 min ago
Staff
Joined:2018-02-08 11:03
Hi xuguodong,

Hi xuguodong,

This is how the hw_wkup_init() function works – please use the SDK as provided.The interrupt are enabled after the WAKEUPCT_ENABLE bitfield is programmed. Could you please try to explain what you are trying to accomplish and what is the issue?

Thanks, PM_Dialog

xuguodong
Offline
Last seen:2 months 20 hours ago
Joined:2020-06-04 13:34
My issue:

My issue:

External hall button connected to GPIO, we found that there was an interruption in the process of system bring up, which caused the system to run away.

If we move the following code to task, it can fix this issue. So i think that enable global interrupt before creating task.

hw_wkup_configure_pin(KEY_PORT, KEY_PIN0, 1, HW_WKUP_PIN_STATE_LOW);

xuguodong
Offline
Last seen:2 months 20 hours ago
Joined:2020-06-04 13:34
In addition, I want to

In addition, I want to disable interrupt in interrupt function first, how to du?

Can you help me ?

PM_Dialog
Offline
Last seen:11 hours 45 min ago
Staff
Joined:2018-02-08 11:03
Hi xuguodong,

Hi xuguodong,

Can you please help me to understand what you are trying to accomplish, so that to give you the correct guidelines?

Thanks, PM_Dialog

xuguodong
Offline
Last seen:2 months 20 hours ago
Joined:2020-06-04 13:34
Hi Diaglog teams,

Hi Diaglog teams,

我们想要在create task前先禁用所有中断,如果不这样做,system启动时会进入中断导致bring up fail.

PM_Dialog
Offline
Last seen:11 hours 45 min ago
Staff
Joined:2018-02-08 11:03
Hi xuguodong,

Hi xuguodong,

Thanks for your comment but this is our English forum and customers post their questions /comments in English. So, please translate it to English, or kindly post it in our Chinese forums. Link is provided below:

https://support.dialog-semiconductor.com/forums/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software-dialog-%E2%80%9Csmartbond%E2%80%9D%E7%B3%BB%E5%88%97%E4%BD%8E%E5%8A%9F%E8%80%97%E8%93%9D%E7%89%99%E2%80%94%E8%BD%AF%E4%BB%B6

Thanks, PM_Dialog

xuguodong
Offline
Last seen:2 months 20 hours ago
Joined:2020-06-04 13:34
我们想要在create task前先禁用所有中断

我们想要在create task前先禁用所有中断,如果不这样做,system启动时会进入中断导致bring up fail.

We want to disable all interrupts before creating a task. If we don't do this, the system will enter the interrupt when it bring up, which will cause the bring up failure.

PM_Dialog
Offline
Last seen:11 hours 45 min ago
Staff
Joined:2018-02-08 11:03
Hi xuguodong,

Hi xuguodong,

请使用GLOBAL_INT_DISABLE()。

Thanks, PM_Dialog