Skip to content

Adding Laird BL652 as new target #6164

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 2 commits into from
Mar 8, 2018
Merged

Adding Laird BL652 as new target #6164

merged 2 commits into from
Mar 8, 2018

Conversation

ashok-rao
Copy link
Contributor

Description

Adding Laird BL652 as a new target.

Pull request type

  • New Target

Greentea: all tests passing. Logs attached below.

GT_log_ARMCC_Pass.txt
GT_log_GCC_Pass.txt
GT_log_IAR_Pass.txt

cc @screamerbg @chris-styles @0xc0170

@ashok-rao
Copy link
Contributor Author

@0xc0170 @cmonr .. could you please review (this is similar to other MTB targets that I've added) & let me know your thoughts?

@cmonr cmonr self-requested a review March 1, 2018 17:32
cmonr
cmonr previously approved these changes Mar 6, 2018
Copy link
Contributor

@cmonr cmonr left a comment

Choose a reason for hiding this comment

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

Comment related questions.

@@ -0,0 +1,23 @@
// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this comment suppose to be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel so as the features section is used on the MCU level. Not specifically used for any of the modules (so far).. but may be required in the future??

Copy link
Contributor

Choose a reason for hiding this comment

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

Alright, that's fine with me then.
Just seemed odd to see something before the license header.

},
"overrides": {
"lf_clock_src": "NRF_LF_SRC_RC",
"uart_hwfc": 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor nit. Mind fixing this indentation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Thanks!

@cmonr
Copy link
Contributor

cmonr commented Mar 6, 2018

@0xc0170 Think you could also give a quick look-over?

@cmonr
Copy link
Contributor

cmonr commented Mar 6, 2018

@screamerbg @chris-styles Ping for review.

@ashok-rao
Copy link
Contributor Author

@cmonr @0xc0170 ..review comments incorporated. Could you please re-check ? Thanks.

@@ -0,0 +1,23 @@
// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches.
Copy link
Contributor

Choose a reason for hiding this comment

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

Alright, that's fine with me then.
Just seemed odd to see something before the license header.

@cmonr cmonr requested a review from marcuschangarm March 7, 2018 02:49
@cmonr
Copy link
Contributor

cmonr commented Mar 7, 2018

@marcuschangarm Wondering if you could take a quick look, particularly with target.json.

@cmonr
Copy link
Contributor

cmonr commented Mar 7, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Mar 7, 2018

Build : SUCCESS

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

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Mar 7, 2018

@mbed-ci
Copy link

mbed-ci commented Mar 7, 2018

"usb_rx": {
"help": "Value SIO_08",
"value": "SIO_8"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What are usb_tx and usb_rx being used for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

But none of our code base uses the USB_RX configuration flag. It looks like dead code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Isn't USB_TX and USB_RX standardised pins to be defined as part of DAPLink pins in the pin defines? along with BUTTON and LED's..?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I see.. good to know. I'll create a different PR to optimise this target then. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't worry about it to be honest! 😄 We are very close to merging the NRF52 feature branch anyway and we'll be cleaning up all the NRF52 based targets at that point!

},
"overrides": {
"lf_clock_src": "NRF_LF_SRC_RC",
"uart_hwfc": 0
Copy link
Contributor

Choose a reason for hiding this comment

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

What firmware is the board running on the interface chip?

Copy link
Contributor Author

@ashok-rao ashok-rao Mar 8, 2018

Choose a reason for hiding this comment

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

DAPLink ..the MTB is running DAPLink ..the MCB (with the BL652 module) communicates over USB via the MTB..

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, but which one? Do you know if they have flow control enabled like on the Nordic boards?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean which DAPLink version (if yes, then there isn't one that's released yet!) We got a custom build from @c1728p9 . Regarding flow control, it's enabled in the parent target by default. I had to disable it for this module. With it enabled (default), I wasn't seeing any printf's coming out of the UART..

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, good to know! Some Daplinks require flow control to enabled, some doesn't.

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