Not sure what’s happening here.
The project was working, compiling etc… just fine.
I modified some code, nothing major like adding new libraries or anything (not that I’m aware of anyway). And now I get this error about not finding “something” in the the project directory.
Not even sure what the issue is, These are the two errors before it stops,
C:/Users/jstei/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: cannot find -lC:/PlatformIO/Projects/Level-Xmitter/=: Invalid argument
C:/Users/jstei/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld.exe: cannot find -lC:/PlatformIO/Projects/Level-Xmitter/1: Invalid argument
Any clues? as i said, it was working just fine last night, then this morning, no joy.
The *.ini file looks like this (not the whole thing, I didn’t copy some build flags)
[env:seeed_xiao_esp32c3]
;platform = espressif32
platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21/platform-espressif32.zip
board = seeed_xiao_esp32c3
monitor_speed = 115200
framework = arduino
board_build.arduino.memory_type = qio_qspi
board_build.flash_mode = qio
board_build.psram_type = qio
board_upload.flash_size = 4MB
board_upload.maximum_size = 4194304
board_build.partitions = default.csv
Is your project folder actually called Level-Xmitter/? The platform may not quote filepaths correctly, I would avoid -, spaces and = signs.
Actually, it is. That’s a typo on my part, should be underscore. (I have so many little cuts on my fingers it’s hard to type right now). But there’s no equal sign in there.
Curious though, it’s been working just fine for at least two weeks or more. I just made some minor changes so as to add and extract a couple lines of a Json document transmitted via ESP-NOW. It was working with that same document too.
I’m going to split the project into two (it’s actually a transmitter/receiver, basically same code for both, just set a flag so it either transmits or receives). Rename it and split it, and add code back a little at a time.
I just split it off into a new XIAO_Xmitter project, no other changes, and it didn’t work, so that’s not it.
I’ll remove code until I get back to where I was last night and see what I can see.
EDIT
I deleted a project I created last night, called XIAO_Pole_Sender, which didn’t seem to help.
Then deleted three flags in the new XIAO_Xmitter platformio.ini
D XAIO (to know which board to use)
D XMITTER_MODE (to know if it’s sending)
;D RECEIVER_MODE (or receiving data)
Curious… for some reason, it suddenly decided it didn’t like one or more of those flags.
Working, I’m not going to worry about it.