User's Manual

Table Of Contents
Proprietary & Confidential Information
iotTech Corporation, Taiwan
Doc. NO:
ITM-FCC3F1 Datasheet
7.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.
7.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.