RUI Firmware Compile Error

mkdir _build
CC app_RAK811.c
CC i2c-board.c
CC gpio-board.c
CC spi-board.c
CC sx1276-board.c
CC at_cmd.c
CC board.c
CC lora_config.c
Copying file 20.00%
…//Source/stm/STML151/application/app_RAK811.c: In function ‘main’:
…//Source/stm/STML151/application/app_RAK811.c:164:35: error: ‘RUI_LORA_STATUS_T {aka struct RUI_LORA_STATUS}’ has no member named ‘MulticastEnable’
if(app_lora_status.MulticastEnable)
^
…//Source/stm/STML151/application/app_RAK811.c:185:35: error: ‘RUI_LORA_STATUS_T {aka struct RUI_LORA_STATUS}’ has no member named ‘MulticastEnable’
if(app_lora_status.MulticastEnable)
^
…//Source/stm/STML151/board/board.c: In function ‘BoardInitPeriph’:
…//Source/stm/STML151/board/board.c:170:14: error: ‘RUI_UART_NORMAL’ undeclared (first use in this function); did you mean ‘RUI_UART_NORAMAL’?
case RUI_UART_NORMAL:RUI_LOG_PRINTF(“UART1 work mode: RUI_UART_NORMAL, %d, N81\r\n”,g_lora_config.baudrate1);
^~~~~~~~~~~~~~~
RUI_UART_NORAMAL
…//Source/stm/STML151/board/board.c:170:14: note: each undeclared identifier is reported only once for each function it appears in
stm/Makefile_stm32l151cb:262: recipe for target ‘_build/app_RAK811.o’ failed
make: *** [_build/app_RAK811.o] Error 1
make: *** Waiting for unfinished jobs…
…//Source/stm/STML151/board/board.c:174:14: error: ‘RUI_UART_USER’ undeclared (first use in this function); did you mean ‘RUI_UART_DEF’?
case RUI_UART_USER:RUI_LOG_PRINTF(“UART1 work mode: RUI_UART_USER, %d, N81\r\n”,g_lora_config.baudrate1);
^~~~~~~~~~~~~
RUI_UART_DEF
…//Source/stm/STML151/application/lora_config.c: In function ‘handle_device_config’:
…//Source/stm/STML151/application/lora_config.c:590:44: error: ‘RUI_LORA_STATUS_T {aka struct RUI_LORA_STATUS}’ has no member named ‘uart1_mode’; did you mean ‘work_mode’?
if(app_lora_status.uart1_mode == RUI_UART_NORMAL)rui_return_status = rui_uart_mode_config(RUI_UART1,atoi(argv[2]));
^~~~~~~~~~
work_mode
…//Source/stm/STML151/application/lora_config.c:590:58: error: ‘RUI_UART_NORMAL’ undeclared (first use in this function); did you mean ‘RUI_UART_NORAMAL’?
if(app_lora_status.uart1_mode == RUI_UART_NORMAL)rui_return_status = rui_uart_mode_config(RUI_UART1,atoi(argv[2]));
^~~~~~~~~~~~~~~
RUI_UART_NORAMAL
…//Source/stm/STML151/application/lora_config.c:590:58: note: each undeclared identifier is reported only once for each function it appears in
…//Source/stm/STML151/application/lora_config.c:594:44: error: ‘RUI_LORA_STATUS_T {aka struct RUI_LORA_STATUS}’ has no member named ‘uart2_mode’; did you mean ‘work_mode’?
if(app_lora_status.uart2_mode == RUI_UART_NORMAL)rui_return_status = rui_uart_mode_config(RUI_UART2,atoi(argv[2]));
^~~~~~~~~~
work_mode
…//Source/stm/STML151/application/lora_config.c:598:44: error: ‘RUI_LORA_STATUS_T {aka struct RUI_LORA_STATUS}’ has no member named ‘uart3_mode’; did you mean ‘work_mode’?
if(app_lora_status.uart3_mode == RUI_UART_NORMAL)rui_return_status = rui_uart_mode_config(RUI_UART3,atoi(argv[2]));
^~~~~~~~~~
work_mode
…//Source/stm/STML151/board/board.c: In function ‘uart_data_recv_process’:
…//Source/stm/STML151/board/board.c:711:44: error: ‘RUI_UART_USER’ undeclared (first use in this function); did you mean ‘RUI_UART_DEF’?
if(g_lora_config.uart1_mode == RUI_UART_USER)
^~~~~~~~~~~~~
RUI_UART_DEF
…//Source/stm/STML151/board/board.c: In function ‘Parse_string_loop’:
Copying file 30.00%
…//Source/stm/STML151/board/board.c:773:40: error: ‘RUI_UART_NORMAL’ undeclared (first use in this function); did you mean ‘RUI_UART_NORAMAL’?
if(g_lora_config.uart1_mode == RUI_UART_NORMAL) //Uart work at normal mode
^~~~~~~~~~~~~~~
RUI_UART_NORAMAL
…//Source/stm/STML151/board/board.c: In function ‘HAL_TIM_PeriodElapsedCallback’:
…//Source/stm/STML151/board/board.c:932:40: error: ‘RUI_UART_USER’ undeclared (first use in this function); did you mean ‘RUI_UART_DEF’?
if(g_lora_config.uart1_mode != RUI_UART_USER)
^~~~~~~~~~~~~
RUI_UART_DEF
stm/Makefile_stm32l151cb:262: recipe for target ‘_build/board.o’ failed
make: *** [_build/board.o] Error 1
Copying file 40.00%
stm/Makefile_stm32l151cb:262: recipe for target ‘_build/lora_config.o’ failed
make: *** [_build/lora_config.o] Error 1
Copying file 50.00%
Copying file 60.00%
Copying file 70.00%
Copying file 80.00%
Copying file 90.00%
Copying file 100.00%

Compilation failed. You can check the log above to find the cause of failure. If you can’t solve it, kindly ask questions in the RAK forum.

While i Compile Code this Problem is Show
how to Solve this Problem please Suggest.

Hi @vipul,
Give us the code you are trying to compile and explain more about it so we could help you.