liberatedsystems / RNode_Firmware_CE

RNode is an open, free and flexible digital radio interface with many uses
https://unsigned.io/rnode
GNU General Public License v3.0
51 stars 11 forks source link

I'm getting compiling error #48

Closed eUGENE-BNX closed 1 month ago

eUGENE-BNX commented 1 month ago

Hi there,

I am trying to compile with the Arduino IDE and I am getting the following error. Im using "http://unsigned.io/arduino/package_unsignedio_UnsignedBoards_index.json"

how can I fix that?

In file included from /Users/eugene/Documents/Arduino/RNode_Firmware_CE/Radio.hpp:13:0, from /Users/eugene/Documents/Arduino/RNode_Firmware_CE/Utilities.h:16, from /Users/eugene/Documents/Arduino/RNode_Firmware_CE/RNode_Firmware_CE.ino:18: /Users/eugene/Documents/Arduino/RNode_Firmware_CE/Boards.h:60:8: error: #error "The firmware cannot be compiled for the selected MCU variant"

error "The firmware cannot be compiled for the selected MCU variant"

    ^~~~~

In file included from /Users/eugene/Documents/Arduino/RNode_Firmware_CE/RNode_Firmware_CE.ino:18:0: /Users/eugene/Documents/Arduino/RNode_Firmware_CE/Utilities.h:20:10: fatal error: algorithm: No such file or directory

include

      ^~~~~~~~~~~

compilation terminated. exit status 1

Compilation error: #error "The firmware cannot be compiled for the selected MCU variant"

jacobeva commented 1 month ago

Hi Alp, can you show me the make command you're using please?

On 10 October 2024 09:12:18 BST, "Alp Özdemir" @.***> wrote:

Hi there,

I am trying to compile with the Arduino IDE and I am getting the following error. Im using "http://unsigned.io/arduino/package_unsignedio_UnsignedBoards_index.json"

how can I fix that?

In file included from /Users/eugene/Documents/Arduino/RNode_Firmware_CE/Radio.hpp:13:0, from /Users/eugene/Documents/Arduino/RNode_Firmware_CE/Utilities.h:16, from /Users/eugene/Documents/Arduino/RNode_Firmware_CE/RNode_Firmware_CE.ino:18: /Users/eugene/Documents/Arduino/RNode_Firmware_CE/Boards.h:60:8: error: #error "The firmware cannot be compiled for the selected MCU variant"

error "The firmware cannot be compiled for the selected MCU variant"

   ^~~~~

In file included from /Users/eugene/Documents/Arduino/RNode_Firmware_CE/RNode_Firmware_CE.ino:18:0: /Users/eugene/Documents/Arduino/RNode_Firmware_CE/Utilities.h:20:10: fatal error: algorithm: No such file or directory

include

     ^~~~~~~~~~~

compilation terminated. exit status 1

Compilation error: #error "The firmware cannot be compiled for the selected MCU variant"

-- Reply to this email directly or view it on GitHub: https://github.com/liberatedsystems/RNode_Firmware_CE/issues/48 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

eUGENE-BNX commented 1 month ago

Hi jacobeva,

I just tried to verify/compile via Arduino IDE, should I compile via console?

jacobeva commented 1 month ago

Yes. Please see the files in the documentation folder, namely BUILDING.md

On 10 October 2024 10:58:17 BST, "Alp Özdemir" @.***> wrote:

Hi jacobeva,

I just tried to verify/compile via Arduino IDE, should I compile via console?

-- Reply to this email directly or view it on GitHub: https://github.com/liberatedsystems/RNode_Firmware_CE/issues/48#issuecomment-2404638182 You are receiving this because you commented.

Message ID: @.***>

eUGENE-BNX commented 1 month ago

sorry , read the f'ckn document first :)

Ok, compiled... Thanks.. I will try to upload now ...

eUGENE-BNX commented 1 month ago

as i expected ,Upload Error :)

make upload-lora32_v21 arduino-cli upload -p /dev/ttyACM0 --fqbn esp32:esp32:ttgo-lora32

makes an error like as blow; [Errno 2] No such file or directory: '/private/var/folders/7z/4c6r524d66s6lh4mhdbm06fr0000gn/T/arduino/sketches/28578C8ACC75FD4CB50A7321C52A58F6/RNode_Firmware_CE.ino.bootloader.bin'

jacobeva commented 1 month ago

Are you using macOS for flashing? I don't recognise that directory structure.

eUGENE-BNX commented 1 month ago

Yes unfortunately Im on macOS now

jacobeva commented 1 month ago

I see. I'm not sure why it's trying to flash what seems to be the bootloader on that board, but I don't personally have one so that might be normal :)

What is definitely not normal is arduino's inability to find the file it's looking for. The only thing I can suggest is trying to reinstall arduino-cli on your computer, or use another computer running a different OS (I recommend Linux generally). Unfortunately this seems like an issue in arduino-cli itself, which wouldn't be caused by anything I've set in the makefile.

jacobeva commented 1 month ago

Just to be 100% sure, did you run make firmware-lora32_v21 before trying to upload the firmware?

eUGENE-BNX commented 1 month ago

Thank you for all your help.. I will also try with Ubuntu OS tonight and inform you..

btw; macos uses "/dev/cu.usbserial-56570103781" instead of "/dev/ttyACM0" in naming.. its wierd :)

jacobeva commented 1 month ago

So I've heard...

eUGENE-BNX commented 1 month ago

Everthing is ok on Ubuntu.. compile and upload 100% Works...

and than, I have changed some icons shape and modify from " graphics.h " and recompile again and upload.

But nothing changed on my OLED screen.. Whats wrong with me?

jacobeva commented 1 month ago

Whats wrong with me?

I ask myself that question rather often...

Joking aside, have you replaced them in this section? Don't replace them in the other section, that's only for 122px wide displays, which I'm sure you don't have :)

I know you've probably done this anyway, but just to check, can you please ensure you run make firmware-[target] each time you make changes, and then upload the firmware? It's possible you're doing this anyway, but just to be sure ;)

eUGENE-BNX commented 1 month ago

Im working on it :)

should the graphics be 122x64? is there a way to understand which area should be how many pixels?

Im using LillyGo LoRa V2.1_1.6.1 ESP32

jacobeva commented 1 month ago

The 122px wide graphics are currently only for the RAK4631 board. It seems like you're more looking for help at this point, do you mind if I email you the link to the Reticulum matrix room? It would be easier and more appropriate to help you there.

On 24/10/10 10:21am, Alp Özdemir wrote:

Im working on it :)

should the graphics be 122x64? is there a way to understand which area should be how many pixels?

-- Reply to this email directly or view it on GitHub: https://github.com/liberatedsystems/RNode_Firmware_CE/issues/48#issuecomment-2405662182 You are receiving this because you commented.

Message ID: @.***>

jacobeva commented 1 month ago

Providing assistance over Matrix. Not an issue in the FW so closing...