platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
385 stars 304 forks source link

unexpected errors occured trying to update a flawed HAL file, ill try to open an issue on it as well, this isnt going to fit your format, i dont code, just trying to compile some firmware, the errors asked me to report, so here you go #673

Open jayhawk303 opened 1 year ago

jayhawk303 commented 1 year ago

What kind of issue is this?esolving STM32F103RE_creality_smartPro dependencies... Error: Traceback (most recent call last): File "C:\Users\jayha.platformio\penv\lib\site-packages\platformio__main.py", line 102, in main cli() # pylint: disable=no-value-for-parameter File "C:\Users\jayha.platformio\penv\lib\site-packages\click\core.py", line 1130, in call return self.main(*args, kwargs) File "C:\Users\jayha.platformio\penv\lib\site-packages\click\core.py", line 1055, in main rv = self.invoke(ctx) File "C:\Users\jayha.platformio\penv\lib\site-packages\platformio\cli.py", line 71, in invoke return super().invoke(ctx) File "C:\Users\jayha.platformio\penv\lib\site-packages\click\core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "C:\Users\jayha.platformio\penv\lib\site-packages\click\core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "C:\Users\jayha.platformio\penv\lib\site-packages\click\core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "C:\Users\jayha.platformio\penv\lib\site-packages\click\core.py", line 760, in invoke return callback(*args, **kwargs) File "C:\Users\jayha.platformio\penv\lib\site-packages\platformio\package\commands\update.py", line 60, in package_update_cmd update_project_dependencies(options) File "C:\Users\jayha.platformio\penv\lib\site-packages\platformio\package\commands\update.py", line 99, in update_project_dependencies already_up_to_date = not update_project_env_dependencies(env, options) File "C:\Users\jayha.platformio\penv\lib\site-packages\platformio\package\commands\update.py", line 119, in update_project_env_dependencies _update_project_env_platform(project_env, options), File "C:\Users\jayha.platformio\penv\lib\site-packages\platformio\package\commands\update.py", line 136, in _update_project_env_platform new_pkg = PlatformPackageManager().update( File "C:\Users\jayha.platformio\penv\lib\site-packages\platformio\package\manager\platform.py", line 102, in update p.configure_project_packages(project_env) File "C:\Users\jayha.platformio\penv\lib\site-packages\platformio\platform\base.py", line 184, in configure_project_packages self.configure_default_packages(options, targets or []) File "C:\Users\jayha.platformio\platforms\ststm32@12.1.1\platform.py", line 35, in configure_default_packages if board.startswith("portenta"): AttributeError: 'NoneType' object has no attribute 'startswith'

============================================================

An unexpected error occurred. Further steps:

============================================================

PS C:\Users\jayha\Desktop\3d print fw\Marlin-bugfix-2.1.x>

You can erase any parts of this template not applicable to your Issue.


Configuration

Operating system:

PlatformIO Version (platformio --version):

Description of problem

Steps to Reproduce

1. 2. 3.

Actual Results

Expected Results

If problems with PlatformIO Build System:

The content of platformio.ini:

Insert here...

Source file to reproduce issue:

Insert here...

Additional info

classicrocker883 commented 1 year ago

just comment out in ini/stm32f1.ini

[env:STM32F103RE_creality_smartPro]
extends                     = STM32F103Rx_creality
board_build.offset          = 0x10000
board_upload.offset_address = 0x08010000

so it looks like

# [env:STM32F103RE_creality_smartPro]
# extends                     = STM32F103Rx_creality
# board_build.offset          = 0x10000
# board_upload.offset_address = 0x08010000
VanessaE commented 11 months ago

looks like the same prob as https://github.com/platformio/platformio-core/issues/4560

And it's not just those two folks. Same problem here, too. @classicrocker883's tip worked to bypass the error.