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

ELV-BM-TRX1 was not affected by the rework for the STM32Programmer #2412

Closed
fabry1992 opened this issue Jun 28, 2024 · 2 comments · Fixed by #2414
Closed

ELV-BM-TRX1 was not affected by the rework for the STM32Programmer #2412

fabry1992 opened this issue Jun 28, 2024 · 2 comments · Fixed by #2414

Comments

@fabry1992
Copy link

fabry1992 commented Jun 28, 2024

Describe the bug
Programming the ELV-BM-TRX1 device results in following error message:
Selected interface: 1 Protocol unknown!

To Reproduce

  1. Use the compile function
  2. See message

Expected behavior
The compiled code gets Downloaded and verified onto the device

Desktop (please complete the following information):

  • OS: Windows
  • Arduino IDE version: 2.3.2
  • STM32 core version: 2.8.0
  • Upload method: Serial

Board (please complete the following information):

  • Name: ELV-BM-TRX1
  • Hardware Revision: Rev A

Suggested Fix
Since all other board.txt entries were reworked, in the same way, I would suggest to change the following lines:
12946 : ELV_Modular_System.menu.upload_method.swdMethod.upload.protocol=0
12950 : ELV_Modular_System.menu.upload_method.serialMethod.upload.protocol=1
12951 : ELV_Modular_System.menu.upload_method.serialMethod.upload.options={serial.port.file}

to

12946 : ELV_Modular_System.menu.upload_method.swdMethod.upload.protocol=swd
12950 : ELV_Modular_System.menu.upload_method.serialMethod.upload.protocol=serial
12951 : ELV_Modular_System.menu.upload_method.serialMethod.upload.options=-c {serial.port.file}

@fpistm
Copy link
Member

fpistm commented Jun 28, 2024

Hi @fabry1992
Right, 2 PR were made in // and forgot this new entry for the STM32CubeProgrammer rework. Plase feel free to provide a PR.
As a workaround, the boards.local.txt can be used to redefine the correct options. --> PR created #2414

@fpistm fpistm added this to To do in STM32 core based on ST HAL via automation Jun 28, 2024
@fpistm fpistm added this to the 2.9.0 milestone Jun 28, 2024
fpistm added a commit to fpistm/Arduino_Core_STM32 that referenced this issue Jul 1, 2024
Fixes stm32duino#2412

Signed-off-by: Stephan Fabry <[email protected]>
Co-Authored-by: Frederic Pillon <[email protected]>
@fpistm
Copy link
Member

fpistm commented Jul 1, 2024

Workaround:

  1. Create a boards.local.txt file.
  2. Add those lines inside:
ELV_Modular_System.menu.upload_method.swdMethod.upload.protocol=swd
ELV_Modular_System.menu.upload_method.serialMethod.upload.protocol=serial
ELV_Modular_System.menu.upload_method.serialMethod.upload.options=-c {serial.port.file}

@fpistm fpistm closed this as completed in 298889f Jul 1, 2024
STM32 core based on ST HAL automation moved this from To do to Done Jul 1, 2024
fpistm added a commit that referenced this issue Jul 1, 2024
Fixes #2412

Signed-off-by: Stephan Fabry <[email protected]>
Co-Authored-by: Frederic Pillon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging a pull request may close this issue.

2 participants