Just to verify the Build & Deploy process, I made a small change in the app7204 source code. But the compiler gives errors, looking for files not included in the uploaded zip file. (I zipped the files, not the directory.)
Based on the errors generated, I kept adding missing files, but it still does not compile correctly. Previously, I got an error that rui.h was missing, which I added to the zip file. Still more problems though …
In summary:
- It is not clear which files to include in the zip file.
- I kept adding files that I found by searching RaK Wireless GitHub repositories.
- It seemed “too random” to find files for inclusion based on compiler error logs.
- Which files to include?
See below for an example error log from compiler:
mkdir _build
CC sx1276-board.c
CC rtc-board.c
CC i2c-board.c
CC board.c
CC gpio-board.c
CC timer-board.c
CC spi-board.c
CC adc-board.c
Copying file 20.00%
…//Source/stm/STML151/application/board.c: In function ‘BoardInitMcu’:
…//Source/stm/STML151/application/board.c:135:17: error: ‘g_lora_system’ undeclared (first use in this function)
memset(&g_lora_system, 0, sizeof(g_lora_system));
^~~~~~~~~~~~~
…//Source/stm/STML151/application/board.c:135:17: note: each undeclared identifier is reported only once for each function it appears in
…//Source/stm/STML151/application/board.c:140:22: error: ‘SX1276_t {aka struct SX1276_s}’ has no member named ‘Xtal’
GpioInit( &SX1276.Xtal, RADIO_XTAL_EN, PIN_OUTPUT, PIN_PUSH_PULL, PIN_NO_PULL, 1 );
^
…//Source/stm/STML151/application/board.c: In function ‘BoardDeInitMcu’:
…//Source/stm/STML151/application/board.c:154:23: error: ‘SX1276_t {aka struct SX1276_s}’ has no member named ‘Xtal’
GpioWrite( &SX1276.Xtal, 0 );
^
…//Source/stm/STML151/application/board.c: In function ‘SysEnterUltraPowerStopMode’:
…//Source/stm/STML151/application/board.c:449:23: error: ‘SX1276_t {aka struct SX1276_s}’ has no member named ‘Xtal’
GpioWrite( &SX1276.Xtal, 1 );
^
stm/Makefile_stm32l151cb:246: recipe for target ‘_build/board.o’ failed
make: *** [_build/board.o] Error 1
make: *** Waiting for unfinished jobs…
Copying file 30.00%
Copying file 40.00%
Copying file 50.00%
Copying file 60.00%
Copying file 70.00%
Copying file 80.00%