Hi,
I am using the SDK to develop a BLE application, I tried to merge two different projects and and I build the project, I have linking issues :
1> Linking ble_app_uart_pca10056_s140.elf
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/ble_app_uart_pca10056_s140/nrf_log_frontend.o: in function `nrf_cli_backend_cmd_execute':
1> C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1156: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/ble_app_uart_pca10056_s140/nrf_log_frontend.o: in function `log_status':
1> C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1175: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1177: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1178: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1189: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/ble_app_uart_pca10056_s140/nrf_log_frontend.o:C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1262: more undefined references to `nrf_cli_fprintf' follow
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/ble_app_uart_pca10056_s140/nrf_log_frontend.o: in function `log_cmd_backends_list':
1> C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1429: undefined reference to `nrf_cli_help_print'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1442: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1449: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/ble_app_uart_pca10056_s140/nrf_log_frontend.o: in function `log_config_load_cmd':
1> C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1515: undefined reference to `nrf_cli_help_print'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\UsersGIT\components\libraries\log\src/nrf_log_frontend.c:1529: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/ble_app_uart_pca10056_s140/nrf_log_frontend.o: in function `log_config_store_cmd':
1> C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1540: undefined reference to `nrf_cli_help_print'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1554: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/ble_app_uart_pca10056_s140/nrf_log_frontend.o: in function `log_cmd':
1> C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1588: undefined reference to `nrf_cli_help_print'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\Users\GIT\components\libraries\log\src/nrf_log_frontend.c:1592: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/ble_app_uart_pca10056_s140/nrf_balloc.o: in function `nrf_balloc_status':
1> C:\Users\GIT\components\libraries\balloc/nrf_balloc.c:81: undefined reference to `nrf_cli_help_print'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\Users\GIT\components\libraries\balloc/nrf_balloc.c:87: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\Users\GIT\components\libraries\balloc/nrf_balloc.c:104: undefined reference to `nrf_cli_fprintf'
Build failed
I understand that it is probably my sdk configuration that is wrong but I tried many things and I don't really understand which configuration I have to enable.
EDIT :
I think I can boil down things to :
1> Linking ble_app_uart_pca10056_s140.elf
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/ble_app_uart_pca10056_s140/nrf_balloc.o: in function `nrf_balloc_status':
1> C:\Users\GIT\components\libraries\balloc/nrf_balloc.c:81: undefined reference to `nrf_cli_help_print'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\Users\GIT\components\libraries\balloc/nrf_balloc.c:87: undefined reference to `nrf_cli_fprintf'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.50b/gcc/arm-none-eabi/bin/ld: C:\Users\GIT\components\libraries\balloc/nrf_balloc.c:104: undefined reference to `nrf_cli_fprintf'
Build failed
Now the question is "What config do I have to enable to activate nrf_cli_help_fprintf ?"
Thank you.