Hi Support team,
My application was based on NCS v2.5.2, which has no driver for the charger bq24295, and I ported a driver from Linux and it worked well.
Now I want to upgrade my SDK to NCS v2.6.2, which supports the generic charger driver and bq24190 etc(but no bq24295). I prefer to use my own driver at the moment. But there are some compiling errors even I disabled the SDK charger driver explicitly in prj.conf:
CONFIG_CHARGER=n
CONFIG_CHARGER_BQ24190=n
CONFIG_OWNCHARGER_BQ24295=y // This is my own driver
The compiling error:
r\arch\arm\core\offsets\offsets.c.obj.d -o zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -c C:/ncs/v2.6.2/zephyr/arch/arm/core/offsets/offsets.c In file included from C:/ncs/v2.6.2/zephyr/include/zephyr/syscall.h:11, from C:/ncs/v2.6.2/zephyr/include/zephyr/kernel_includes.h:35, from C:/ncs/v2.6.2/zephyr/include/zephyr/kernel.h:17, from C:/ncs/v2.6.2/zephyr/arch/arm/core/offsets/offsets_aarch32.c:28, from C:/ncs/v2.6.2/zephyr/arch/arm/core/offsets/offsets.c:9: C:/02_dataLogger/IOTDL/build/zephyr/include/generated/syscall_list.h:305: warning: "K_SYSCALL_CHARGER_GET_PROP" redefined 305 | #define K_SYSCALL_CHARGER_GET_PROP 296 | C:/02_dataLogger/IOTDL/build/zephyr/include/generated/syscall_list.h:7: note: this is the location of the previous definition 7 | #define K_SYSCALL_CHARGER_GET_PROP 1 | C:/02_dataLogger/IOTDL/build/zephyr/include/generated/syscall_list.h:306: warning: "K_SYSCALL_CHARGER_SET_PROP" redefined 306 | #define K_SYSCALL_CHARGER_SET_PROP 297 | C:/02_dataLogger/IOTDL/build/zephyr/include/generated/syscall_list.h:8: note: this is the location of the previous definition 8 | #define K_SYSCALL_CHARGER_SET_PROP 2 | In file included from C:/ncs/v2.6.2/zephyr/include/zephyr/sys/kobject.h:39, from C:/ncs/v2.6.2/zephyr/include/zephyr/kernel_includes.h:45: C:/02_dataLogger/IOTDL/build/zephyr/include/generated/kobj-types-enum.h:59:1: error: redeclaration of enumerator 'K_OBJ_DRIVER_CHARGER' 59 | K_OBJ_DRIVER_CHARGER, | ^~~~~~~~~~~~~~~~~~~~ C:/02_dataLogger/IOTDL/build/zephyr/include/generated/kobj-types-enum.h:52:1: note: previous definition of 'K_OBJ_DRIVER_CHARGER' with type 'int' 52 | K_OBJ_DRIVER_CHARGER, | ^~~~~~~~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE' --build 'c:\02_dataLogger\IOTDL\build'
Maybe the SDK charger driver was implicitly enabled somewhere, could you help me have a look? Thank you very much.
Best regards,
Yanpeng Wu