Skip to content

New Target: Mbed Connect Cloud board #5305

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 10, 2017
Merged

New Target: Mbed Connect Cloud board #5305

merged 1 commit into from
Nov 10, 2017

Conversation

andcor02
Copy link

Description

Introduced mbed Connect Cloud board based on ODIN-W2 Module
Renamed some UBLOX ODIN-W2 files to make space for new board,

ADDED ublox recent changes

Status

READY

Migrations

If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.

NO

@mbed-ci
Copy link

mbed-ci commented Oct 12, 2017

Build : SUCCESS

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

Triggering tests

/test mbed-os

0xc0170
0xc0170 previously approved these changes Oct 12, 2017
@0xc0170
Copy link
Contributor

0xc0170 commented Oct 12, 2017

@mbed-ci
Copy link

mbed-ci commented Oct 12, 2017

Build : SUCCESS

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

Triggering tests

/test mbed-os

@mbed-ci
Copy link

mbed-ci commented Oct 13, 2017

Build : SUCCESS

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

Skipping test trigger, missing label 'NEED CI'

@screamerbg
Copy link
Contributor

@andcor02 can you rebase please?

@andreaslarssonublox this would need your blessing :)

@andreaslarssonublox
Copy link

LGTM!

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 18, 2017

/morph test

@mbed-ci
Copy link

mbed-ci commented Oct 18, 2017

Build : FAILURE

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

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 19, 2017

@andcor02 Please look at the failure, it is related to this target, for ARM.

@janjongboom
Copy link
Contributor

@andcor02, copy features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/ to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_MBED_CONNECT_ODIN/

This fixed it for me in ARMCC5

@andcor02
Copy link
Author

Thanks for the help Jan! Pushed changes!

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 23, 2017

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 23, 2017

Build : SUCCESS

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

Triggering tests

/morph test
/morph uvisor-test

@theotherjimmy theotherjimmy changed the title New Target Mbed Connect Cloud board - redo! New Target: Mbed Connect Cloud board Oct 23, 2017
@mbed-ci
Copy link

mbed-ci commented Oct 23, 2017

Copy link
Contributor

@adbridge adbridge left a comment

Choose a reason for hiding this comment

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

There are a number of minor formatting issues. Could we please fix ?

void _eth_config_mac(ETH_HandleTypeDef *heth)
{
ETH_MACInitTypeDef macconf =
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this '{' be on the line above?

.TransmitFlowControl = ETH_TRANSMITFLOWCONTROL_DISABLE,
.VLANTagComparison = ETH_VLANTAGCOMPARISON_16BIT,
.VLANTagIdentifier = 0x0U,
};
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this '}' should line up with ETH_MACInitTypeDef

if (id == 0xFF){
p++;
}
else {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be
} else {

HAL_GPIO_Init(GPIOA, &GPIO_InitStructure);

/* Configure PB13 */
GPIO_InitStructure.Pin = GPIO_PIN_13 | GPIO_PIN_11 | GPIO_PIN_12;
Copy link
Contributor

Choose a reason for hiding this comment

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

Indenting issue here ?


/* Configure PC1, PC4 and PC5 */
GPIO_InitStructure.Pin = GPIO_PIN_1 | GPIO_PIN_4 | GPIO_PIN_5;
HAL_GPIO_Init(GPIOC, &GPIO_InitStructure);
Copy link
Contributor

Choose a reason for hiding this comment

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

Indenting issue here

@0xc0170 0xc0170 dismissed their stale review October 26, 2017 13:58

Need to review again after changes

@andcor02
Copy link
Author

@adbridge @0xc0170 , Fixed, please check and merge

Copy link
Contributor

@adbridge adbridge left a comment

Choose a reason for hiding this comment

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

Just a couple more minor tweaks, the rest looks ok

.ReceiveFlowControl = ETH_RECEIVEFLOWCONTROL_DISABLE,
.TransmitFlowControl = ETH_TRANSMITFLOWCONTROL_DISABLE,
.VLANTagComparison = ETH_VLANTAGCOMPARISON_16BIT,
.VLANTagIdentifier = 0x0U, };
Copy link
Contributor

