X5 Mini WiFi - Marlin Configuration

I’m attempting to put Marlin 2.0.4.4 on my X5 Mini but I’m running into an issue.

[platformio]
src_dir = Marlin
boards_dir = buildroot/share/PlatformIO/boards
default_envs = LPC1769

// Choose the name from boards.h that matches your setup

#ifndef MOTHERBOARD

#define MOTHERBOARD BOARD_AZTEEG_X5_MINI_WIFI

#endif

Error:

Executing task in folder Root 3 CNC: platformio run <

Processing helvepic32 (platform: microchippic32; board: helvepic32; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/microchippic32/helvepic32.html
PLATFORM: Microchip PIC32 1.6.1 > HelvePic32
HARDWARE: 32MX250F128B 48MHz, 32KB RAM, 120KB Flash
PACKAGES:

  • framework-arduinomicrochippic32 1.20006.0 (2.0.6)
  • toolchain-microchippic32 1.40803.143 (4.8.3)
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 29 compatible libraries
    Scanning dependencies…
    No dependencies
    Building in release mode
    Compiling .pio/build/helvepic32/src/main.cpp.o
    sh: /Users/bcramer/.platformio/packages/toolchain-microchippic32/bin/pic32-g++: Bad CPU type in executable
    Compiling .pio/build/helvepic32/FrameworkArduinoVariant/Board_Data.c.o
    sh: /Users/bcramer/.platformio/packages/toolchain-microchippic32/bin/pic32-gcc: Bad CPU type in executable
    Compiling .pio/build/helvepic32/FrameworkArduino/HardwareSerial.cpp.o
    sh: /Users/bcramer/.platformio/packages/toolchain-microchippic32/bin/pic32-g++: Bad CPU type in executable
    Compiling .pio/build/helvepic32/FrameworkArduino/IPAddress.cpp.o
    sh: /Users/bcramer/.platformio/packages/toolchain-microchippic32/bin/pic32-g++: Bad CPU type in executable
    Compiling .pio/build/helvepic32/FrameworkArduino/Print.cpp.o
    Compiling .pio/build/helvepic32/FrameworkArduino/Stream.cpp.o
    sh: /Users/bcramer/.platformio/packages/toolchain-microchippic32/bin/pic32-g++: Bad CPU type in executable
    sh: /Users/bcramer/.platformio/packages/toolchain-microchippic32/bin/pic32-g++: Bad CPU type in executable
    Compiling .pio/build/helvepic32/FrameworkArduino/Tone.cpp.o
    *** [.pio/build/helvepic32/src/main.cpp.o] Error 126
    *** [.pio/build/helvepic32/FrameworkArduinoVariant/Board_Data.c.o] Error 126
    *** [.pio/build/helvepic32/FrameworkArduino/HardwareSerial.cpp.o] Error 126
    Compiling .pio/build/helvepic32/FrameworkArduino/USB.cpp.o
    sh: /Users/bcramer/.platformio/packages/toolchain-microchippic32/bin/pic32-g++: Bad CPU type in executable
    *** [.pio/build/helvepic32/FrameworkArduino/IPAddress.cpp.o] Error 126
    *** [.pio/build/helvepic32/FrameworkArduino/Print.cpp.o] Error 126
    *** [.pio/build/helvepic32/FrameworkArduino/Stream.cpp.o] Error 126
    *** [.pio/build/helvepic32/FrameworkArduino/Tone.cpp.o] Error 126
    sh: /Users/bcramer/.platformio/packages/toolchain-microchippic32/bin/pic32-g++: Bad CPU type in executable
    *** [.pio/build/helvepic32/FrameworkArduino/USB.cpp.o] Error 126
    ============================================================================== [FAILED] Took 1.07 seconds ==============================================================================
    The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

I’m somewhat new to VScode and Platform IO. I deleted the folder and created a new project. From there I added my Marlin folder to my Workspace. Seems to be compiling now.

I’m not sure what was here but I deleted it on accident.

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

I undeleted it for you. It might be that you’d be able to do that too, but in any case I fixed it. :slight_smile: