-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
Build : SUCCESSBuild number : 147 Triggering tests/test mbed-os |
Build : SUCCESSBuild number : 149 Triggering tests/test mbed-os |
Build : SUCCESSBuild number : 167 Skipping test trigger, missing label 'NEED CI' |
@andcor02 can you rebase please? @andreaslarssonublox this would need your blessing :) |
LGTM! |
/morph test |
Build : FAILUREBuild number : 235 |
@andcor02 Please look at the failure, it is related to this target, for ARM. |
@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 |
Thanks for the help Jan! Pushed changes! |
/morph build |
Build : SUCCESSBuild number : 308 Triggering tests/morph test |
Test : SUCCESSBuild number : 139 |
There was a problem hiding this 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 = | ||
{ |
There was a problem hiding this comment.
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, | ||
}; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indenting issue here
There was a problem hiding this 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, }; |
There was a problem hiding this comment.
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, }; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
/morph build |
Build : SUCCESSBuild number : 401 Triggering tests/morph test |
Test : SUCCESSBuild number : 195 |
There was a problem hiding this 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++; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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){ |
There was a problem hiding this comment.
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
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 |
@studavekar Why has a new comment kicked off the CI again?! This is not right |
Build : FAILUREBuild number : 447 |
Looks like we have a possible genuine failure:
|
Yes, that is correct, #5445 - once CI is back again, this should get first in ! |
/morph build |
Build : SUCCESSBuild number : 455 Triggering tests/morph test |
Test : SUCCESSBuild number : 274 |
/morph export-build |
Exporter Build : SUCCESSBuild number : 98 |
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