2022-04-11 02:41 AM
Hello Community,
I am getting no defination found error for below function for STM32H7A3ZI MCU in IAR IDE.
Can anyone help to understand the problem.
Thanks in Advance,
Hiren Bhuva
2022-04-11 04:54 AM
What source are you seeing these in?
Grep source, likely in an include file.
Check for CMSIS equivalents.
2022-04-11 05:46 AM
Aren't they called __enable_irq/__disable_irq?
2022-04-11 05:52 AM
Hi @Community member and @TDK ,
Thanks for quick reply.
@Community member , I am looking in Source and header both the files.
@TDK , Yes, They are using __enable_irq() and __disable_irq(). I am not sure weather they are same or different.
If they are same, then can I use __getPRIMASK() and __setPRIMASK() functions inplace of __get_interrupt_state() and __set_interrupt_state()?
Thanks,
Hiren Bhuva
2022-04-11 05:58 AM
>>I am looking in Source and header both the files.
Of what project example?
2022-04-11 05:58 AM
2022-04-11 06:04 AM
Below is typical sequence of the calling.
iIrptState = __get_interrupt_state();
__disable_interrupt();
/// Crtiical region code
__set_interrupt_state(iIrptState);
I am trying to port the given logic for STM32 in IAR. The functions looks like internal function of IAR (Toolchain).
2022-04-11 06:49 AM
Ok, well sounds like you're taking some code from somewhere else. Perhaps work with the people that wrote it to better understand where those came from, or convert/wrapper with more ARM/CMSIS centric methods to achieve the same.
If they are specific or intrinsic to IAR, or some RTOS implementation, I'm sure they are documented, and supported by include files that IAR would supply, the installation of which you could search/grep to find supporting Include Files, and Libraries.