platform-ststm32
platform-ststm32 copied to clipboard
Linker having issues with non English characters in path to link script
- [X] Development Platform or Board.
Configuration
Operating system: Windows 10
PlatformIO Version PlatformIO Core, version 5.1.1
Description of problem
Fails to link. Error "Cannot open linker script file" Path contains non English characters. Simply renaming directory gets around issue, but should not be required. Path contains ALT+162 ó, seems to break things. Second report, this time user used a é
Steps to Reproduce
- Standard Marlin build https://github.com/MarlinFirmware/Marlin/archive/refs/heads/bugfix-2.0.x.zip
- extract to directory with non English characters
- use config files from https://github.com/MarlinFirmware/Configurations/tree/bugfix-2.0.x/config/examples/Creality/Ender-3%20V2
- Set default_envs = STM32F103RET6_creality in platfomio.ini
- build
Actual Results
Example uses Marlin auto build, but does same with standard build button.

Expected Results
Linking to be successful
If problems with PlatformIO Build System:
The content of platformio.ini:
same as https://github.com/MarlinFirmware/Marlin/blob/bugfix-2.0.x/platformio.ini with step 4 above applied.
The error message comes from the arm-none-eabi's ld linker component -- I'm not sure if there is anything one can do for fixing that here. (If it's not an issue with PlatformIO encoding it wrongly).
What's the output of pio system info?
same happen with french Downloads folder named "Téléchargements"

to note: seems specific to lib maple environments (STM32F1)
well if you have this problem, just move the project in a folder with a simple charset