AnsweredAssumed Answered

undefined reference to ISR

Question asked by Jacco Bezemer on Oct 2, 2019
Latest reply on Oct 2, 2019 by Jacco Bezemer


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:

/* 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,