- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi
I'm try to call NVIC_DisableIRQ function in my 20719B2's project 20719B2 by ModusToolBox with SDK v2.9.0 ,
But when I include the core_cm4.h header file. the complier will show
../mtb_shared/wiced_btsdk/dev-kit/baselib/20719B2/release-v2.9.0/COMPONENT_20719B2/include/arm/cmsis/core_cm4.h:154:10: fatal error: core_cmInstr.h: No such file or directory
and
../mtb_shared/wiced_btsdk/dev-kit/baselib/20719B2/release-v2.9.0/COMPONENT_20719B2/include/arm/cmsis/core_cm4.h: error: unknown type name 'IRQn_Type'; did you mean 'ITM_Type'?
so the question is what is the correct way to call NVIC Functions in ModusToolBox?
thanks,
Alex
Solved! Go to Solution.
- Labels:
-
ModusToolbox Bluetooth SDK
- Tags:
- mcu
- modustoolbox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI,
BTSDK application does not allow application to use ThreadX services directly.
Thanks,
-Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I could reproduce it.
Let me check the issue internally and get back to you soon.
Thanks,
-Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI,
BTSDK application does not allow application to use ThreadX services directly.
Thanks,
-Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dheeraj and everyone,
thanks for the info and help.
The reason we need to call NVIC_DisableIRQ is because we need to protect the our process queue when Hardware Interrupt from GPIOs coming. So if I cannot use the ThreadX in BTSDK application. is there any option?
Thanks,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you please try using below APIs to disable the inputs/interrupts whenever needed. Will it work for you?
- wiced_hal_gpio_disable_all_inputs()
- wiced_hal_gpio_configure_pin() (Use GPIO_INTERRUPT_DISABLE in config)
Thanks,
-Dheeraj