Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build flag with code-loc not working. #58

Open
mikaelsundin opened this issue Nov 4, 2022 · 0 comments
Open

Build flag with code-loc not working. #58

mikaelsundin opened this issue Nov 4, 2022 · 0 comments

Comments

@mikaelsundin
Copy link

I trying to move the code location in flash(for a bootloader).

Tested in platformio with build_flags

  • --code-loc 0x8020
  • --code-loc 32800.

Both does not work.
error 194: Bad integer argument for option --code-loc

My platformio.ini

[env:stm8sblue]
platform = ststm8
board = stm8sblue
framework = spl

build_flags = --code-loc 0x8020

Output

Processing stm8sblue (platform: ststm8; board: stm8sblue; framework: spl)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm8/stm8sblue.html
PLATFORM: ST STM8 (2.1.0) > ST STM8S103F3 Breakout Board
HARDWARE: STM8S103F3P6 16MHz, 1KB RAM, 8KB Flash
DEBUG: Current (stlink) External (stlink)
PACKAGES:
 - framework-ststm8spl @ 0.20301.181217 (2.3.1)
 - tool-stm8binutils @ 0.230.0 (2.30)
 - toolchain-sdcc @ 1.40200.0 (4.2.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf

LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\stm8sblue\SPL\stm8s_gpio.rel
Compiling .pio\build\stm8sblue\src\main.rel      
at 1: error 194: Bad integer argument for option --code-loc
*** [.pio\build\stm8sblue\SPL\stm8s_gpio.rel] Error 1      
at 1: error 194: Bad integer argument for option --code-loc
*** [.pio\build\stm8sblue\src\main.rel] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant