RAK5205 WisTrio modify firmware

Hi, I have downloaded the compiler and put it in the repo, added the right path but now we get a different error.
when we run the
Psudo cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake ..;
command we get the following error:

The C compiler
"/Users/ezra/Public/arm-none-eabi-gcc"
is not able to compile a simple test program.It fails with the following output:
Change Dir: /Users/ezra/Documents/GitHub/RAK5205-WisTrio-LoRa/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_11a26/fast 
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_11a26.dir/build.make     CMakeFiles/cmTC_11a26.dir/build
Building C object CMakeFiles/cmTC_11a26.dir/testCCompiler.c.obj
/Users/ezra/Public/arm-none-eabi-gcc   -Wall -DSTM32L151xB -nostartfiles -nodefaultlibs -fno-common -ffunction-sections -fdata-sections -mabi=aapcs -march=armv7-m -mthumb -mcpu=cortex-m3    -o CMakeFiles/cmTC_11a26.dir/testCCompiler.c.obj   -c /Users/ezra/Documents/GitHub/RAK5205-WisTrio-LoRa/build/CMakeFiles/CMakeTmp/testCCompiler.c
make[1]: /Users/ezra/Public/arm-none-eabi-gcc: Permission denied
make[1]: *** [CMakeFiles/cmTC_11a26.dir/testCCompiler.c.obj] Error 1

We used sudo so the permission denied is very strange…

sorry for the many questions we are very new to this

Do I need to edit the lines before entering the code below in GCC command prompt?

$ cmake -DCMAKE_TOOLCHAIN_FILE=…/toolchain.cmake …

Hi @zulh,

In my OS (windows 10) I had to add -G to specify the generator.

cmake -G "MSYS Makefiles" -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake ..

Anyway when I compile it throws me a warning in the SendRadioP2PFrame:

C:/Users/dhinojosac/Documents/000-CODES/RAK5205-WisTrio-LoRa/src/application/RAK811/rw_lora.c: In function 'rw_P2PTxContinueTimerEvent':
C:/Users/dhinojosac/Documents/000-CODES/RAK5205-WisTrio-LoRa/src/application/RAK811/rw_lora.c:1054:56: warning: passing argument 3 of 'SendRadioP2PFrame' makes integer from pointer without a cast [-Wint-conversion]
   SendRadioP2PFrame(g_lora_config.lorap2p_param, NULL, NULL);
                                                        ^~~~
In file included from c:\users\dhinojosac\documents\000-codes\rak5205-wistrio-lora\src\board\rak811\board.h:42:0,
                 from C:/Users/dhinojosac/Documents/000-CODES/RAK5205-WisTrio-LoRa/src/application/RAK811/rw_lora.c:1:
C:/Users/dhinojosac/Documents/000-CODES/RAK5205-WisTrio-LoRa/src/application/RAK811/app.h:91:20: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'void *'
 extern TimerTime_t SendRadioP2PFrame( S_LORAP2P_PARAM LoraP2PParams, void *fBuffer, uint16_t fBufferSize);

And @mani, Iused cmake 3.14.5 and 3.13.5 and the result was the same. :frowning_face:

Greetings.

Hi @dhinojosac,

So you just generate the firmware file using ARM GCC only?

Regards.

Yes, @zulh, using the instructions from the @mani repository.

Regards.