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

Board gets additionally listed in the wrong platform in pio board #4511

Closed
1 of 5 tasks
FFY00 opened this issue Jan 11, 2023 · 1 comment
Closed
1 of 5 tasks

Board gets additionally listed in the wrong platform in pio board #4511

FFY00 opened this issue Jan 11, 2023 · 1 comment

Comments

@FFY00
Copy link

FFY00 commented Jan 11, 2023

What kind of issue is this?

  • Question.
    This issue tracker is not the place for questions. If you want to ask how to do something,
    or to understand why something isn't working the way you expect it to,
    use Community Forums or Premium Support

  • PlatformIO IDE.
    All issues related to PlatformIO IDE should be reported to appropriate repository:
    PlatformIO IDE for Atom or
    PlatformIO IDE for VSCode

  • Development Platform or Board.
    All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms
    should be reported to appropriate repository related to your hardware
    https://github.com/topics/platformio-platform

  • Feature Request.
    Start by telling us what problem you’re trying to solve. Often a solution
    already exists! Don’t send pull requests to implement new features without first getting our
    support. Sometimes we leave features out on purpose to keep the project small.

  • PlatformIO Core.
    If you’ve found a bug, please provide an information below.

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


Configuration

Operating system:
Arch Linux

PlatformIO Version (platformio --version):

$ pio --version
PlatformIO Core, version 6.1.5

Description of problem

In platformio/platform-ststm32#670 I added a board definition, but when I went to use it I noticed that pio boards is outputting incorrect information. The board in question is an ST Nucleo H7A3ZI-Q, which should be only listed under the ststm32 platform, instead it is also listed under atmelavr.

Steps to Reproduce

  1. Copy nucleo_h7a3zi_q.json from Add Nucleo H7A3ZI-Q and H755ZI-Q boards platform-ststm32#670 to a project
  2. Run pio boards h7a3

Actual Results

$ pio boards h7a3

Platform: atmelavr
=================================================================================
ID               MCU             Frequency    Flash    RAM     Name
---------------  --------------  -----------  -------  ------  ------------------
nucleo_h7a3zi_q  STM32H7A3ZIT6Q  280MHz       2MB      1.34MB  ST Nucleo H7A3ZI-Q

Platform: ststm32
=================================================================================
ID               MCU             Frequency    Flash    RAM     Name
---------------  --------------  -----------  -------  ------  ------------------
nucleo_h7a3zi_q  STM32H7A3ZIT6Q  280MHz       2MB      1.34MB  ST Nucleo H7A3ZI-Q

Expected Results

$ pio boards h7a3

Platform: ststm32
=================================================================================
ID               MCU             Frequency    Flash    RAM     Name
---------------  --------------  -----------  -------  ------  ------------------
nucleo_h7a3zi_q  STM32H7A3ZIT6Q  280MHz       2MB      1.34MB  ST Nucleo H7A3ZI-Q
@FFY00 FFY00 changed the title Board gets *additionally* listed in the wrong platform in pio board Board gets additionally listed in the wrong platform in pio board Jan 11, 2023
@ivankravets
Copy link
Member

If you add custom boards, you can specify the platforms list of compatible platforms.

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

2 participants