undefined reference to ISR

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

undefined reference to ISR

ソリューションへジャンプ
1,154件の閲覧回数
jacco_bezemer
Contributor III

Hello,

I successfully build the JN-AN-1171 demo to make an incandescent light bulb dimmer. In this project i used a secondary MCU (attiny85) to drive the dimmer circuit. This MCU uses the output signal of a JN5168-001-M00 module to dim the light bulb. Functionally this works OK.

Now i want to get rid of the attiny85 and use the capabilities of the JN5168 to drive the dimmer circuit.

The first thing i have to do is to develop code for detecting the zero crossing of the sine wave. For this I need an interrupt on DIO4 (in my case). In the JenOS Configuration Editor i created an ISR (APP_isrDimmer) and a Interrupt Source with the value SystemController.

Next i added the following code:

OS_ISR(vAPP_isrDimmer)
{
/* Clear pending DIO changed bits by reading register */
uint32 u32DioIntStatus = u32AHI_DioInterruptStatus();

DBG_vPrintf(TRACE_ZC, "\n\rvAPP_isrDimmer - DioIntStatus: 0x%x", u32DioIntStatus);

}

I think that i'm forgetting a crucial step because i'm getting a build error.

workspace/Custom_ZLL_Lights/Light_DimmableLight/Build/os_irq.o: In function `os_APP_isrDimmer_J':
(.text+0xf8): undefined reference to `os_vAPP_isrDimmer'

The build error occurs with or without the code.

Can someone point me in the right direction?

Kind regards,

Jacco

ラベル(2)
1 解決策
1,034件の閲覧回数
jacco_bezemer
Contributor III

Figured it out.

Forgot to include <os.h> and <os_gen.h>

元の投稿で解決策を見る

1 返信
1,035件の閲覧回数
jacco_bezemer
Contributor III

Figured it out.

Forgot to include <os.h> and <os_gen.h>