User's Manual

EWB160031M User manual
Proprietary & Confidential Information Egis Technology Inc.
Doc. NO:
9.4 Main Function Entrance
Open up “main_patch.c” document, and jump to “_Patcch_EntryPoint(void)” function.
As the SysInit_EntryPoint() function has been implemented in ROM. This function is only called
to implement initialization, so the function should not be modified or move. Then as the code
redefines the “Sys_AppInit” entry to the “Main_AppInit_patch” function, “Sys_AppInit” is the
main function entry reserved by the SDK for software development on the user-end, and after
mapping the entry function of “Sys_AppInit”, all APP initializations, such as peripheral
initialization, creation of multitasking, etc. are all created internally in the mapping function of
Main_AppInit_patch.
9.5 Log Output Setup
When users are developing APP, there are two types of debug message output.
(1) Internal log of user APP
(2) OPL1000 SDK firmware log
Log debugging print-out information is instrumental for users to check whether the application
execution process and results are normal. The firmware log can help users quickly locate and
analyze firmware module execution status, such as the operation of the ble and wifi protocol
stacks.
In order to avoid excessive log output information that is not constructive for APP debugging,
SDK only keeps the user log message output, and closes the internal log information output
inside the firmware. If users need to manage log output mechanism, there are three methods:
(1) APS serial-port tracer command