Choose a reason for hiding this comment

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

@andcor02 Sorry to be a pain, the terminating brace should be on it's own line and directly underneath the E of ETH_MACInitTypeDef macconf . I don't think there should be a comma after the last entry either.

@@ -48,8 +47,7 @@ void _eth_config_mac(ETH_HandleTypeDef *heth)
.ReceiveFlowControl = ETH_RECEIVEFLOWCONTROL_DISABLE,
.TransmitFlowControl = ETH_TRANSMITFLOWCONTROL_DISABLE,
.VLANTagComparison = ETH_VLANTAGCOMPARISON_16BIT,
.VLANTagIdentifier = 0x0U,
};
.VLANTagIdentifier = 0x0U, };
Copy link
Contributor

Choose a reason for hiding this comment

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

@andcor02 When I commented that the terminating brace should be underneath the ETH, I meant on it's own line and directly underneath the E of ETH_MACInitTypeDef macconf . I don't think there should be a comma after the last entry either.

Copy link
Author

Choose a reason for hiding this comment

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

See changes

…it, added ublox changes

Corrected error

Corrected error in targets json

Reworked JSON

Added lwip-eth to Connect ODIN removes ARM CC error

Fixed formating issues

Correct formating error in  .json

Indentation errors
@studavekar
Copy link
Contributor

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 31, 2017

Build : SUCCESS

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

Triggering tests

/morph test
/morph uvisor-test

@mbed-ci
Copy link

mbed-ci commented Oct 31, 2017

Copy link
Contributor

@adbridge adbridge left a comment

Choose a reason for hiding this comment

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

Some other minor possible updates and then we should be good to go.

memcpy((void*)&id, (void*)pTemp, 1);

if (id == 0xFF){
p++;
Copy link
Contributor

Choose a reason for hiding this comment

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

p++ is done in both parts of the conditional. Would it be better to write as :

p++;
if (id != 0xFF){
    memcpy((void*)&len, (void*)p++, 1);
    p += len;
}

??

pTemp = increment(pTemp);
}
if (pFound != NULL) {
memcpy(_macAddr, pFound->data, 6);
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume the 6 is the size of the macAddr - could this be a #define then ?

_macRetrieved = 1;
}
}
memcpy(mac, _macAddr, 6);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above

@@ -25,8 +25,7 @@ static C029_OTP_Header *increment(C029_OTP_Header *pTemp)

if (id == 0xFF){
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as the one above about this conditional structure

@adbridge
Copy link
Contributor

adbridge commented Nov 7, 2017

Last set of comments , purely possible improvements. Agreed they should go back to the maintainers of these files for inclusion in subsequent PRs. Thus accepting this one

@adbridge
Copy link
Contributor

adbridge commented Nov 7, 2017

@studavekar Why has a new comment kicked off the CI again?! This is not right

@mbed-ci
Copy link

mbed-ci commented Nov 7, 2017

Build : FAILURE

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

@adbridge
Copy link
Contributor

adbridge commented Nov 7, 2017

Looks like we have a possible genuine failure:
REALTEK_RTL8195AM (netsocket tests for all toolchains)

        [Error] mbed_config.h@60,90: 'WIFI_SSID' was not declared in this scope
        [Error] mbed_config.h@60,101: 'WIFI_PASSWORD' was not declared in this scope
        [Error] mbed_config.h@60,116: 'WIFI_SECURITY' was not declared in this scope
        [Error] mbed_config.h@60,131: 'WIFI_CHANNEL' was not declared in this scope

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 7, 2017

Yes, that is correct, #5445 - once CI is back again, this should get first in !

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 8, 2017

/morph build

@mbed-ci
Copy link

mbed-ci commented Nov 8, 2017

Build : SUCCESS

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

Triggering tests

/morph test
/morph uvisor-test

@mbed-ci
Copy link

mbed-ci commented Nov 8, 2017

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 9, 2017

/morph export-build

@mbed-ci
Copy link

mbed-ci commented Nov 9, 2017

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.

9 participants