Skip to content

Tools->Board part number menu does not change #1258

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
3 tasks done
berrak opened this issue Jul 26, 2022 · 2 comments
Closed
3 tasks done

Tools->Board part number menu does not change #1258

berrak opened this issue Jul 26, 2022 · 2 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@berrak
Copy link

berrak commented Jul 26, 2022

Describe the problem

When a board is added or removed, this is shown in the menu Tools->Boards part number sub-menu.
For example, I added a new board, but this change does not show up in this menu, nor does the menu change
if remove a board.

To reproduce

Open the /home/bekr/.arduino15/packages/STMicroelectronics/hardware/stm32/2.3.0/boards.txt
and comment out, e.g., one of these STM32 boards in the STM32 variant file, i.e., boards.txt, by inserting # at the beginning of each line.

# AGAFIA SG0
GenG0.menu.pnum.AGAFIA_SG0=AGAFIA SG0
GenG0.menu.pnum.AGAFIA_SG0.upload.maximum_size=131072
GenG0.menu.pnum.AGAFIA_SG0.upload.maximum_data_size=36864
GenG0.menu.pnum.AGAFIA_SG0.build.board=AGAFIA_SG0
GenG0.menu.pnum.AGAFIA_SG0.build.product_line=STM32G071xx
GenG0.menu.pnum.AGAFIA_SG0.build.variant=STM32G0xx/G071C(6-8-B)(T-U)_G081CB(T-U)
GenG0.menu.pnum.AGAFIA_SG0.build.variant_h=variant_{build.board}.h

# Aurora One G030K8
GenG0.menu.pnum.AURORA_ONE=Aurora One
GenG0.menu.pnum.AURORA_ONE.upload.maximum_size=65536
GenG0.menu.pnum.AURORA_ONE.upload.maximum_data_size=8192
GenG0.menu.pnum.AURORA_ONE.build.board=AURORA_ONE
GenG0.menu.pnum.AURORA_ONE.build.product_line=STM32G030xx
GenG0.menu.pnum.AURORA_ONE.build.variant=STM32G0xx/G030K(6-8)T
GenG0.menu.pnum.AURORA_ONE.build.variant_h=variant_{build.board}.h

Exit, restart IDE, and select Tools->Boards: STM32 Generic G030 series.
Open Tools->Board part number: "some board", and open sub-menu.
The commented board should have disappeared. However, for IDE 2.0, the board has not disappeared as the attached images show; it works as expected in IDE 1.8.19.

As an alternative test, add a new board D1mini G031F6 with the following
definition. Again, this only works in IDE 1.8.9. For this second test,
add a new board by inserting the following text before the Generic G031F6x board.

# D1mini G031F6
GenG0.menu.pnum.D1MINI_G031F6=D1mini G031F6
GenG0.menu.pnum.D1MINI_G031F6.upload.maximum_size=32768
GenG0.menu.pnum.D1MINI_G031F6.upload.maximum_data_size=8192
GenG0.menu.pnum.D1MINI_G031F6.build.board=D1MINI_G031F6
GenG0.menu.pnum.D1MINI_G031F6.build.product_line=STM32G031xx
GenG0.menu.pnum.D1MINI_G031F6.build.variant=STM32G0xx/G031F(4-6-8)P_G031Y8Y_G041F(6-8)P_G041Y8Y
GenG0.menu.pnum.D1MINI_G031F6.build.variant_h=variant_{build.board}.h

# Generic G031F6Px

This new board should be visible in the Tools->Board part Number: "some board" - sub-menu.
Works as expected in IDE 1.8.19 but not yet in IDE 2.0.

Expected behavior

Any addition or removal of boards should be updated in the sub-menu of Tools->Board part number.

Arduino IDE version

Arduino-ide_nightly-20220726_Linux_64bit

Operating system

Linux

Operating system version

Debian 11 (Bullseye)

Additional context

IDE-1-8-19-works
IDE-2-does-not-change

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@berrak berrak added the type: imperfection Perceived defect in any part of project label Jul 26, 2022
@per1234
Copy link
Contributor

per1234 commented Jul 26, 2022

Hi @berrak. Thanks for taking the time to submit an issue.

I see we have another report about this at #1030 (also the equivalent for programmers.txt at #591).

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2022
@per1234 per1234 self-assigned this Jul 26, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Jul 26, 2022
@berrak
Copy link
Author

berrak commented Jul 27, 2022

Thanks for the workaround tips in these other reports. I have to be better at finding duplicates. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants