Skip to content

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

Closed
@fabry1992

Description

@fabry1992

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}

Activity

fpistm

fpistm commented on Jun 28, 2024

@fpistm
Member

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

added this to the 2.9.0 milestone on Jun 28, 2024
added a commit that references this issue on Jul 1, 2024
7addb8e
fpistm

fpistm commented on Jul 1, 2024

@fpistm
Member

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}
added a commit that references this issue on Jul 1, 2024
e194ab8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

      Development

      Participants

      @fpistm@fabry1992

      Issue actions

        ELV-BM-TRX1 was not affected by the rework for the STM32Programmer · Issue #2412 · stm32duino/Arduino_Core_STM32