Working STM32 Project now Won't Build

Hello,
Environment IDE2 RC3 Windows 10 Pro i5 loads of RAM, SSD

I have a number of STM32 F411CE (WeAct Black Pill) projects currently in development.
Last night I closed a project i was working on that built and was working fine.
Opened IDE2 RC3 this morning and the project I was working wont compile.
I have tried a number of other projects that built as few days ago and now none of them will build. I have rebooted PC but all project report the same error.
I have changed nothing in my system between last night and this morning!
Any ideas please the error message is below, many thanks imk

PS I just built one of the sketch's with 1.8.16 and it built OK seems like this maybe a IDE2 RC3 issue.

c:/users/me/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Me\AppData\Local\Temp\arduino-core-cache\core_a8d4616e1e4d4b9b864293128f736e3b.a(usbd_conf.c.o): in function OTG_FS_IRQHandler': usbd_conf.c:(.text.OTG_FS_IRQHandler+0x2): undefined reference to HAL_PCD_IRQHandler'
c:/users/me/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Me\AppData\Local\Temp\arduino-core-cache\core_a8d4616e1e4d4b9b864293128f736e3b.a(usbd_conf.c.o): in function USBD_LL_Transmit': usbd_conf.c:(.text.USBD_LL_Transmit+0x6): undefined reference to HAL_PCD_EP_Transmit'
c:/users/me/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/10.3.1-2.3/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Me\AppData\Local\Temp\arduino-core-cache\core_a8d4616e1e4d4b9b864293128f736e3b.a(usbd_conf.c.o): in function USBD_LL_PrepareReceive': usbd_conf.c:(.text.USBD_LL_PrepareReceive+0x6): undefined reference to HAL_PCD_EP_Receive'
collect2.exe: error: ld returned 1 exit status
Compilation error: exit status 1}

Hi @imk123. It might be that the cache used by Arduino IDE 2.x (which uses a different cache path from 1.x) was somehow corrupted.

Try deleting this folder:

:warning: Please be very careful when deleting things from your computer. When in doubt, back up!

Deleting that folder will force the IDE to do a full recompile of the core. Hopefully that will fix the error.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.