Giter VIP home page Giter VIP logo

Comments (3)

alex-shepherd-nv avatar alex-shepherd-nv commented on July 21, 2024

Hmmm.... try now... ;)

I've fixed those two errors and added the rp2040 architecture.

It looks like the newer 2.X IDE doesn't let me edit an example and save it into the library folder like the old 1.8.X IDe used to do when you created a ".development" flag file in the root dir of the library. Bit of a gotcha or at least different behaviour I need to check into

from loconet2.

Neleird avatar Neleird commented on July 21, 2024

Hi Alex
Thank you very much. Quick response! Still the warning but compilation and upload succeeded. Lets start playing with LocoNet on the RPi Pico W...

Output result in IDE 2.2.1:
WARNING: library LocoNet2 claims to run on esp32 architecture(s) and may be incompatible with your current board which runs on rp2040 architecture(s).
Sketch uses 324436 bytes (15%) of program storage space. Maximum is 2093056 bytes.
Global variables use 71400 bytes (27%) of dynamic memory, leaving 190744 bytes for local variables. Maximum is 262144 bytes.
Resetting COM6
Converting to uf2, output size: 685568, start address: 0x2000
Scanning for RP2040 devices
Flashing F: (RPI-RP2)
Wrote 685568 bytes to F:/NEW.UF2

from loconet2.

alex-shepherd-nv avatar alex-shepherd-nv commented on July 21, 2024

Hmmm... that is weird as I don't see that error. Can you check the contents of the library.properties file to make sure it has the line:

architectures=esp32,rp2040

As, I believe that is what should make the error go away. If I remove the rp2040 from the above line, I don't see the library in the list of File->Examples/LocoNet2, so I think it is working.

This is the full output I get when I compile in IDE 2.2.1:

`
FQBN: rp2040:rp2040:rpipico
Using board 'rpipico' from platform in folder: /Users/alexs/Library/Arduino15/packages/rp2040/hardware/rp2040/3.6.0
Using core 'rp2040' from platform in folder: /Users/alexs/Library/Arduino15/packages/rp2040/hardware/rp2040/3.6.0

Detecting libraries used...
`
So I'm unsure what to do next to debug this. Perhaps may sure you don't have two copies of the LocoNet2 library folder in the search path somewhere or one inside the other if you dragged the folder into the libraries folder, as I've done that before.
[snip a big chunk...]

Alternatives for LocoNetStreamRP2040.h: [[email protected]] ResolveLibrary(LocoNetStreamRP2040.h) -> candidates: [[email protected]] /Users/alexs/Library/Arduino15/packages/rp2040/tools/pqt-gcc/2.1.0-a-d3d2e6b/bin/arm-none-eabi-g++ -I /private/var/folders/3g/zjdzn3nj4nl2j7dmqpk97v280000gn/T/arduino/sketches/3FE3C104C0F70437EFE6C760D9C322C4/core -c -Werror=return-type -Wno-psabi -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DUSBD_PID=0x000a -DUSBD_VID=0x2e8a -DUSBD_MAX_POWER_MA=250 -DUSB_MANUFACTURER="Raspberry Pi" -DUSB_PRODUCT="Pico" -DPICO_CYW43_ARCH_THREADSAFE_BACKGROUND=1 -DCYW43_LWIP=1 -DLWIP_IPV6=0 -DLWIP_IPV4=1 -DLWIP_IGMP=1 -DLWIP_CHECKSUM_CTRL_PER_NETIF=1 -DARDUINO_VARIANT="rpipico" -DTARGET_RP2040 -DPICO_FLASH_SIZE_BYTES=2097152 -march=armv6-m -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections -fno-exceptions -DARM_MATH_CM0_FAMILY -DARM_MATH_CM0_PLUS -iprefix/Users/alexs/Library/Arduino15/packages/rp2040/hardware/rp2040/3.6.0/ @/Users/alexs/Library/Arduino15/packages/rp2040/hardware/rp2040/3.6.0/lib/platform_inc.txt -I/Users/alexs/Library/Arduino15/packages/rp2040/hardware/rp2040/3.6.0/include -fno-rtti -std=gnu++17 -g -pipe -w -x c++ -E -CC -DF_CPU=133000000L -DARDUINO=10607 -DARDUINO_RASPBERRY_PI_PICO -DBOARD_NAME="RASPBERRY_PI_PICO" -DARDUINO_ARCH_RP2040 -Os -DWIFICC=CYW43_COUNTRY_WORLDWIDE -I/Users/alexs/Library/Arduino15/packages/rp2040/hardware/rp2040/3.6.0/cores/rp2040 -I/Users/alexs/Library/Arduino15/packages/rp2040/hardware/rp2040/3.6.0/variants/rpipico -I/Users/alexs/Documents/_Hobby/_mrrwa/libraries/LocoNet2/src /private/var/folders/3g/zjdzn3nj4nl2j7dmqpk97v280000gn/T/arduino/sketches/3FE3C104C0F70437EFE6C760D9C322C4/sketch/Basic-Listener-Pico.ino.cpp -o /dev/null

[snip a big chunk...]

Using library LocoNet2 at version 2.2.0 in folder: /Users/alexs/Documents/_Hobby/_mrrwa/libraries/LocoNet2 Using library Embedded Template Library ETL at version 20.22.0 in folder: /Users/alexs/Documents/_Hobby/_mrrwa/libraries/Embedded_Template_Library_ETL Using library Bounce2 at version 2.71 in folder: /Users/alexs/Documents/_Hobby/_mrrwa/libraries/Bounce2 /Users/alexs/Library/Arduino15/packages/rp2040/tools/pqt-gcc/2.1.0-a-d3d2e6b/bin/arm-none-eabi-size -A /private/var/folders/3g/zjdzn3nj4nl2j7dmqpk97v280000gn/T/arduino/sketches/3FE3C104C0F70437EFE6C760D9C322C4/Basic-Listener-Pico.ino.elf Sketch uses 64300 bytes (3%) of program storage space. Maximum is 2093056 bytes. Global variables use 10784 bytes (4%) of dynamic memory, leaving 251360 bytes for local variables. Maximum is 262144 bytes.
So I'm unsure what to do next to debug this as it "works for me". Perhaps check that you don't have 2 copies of the LocoNet2 library in the search path or one inside another if you dragged the LocoNet2 folder into the libraries folder - done that before...

from loconet2.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.