Hi Youp,
You are getting the bus error because you set up system controller priority so, the JN516X is not setting up any button, and the system controller depends on that.
You are not seeing the terminal print because the event is not equal to TRUE.
if (ZQ_bQueueReceive(&APP_msgAppEvents, &sAppEvent) == TRUE)
{
DBG_vPrintf(TRACE_APP, "ZPR: App event %d, NodeState=%d\n", sAppEvent.eType, sZllState.eNodeState);
If you look into the app_events.h,
You will see the events types that are defined.
typedef enum
{
APP_E_EVENT_NONE = 0,
APP_E_EVENT_BUTTON_UP,
APP_E_EVENT_BUTTON_DOWN,
APP_E_EVENT_LEAVE_AND_RESET,
APP_EVENT_POR_FIND_BIND,
APP_EVENT_POR_CLEAR_BINDINGS,
APP_EVENT_POR_RESET_GP_TABLES,
APP_E_EVENT_MAX
} APP_teEventType;
the events are set only for the buttons.
typedef struct
{
APP_teEventType eType;
union
{
APP_tsEventButton sButton;
}uEvent;
} APP_tsLightEvent;
You need to create a simple routing that changes that waits for the events for a timer, UART, SPI, not for buttons that are not included.
Regards,
Mario