Skip to content

Add support for RedBear's BLE Nano 2 #5231

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

Merged
merged 1 commit into from Nov 13, 2017
Merged

Add support for RedBear's BLE Nano 2 #5231

merged 1 commit into from Nov 13, 2017

Conversation

ghost
Copy link

@ghost ghost commented Oct 1, 2017

Cribbed from redbear@4bf42f2

I'm not sure if if there are any copyright issues here with what is
effectively a set of config files. A few folks have been bugging me (and
the redbear folks) for these changes, so I wanted them somewhere
centralized.

@ghost
Copy link
Author

ghost commented Oct 1, 2017

The original version of this modified the serial code for flow control, but they aren't necessary anymore with the uart flow control option in targets.json

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 2, 2017

cc @Cheong2K

@ghost ghost mentioned this pull request Oct 3, 2017
@0xc0170
Copy link
Contributor

0xc0170 commented Oct 10, 2017

Have you contacted Redbear about this addition?

This PR requires a rebase on top of latest master to resolve circle ci failure.

@zoujixing

@ghost
Copy link
Author

ghost commented Oct 10, 2017

They are the ones who originally wrote it as per the link. All I did was trim out the Blend 2, since I don't have one to test with, and get rid of a hack in the serial api. I was just hoping this might spur some action on their part.





Copy link
Contributor

Choose a reason for hiding this comment

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

Why so many newlines?

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@theotherjimmy theotherjimmy left a comment

Choose a reason for hiding this comment

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

targets.json nits

"RBLAB_BLENANO2": {
"supported_form_factors": ["ARDUINO"],
"inherits": ["MCU_NRF52"],
"progen": {"target": "rblab_blenano2"},
Copy link
Contributor

Choose a reason for hiding this comment

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

"progen" is not an allowed key. Please remove it.

@ghost
Copy link
Author

ghost commented Oct 10, 2017

rebased with suggested changes.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 19, 2017

@theotherjimmy review pls

@adbridge
Copy link
Contributor

@theotherjimmy could you please re-review?

Copy link
Contributor

@theotherjimmy theotherjimmy left a comment

Choose a reason for hiding this comment

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

LGTM, + a nit.

"RBLAB_BLENANO2": {
"supported_form_factors": ["ARDUINO"],
"inherits": ["MCU_NRF52"],
"macros_add": ["BOARD_PCA10040", "NRF52_PAN_12", "NRF52_PAN_15", "NRF52_PAN_58", "NRF52_PAN_55", "NRF52_PAN_54", "NRF52_PAN_31", "NRF52_PAN_30", "NRF52_PAN_51", "NRF52_PAN_36", "NRF52_PAN_53", "S132", "CONFIG_GPIO_AS_PINRESET", "BLE_STACK_SUPPORT_REQD", "SWI_DISABLE0", "NRF52_PAN_20", "NRF52_PAN_64", "NRF52_PAN_62", "NRF52_PAN_63", "RBLAB_BLENANO2"],
Copy link
Contributor

Choose a reason for hiding this comment

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

It does not look like you need the "RBLAB_BLENANO2" Macro.

Copy link
Author

Choose a reason for hiding this comment

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

shouldn't it actually be in extra_labels_add then? that'd seem to match up with other targets now that i look again.

Copy link
Contributor

Choose a reason for hiding this comment

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

It should probably be in neither. Adding it to extra_labels_add will do nothing, as the label RBLAB_BLENANO2 is already there as it's the target.

Copy link
Author

Choose a reason for hiding this comment

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

i see. It's gone now.

Cribbed from redbear@4bf42f2

I'm not sure if if there are any copyright issues here with what is
effectively a set of config files. A few folks have been bugging me (and
the redbear folks) for these changes, so I wanted them somewhere
centralized.
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 3, 2017

/morph build

@mbed-ci
Copy link

mbed-ci commented Nov 3, 2017

Build : SUCCESS

Build number : 423
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5231/

Triggering tests

/morph test
/morph uvisor-test

@mbed-ci
Copy link

mbed-ci commented Nov 3, 2017

@theotherjimmy
Copy link
Contributor

/morph export-build

@mbed-ci
Copy link

mbed-ci commented Nov 6, 2017

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 8, 2017

/morph uvisor-test

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 9, 2017

@alzix Please restart uvisor for this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants