RAK5205-WisTrio-LoRa firmware

Hi,

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.

Thanks.

Hi, @zulh

I think you need to compile this project with Keil. It only support Keil now.

BTW, we’re developing something to compile it with CMAKE, but it has not been released by now.

1 Like

When is it released? Is there a estimated date?

Thanks

Hi @Fomi

Currently compiling this project with Keil.

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

Hi, @zulh

We can compile this source code without any error.
If you don’t customize it, you can use the pre-compiled firmware directly.


HF means high frequency, which includes AS923, AU915, US915, KR920, EU868, and IN865.
LF means low frequency, which includes EU433 and CN470.

Actually we need to do some modification in the source code. So, from modified source code we need to compile it again using Keil.