最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

8051 - CLion cannot find sdcc.exe when configuring PlatformIO - Stack Overflow

programmeradmin1浏览0评论

I'm trying to configure PlatformIO with CLion for an 8051-based project using the SDCC toolchain.

  • The sdcc.exe file exists at the correct path and runs successfully from the command line, but CLion cannot find it when building the project:
Unknown compiler executable: 'C:\Users\lyz\.platformio\packages\toolchain-sdcc\bin\sdcc.exe'
  • The SDCC toolchain is installed at
C:\Users\lyz\.platformio\packages\toolchain-sdcc\bin\sdcc.exe.
  • The project builds successfully from the command line using pio run, but CLion's PlatformIO plugin fails to recognize sdcc.exe.

  • I've verified that the file exists and can be executed directly from the terminal, but CLion does not detect it during the build process.

  • I’ve tried setting the correct toolchain path in the platformio.ini file, but the issue persists.

How can I resolve this and make CLion properly recognize the SDCC toolchain?

  • Reinstall the toolchain

I'm trying to configure PlatformIO with CLion for an 8051-based project using the SDCC toolchain.

  • The sdcc.exe file exists at the correct path and runs successfully from the command line, but CLion cannot find it when building the project:
Unknown compiler executable: 'C:\Users\lyz\.platformio\packages\toolchain-sdcc\bin\sdcc.exe'
  • The SDCC toolchain is installed at
C:\Users\lyz\.platformio\packages\toolchain-sdcc\bin\sdcc.exe.
  • The project builds successfully from the command line using pio run, but CLion's PlatformIO plugin fails to recognize sdcc.exe.

  • I've verified that the file exists and can be executed directly from the terminal, but CLion does not detect it during the build process.

  • I’ve tried setting the correct toolchain path in the platformio.ini file, but the issue persists.

How can I resolve this and make CLion properly recognize the SDCC toolchain?

  • Reinstall the toolchain
Share Improve this question edited Jan 20 at 6:37 the busybee 12.7k3 gold badges14 silver badges34 bronze badges asked Jan 17 at 21:24 E3NE3N 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

Try downgrading the Clion version to 2024.2.4 or lower, that's how I solved it

发布评论

评论列表(0)

  1. 暂无评论