Our RAK5205 currently using firmware downloaded from github. The firmware installed in RAK5205 is RAK811_HF_trackerboard_V2.0.1.8.bin which is in BIN file.
Now, I am managed to make some changes on source code given from github by using CoIDE. The problem is I am unable to compile all the source code into BIN file.
Can someone show me on how to compile this source code into BIN file.
Got some error while compiled it. Have a look. Can you give some input from this build output below?
Blockquote*** Using Compiler ‘V5.06 update 6 (build 750)’, folder: ‘C:\Keil_v5\ARM\ARMCC\Bin’
Build target ‘RAK5205_LF’
compiling sx1272.c…
…....\src\LoRaWAN\master\radio\sx1272\sx1272.h(54): error: #256: invalid redeclaration of type name “RadioFskSettings_t” (declared at line 54 of “…....\src\LoRaWAN\master\radio\sx1276/sx1276.h”)
}RadioFskSettings_t;
…....\src\LoRaWAN\master\radio\sx1272\sx1272.h(70): error: #256: invalid redeclaration of type name “RadioFskPacketHandler_t” (declared at line 70 of “…....\src\LoRaWAN\master\radio\sx1276/sx1276.h”)
}RadioFskPacketHandler_t;
…....\src\LoRaWAN\master\radio\sx1272\sx1272.h(92): error: #256: invalid redeclaration of type name “RadioLoRaSettings_t” (declared at line 92 of “…....\src\LoRaWAN\master\radio\sx1276/sx1276.h”)
}RadioLoRaSettings_t;
…....\src\LoRaWAN\master\radio\sx1272\sx1272.h(102): error: #256: invalid redeclaration of type name “RadioLoRaPacketHandler_t” (declared at line 102 of “…....\src\LoRaWAN\master\radio\sx1276/sx1276.h”)
}RadioLoRaPacketHandler_t;
…....\src\LoRaWAN\master\radio\sx1272\sx1272.h(116): error: #256: invalid redeclaration of type name “RadioSettings_t” (declared at line 116 of “…....\src\LoRaWAN\master\radio\sx1276/sx1276.h”)
}RadioSettings_t;
…....\src\LoRaWAN\master\radio\sx1272\sx1272.c: 0 warnings, 5 errors
compiling sx1272-board.c…
…....\src\LoRaWAN\master\radio\sx1272/sx1272.h(54): error: #256: invalid redeclaration of type name “RadioFskSettings_t” (declared at line 54 of “…....\src\LoRaWAN\master\radio\sx1276/sx1276.h”)
}RadioFskSettings_t;
…....\src\LoRaWAN\master\radio\sx1272/sx1272.h(70): error: #256: invalid redeclaration of type name “RadioFskPacketHandler_t” (declared at line 70 of “…....\src\LoRaWAN\master\radio\sx1276/sx1276.h”)
}RadioFskPacketHandler_t;
…....\src\LoRaWAN\master\radio\sx1272/sx1272.h(92): error: #256: invalid redeclaration of type name “RadioLoRaSettings_t” (declared at line 92 of “…....\src\LoRaWAN\master\radio\sx1276/sx1276.h”)
}RadioLoRaSettings_t;
…....\src\LoRaWAN\master\radio\sx1272/sx1272.h(102): error: #256: invalid redeclaration of type name “RadioLoRaPacketHandler_t” (declared at line 102 of “…....\src\LoRaWAN\master\radio\sx1276/sx1276.h”)
}RadioLoRaPacketHandler_t;
…....\src\LoRaWAN\master\radio\sx1272/sx1272.h(116): error: #256: invalid redeclaration of type name “RadioSettings_t” (declared at line 116 of “…....\src\LoRaWAN\master\radio\sx1276/sx1276.h”)
}RadioSettings_t;
…....\src\board\RAK811\sx1272-board.c(68): error: #20: identifier “RADIO_DIO_5” is undefined
GpioInit( &SX1272.DIO5, RADIO_DIO_5, PIN_INPUT, PIN_PUSH_PULL, PIN_PULL_UP, 0 );
…....\src\board\RAK811\sx1272-board.c(90): error: #20: identifier “RADIO_DIO_5” is undefined
GpioInit( &SX1272.DIO5, RADIO_DIO_5, PIN_INPUT, PIN_PUSH_PULL, PIN_NO_PULL, 0 );
…....\src\board\RAK811\sx1272-board.c(117): error: #20: identifier “RADIO_ANT_SWITCH_TX” is undefined
GpioInit( &AntTx, RADIO_ANT_SWITCH_TX, PIN_OUTPUT, PIN_PUSH_PULL, PIN_PULL_UP, 0 );
…....\src\board\RAK811\sx1272-board.c(118): error: #20: identifier “RADIO_ANT_SWITCH_RX” is undefined
GpioInit( &AntRx, RADIO_ANT_SWITCH_RX, PIN_OUTPUT, PIN_PUSH_PULL, PIN_PULL_UP, 1 );
…....\src\board\RAK811\sx1272-board.c(123): error: #20: identifier “RADIO_ANT_SWITCH_TX” is undefined
GpioInit( &AntTx, RADIO_ANT_SWITCH_TX, PIN_ANALOGIC, PIN_PUSH_PULL, PIN_NO_PULL, 0 );
…....\src\board\RAK811\sx1272-board.c(124): error: #20: identifier “RADIO_ANT_SWITCH_RX” is undefined
GpioInit( &AntRx, RADIO_ANT_SWITCH_RX, PIN_ANALOGIC, PIN_PUSH_PULL, PIN_NO_PULL, 0 );
…....\src\board\RAK811\sx1272-board.c: 0 warnings, 11 errors
“.\Objects\RAK811_LF_trackerboard_V2.1.1.” - 16 Error(s), 0 Warning(s).Preformatted text