Skip to content

Official STM32 Port selection duplication #225

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

Closed
toogooda opened this issue Mar 15, 2021 · 5 comments
Closed

Official STM32 Port selection duplication #225

toogooda opened this issue Mar 15, 2021 · 5 comments
Labels
conclusion: invalid Issue/PR not valid topic: CLI Related to Arduino CLI type: imperfection Perceived defect in any part of project

Comments

@toogooda
Copy link

toogooda commented Mar 15, 2021

Describe the bug
Display and selection of com port is mixed up in what looks like a cartesian join the variant options.
The official STM32 core has multi layered board selection for example you first select "Generic STM32F1 Series" then you select the specific "Board part number" which is the variant. You can also select the COM port separately as shown in the below image:
image

However in the new IDE2.0 the port is duplicated for every possible variant. which suggests your unique key is not unique.
image

What is also strange is that if you select any of them they all get selected and the same when deselecting
image

To Reproduce
Steps to reproduce the behavior:

  1. Add additional boards URL "https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"
  2. Install STM32 core
  3. attach board (I am using Generic STM32F103RET6)
  4. Select a generic series
  5. Look at ports

Expected behavior
As variant selection is another menu option the COM port selection should only show com ports and only once.

Desktop (please complete the following information):
Windows 10

Did further investigating, the com ports showing the STM32F103 items does not change even if you select a different generic series .
image

@toogooda
Copy link
Author

OK have done further testing I think this relates to CLI fqbn where there may be the same result for the entire series so when detected it list all of them instead of just listing "STM32F103 Series" or such.

@toogooda
Copy link
Author

toogooda commented Mar 15, 2021

Yes looks like if comes from CLI

c:\Program Files (x86)\Arduino_CLI>arduino-cli board list --format json
[
  {
    "address": "COM5",
    "protocol": "serial",
    "protocol_label": "Serial Port (USB)",
    "boards": [
      {
        "name": "Maple Mini",
        "FQBN": "stm32duino:STM32F1:mapleMini",
        "VID": "0x1EAF",
        "PID": "0x0004"
      },
      {
        "name": "Maple (RET6)",
        "FQBN": "stm32duino:STM32F1:mapleRET6",
        "VID": "0x1EAF",
        "PID": "0x0004"
      },
      {
        "name": "Generic STM32F103C series",
        "FQBN": "stm32duino:STM32F1:genericSTM32F103C",
        "VID": "0x1EAF",
        "PID": "0x0004"
      },
      {
        "name": "Generic STM32F103T series",
        "FQBN": "stm32duino:STM32F1:genericSTM32F103T",
        "VID": "0x1EAF",
        "PID": "0x0004"
      },
      {
        "name": "Generic STM32F103Z series",
        "FQBN": "stm32duino:STM32F1:genericSTM32F103Z",
        "VID": "0x1EAF",
        "PID": "0x0004"
      },
      {
        "name": "Microduino Core STM32 to Flash",
        "FQBN": "stm32duino:STM32F1:microduino32_flash",
        "VID": "0x1EAF",
        "PID": "0x0004"
      },
      {
        "name": "Generic STM32F103R series",
        "FQBN": "stm32duino:STM32F1:genericSTM32F103R",
        "VID": "0x1EAF",
        "PID": "0x0004"
      },
      {
        "name": "HYTiny STM32F103TB",
        "FQBN": "stm32duino:STM32F1:hytiny-stm32f103t",
        "VID": "0x1EAF",
        "PID": "0x0004"
      },
      {
        "name": "Maple (Rev 3)",
        "FQBN": "stm32duino:STM32F1:maple",
        "VID": "0x1EAF",
        "PID": "0x0004"
      },
      {
        "name": "Generic STM32F103V series",
        "FQBN": "stm32duino:STM32F1:genericSTM32F103V",
        "VID": "0x1EAF",
        "PID": "0x0004"
      }
    ]
  }
]

Looks like it is not unique they are all part of "STM32F103 Series" perhaps "STM32F103 Series" should be the FQBN

@toogooda toogooda changed the title Official STM32 Port selection has Cartesian join with variant Official STM32 Port selection duplication Mar 16, 2021
@toogooda
Copy link
Author

Have also created under CLI and told STM32 Core guys, as I don't know where it should be fixed.

@toogooda
Copy link
Author

Closing as related to very old install on original IDE of Dan Browns STM32 core. Once I removed it the problem went away.

@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234
Copy link
Contributor

per1234 commented Oct 28, 2021

For the benefit of others who might find this issue in their researches after experiencing this sort of phenomenon, I'll link to the related discussion here: arduino/arduino-cli#1225

@per1234 per1234 added conclusion: invalid Issue/PR not valid topic: CLI Related to Arduino CLI labels Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid topic: CLI Related to Arduino CLI type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants