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

Add New Board: Raytac MDBT50Q Demo Board 40 #233

Merged
merged 4 commits into from
Nov 30, 2021
Merged

Add New Board: Raytac MDBT50Q Demo Board 40 #233

merged 4 commits into from
Nov 30, 2021

Conversation

markbirss
Copy link
Contributor

  • adding Raytac MDBT50Q Demo Board 40 files

Add Board support for Raytac MDBT50Q Demo Board 40
Copy link
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VID/PID must be uniquely assigned. check out review comment for detail

Comment on lines 65 to 67
#define USB_DESC_VID 0x239A
#define USB_DESC_UF2_PID 0x010C
#define USB_DESC_CDC_ONLY_PID 0x010C
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is required by this repo that each board must have its own unique VID/PID. I double check, but this PID isn't assigned by Adafruit to any boards yet. Please try to get one from PID donor.

@markbirss
Copy link
Contributor Author

Ok, i understand your comment, but what is "PID donor" ?

@hathach
Copy link
Member

hathach commented Nov 26, 2021

Ok, i understand your comment, but what is "PID donor" ?

I mean you could ask from one of the manufacturer to get an PID assigned to this board.

@markbirss
Copy link
Contributor Author

Ok, will ask Raytac about it

@markbirss
Copy link
Contributor Author

markbirss commented Nov 26, 2021

The device was loaded with this when i received it
ID 1915:521a Nordic Semiconductor ASA nRF52 USB CDC BLE Demo

@markbirss
Copy link
Contributor Author

@hathach Ok, i just found this github issue about the same thing for circuitpython for the same device

adafruit/circuitpython#3128 (comment)

This suggests I must use

PID 0x00BB # bootloader ?

@hathach
Copy link
Member

hathach commented Nov 26, 2021

@markbirss it is the same board, so yes, we should/must use that PID. Please update your PR

@markbirss
Copy link
Contributor Author

markbirss commented Nov 26, 2021

@hathach

Sure, i have made the required change

Copy link
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

board-id is not correct, it must follow uf2 convention.

//------------- UF2 -------------//
#define UF2_PRODUCT_NAME "Raytac MDBT50Q Demo Board 40"
#define UF2_VOLUME_LABEL "MDBT50QBOOT"
#define UF2_BOARD_ID "RAYTAC-MDBT50Q-DB-40"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

board id must follow uf2 format

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hathach
Im not sure I understand your comment ?

Looking at the other already defined Raytec Board, what is the board-id you referring to ?

https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/master/src/boards/raytac_mdbt50q_rx/board.h

//------------- UF2 -------------//
#define UF2_PRODUCT_NAME        "Raytac MDBT50Q-RX"
#define UF2_VOLUME_LABEL        "MDBT50QBOOT"
#define UF2_BOARD_ID            "nRF52840-MDBT50Q_RX-verD"
#define UF2_INDEX_URL           "https://www.adafruit.com/product/5199"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

board-id must follow format dictate by uf2 spec https://github.com/microsoft/uf2#files-exposed-by-bootloaders

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hathach Ok, for your review, made changes to UF2_BOARD_ID

from 
https://github.com/microsoft/uf2#files-exposed-by-bootloaders

The Board-ID field is machine-readable and consists of a number of dash-separated tokens. The first token is the CPU type, second is the board type, and third is the board revision. More tokens can be also added.
Copy link
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything look good, only one last thing: you need add the board to ci list so that its binaries is generated when released https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/master/.github/workflows/githubci.yml

@markbirss
Copy link
Contributor Author

@hathach Ok, here is the PR for that
#245

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

Successfully merging this pull request may close these issues.

2 participants