Hi!
I'm new in programming the JN5168. The main goal is to build a Phillips Hue light buld with the JN5168 but the AN is very confusing.
To get a grip of the microprocessor and code of the JN5168 I am trying to get a blinky application to run. The problem is that i can't find any sort of main(). I know the AN is a RTOS so it mimics multitasking. but to start this it had to start somewhere.
I have searched for zps_eAplZdoStartStack() in the AN but that reffers to .libs instead of normal C code. Is there something i am missing or is there someone who can give me a tip in where to look?
my configuration:
Hardware: JN5168-001-M00Z
software:
JN-SW-4141
JN-SW-4170
JN-AN-1218
Best regards,
Dirk van Grunsven
Hi
If you look into the app_start_light.c You will find the PUBLIC void vAppMain(void), and if you want to set up a DIO for toggle a led, you could set after the
/* Early call to Bulb initialization to enable fast start-up */
vBULB_Init();
JN516x Integrated Peripherals API User Guide
5. Digital Inputs/Outputs (DIOs)
Regards,
Mario
Thank you Mario and Youp!
This was exactly what i was searching for. Now i can get get some feedback from the UART and get some controle of the JN5168!
youpko, if you would like you could message me. maybe we could help each other in this goal!
Hey Dirk,
I am also trying to achieve the samething. Still getting the hang of the AN.
Main() is called vAppMain() implemented in Common_Light/app_start_light.c