undefined reference to ISR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

undefined reference to ISR

Jump to solution
977 Views
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

Labels (2)
1 Solution
857 Views
jacco_bezemer
Contributor III

Figured it out.

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

View solution in original post

1 Reply
858 Views
jacco_bezemer
Contributor III

Figured it out.

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