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

Release candidate for mbed-os-5.4.5 #4278

Merged
merged 28 commits into from May 9, 2017
Merged

Conversation

adbridge
Copy link
Contributor

@adbridge adbridge commented May 5, 2017

No description provided.

stevew817 and others added 28 commits May 5, 2017 16:48
Due to limitation in the mbed website backend (board names need to be <= 19 characters), we are shortening the CLI target names from THUNDERBOARD to TB.
@screamerbg
this also makes so that the export directory setting is honored
this allows Qt Creator to build the generated project "out of the box",
enabling integration with the "Issues" list
Fixes #4196. As someone might not be aware that settting default_lib to small has
some implications regarding thread safety, therefore we print an error.
Allows mesh minimal example to compile with IAR.
Added the ability to specify a branch to update rather than a fork
Replaced print commands with the use of a logger
Updated the run_cmd functions in line with previous improvements
The function headers have been updated to follow the standard format
that should be being used for tools in mbed. This is a one line summary
followed by a descriptive block with more detail.
Updated the handling of the main function so that the logger becomes
global and thus works across all the functions. This has been tested
with both the fork and branch options, and for levels INFO and DEBUG.
When attempting to perform a test build of various mbed-os targets with
GCC configured to build -std=gnu++11, all of the targets built
successfully except for this one. It gave errors like this:
    ../mbed-os/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/wifi_emac/wifi_emac_api.cpp: In function 'emac_interface_t* wifi_emac_get_interface()':
    ../mbed-os/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/wifi_emac/wifi_emac_api.cpp:331:38: error: use of deleted function 'emac_interface::emac_interface()'
             _intf = new emac_interface_t();
                                          ^
    In file included from ../mbed-os/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/wifi_emac/wifi_emac_api.cpp:9:0:
    ../mbed-os/hal/emac_api.h:150:16: note: 'emac_interface::emac_interface()' is implicitly deleted because the default definition would be ill-formed:
     typedef struct emac_interface {
                    ^
    ../mbed-os/hal/emac_api.h:150:16: error: uninitialized const member in 'struct emac_interface'
    ../mbed-os/hal/emac_api.h:151:32: note: 'const emac_interface_ops_t emac_interface::ops' should be initialized
         const emac_interface_ops_t ops;

This commit contains a proposed change which fixes this issue by not
using the new operator to allocate the emac_interface_t structure but
instead using the malloc() function since the construction is being
handled explicitly in the subsequent lines of the
wifi_emac_get_interface() function anyway.

I also added code which only completes the initialization of the _intf
object if its allocation succeeds and just returns NULL otherwise.

I see no deallocation of the _intf object occurring so no change from
delete to free() needed to be made.
Before this patch, many warnings like below were generated
during compilation with ArmCC
[Warning] lwip_ethernet.h@57,0:  #3135-D: attribute does not apply to any entity

This happens here as ``--gnu`` option of ArmCC is being used, which
enables the GNU compiler extensions that the ARM compiler supports.

This is solve by adding a extra check on __CCARM .
This patch enable the LWIP feature for the LPC4088 and LPC4088_DM boards.
The lwIP stack support already this hardware.
See: ./features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c
The changes to build_api.py make the error happen when running things
like get_config.py
Allows development of small applications where stdio is avoided
targets/targets.json already added MCU_LPC11U35_501 as an extra label
but it didn't have LPC11U35_501 (without the MCU_ prefix). Both of
these target names are used as folder names to organize files
specific to this device. For example the LPC11U35.ld linker script used
by GCC_ARM for this target is located in a TARGET_LPC11U35_501 folder.

I switched to using inheritance to properly setup the target labels
based on @theotherjimmy comments on PR #4252. Everything in the
XADOW_M0 targe appears to have been copy/pasted from LPC11U35_501
anyway so inheritance seems to be the best way to set the values of
the XADOW_M0 properties.
Revert HRM1017 file source deletion

Added in small comment next to additions

Added mapping to BTN-labelled switches

Added mapping to USER_BUTTON-labelled switches

Undo incorrect mapping to SWIO pin in NORDIC target
@adbridge
Copy link
Contributor Author

adbridge commented May 5, 2017

/morph test-nightly

@adbridge
Copy link
Contributor Author

adbridge commented May 5, 2017

/morph mbed2-release

@adbridge
Copy link
Contributor Author

adbridge commented May 5, 2017

/morph export-build

@adbridge
Copy link
Contributor Author

adbridge commented May 5, 2017

/morph mbed2-release

@mbed-bot
Copy link

mbed-bot commented May 5, 2017

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph export-build

Output

mbed Build Number: 26

All exports and builds passed!

@mbed-bot
Copy link

mbed-bot commented May 5, 2017

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph mbed2-release

@mbed-bot
Copy link

mbed-bot commented May 5, 2017

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 159

Test failed!

@0xc0170
Copy link
Contributor

0xc0170 commented May 8, 2017

Restarting nightly, seems like one maxim target was disconnected, and nucleo f429 got 2 net errors that we have seen happen rarely and are under investigation

/morph test-nightly

@mbed-bot
Copy link

mbed-bot commented May 8, 2017

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 164

Test failed!

@adbridge
Copy link
Contributor Author

adbridge commented May 8, 2017

/morph test-nightly

@mbed-bot
Copy link

mbed-bot commented May 8, 2017

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 168

Test failed!

@adbridge
Copy link
Contributor Author

adbridge commented May 9, 2017

Another random failure, different to the last one!!
This time tests-mbed_hal-lp_ticker for K22F

@adbridge
Copy link
Contributor Author

adbridge commented May 9, 2017

/morph test-nightly

@mbed-bot
Copy link

mbed-bot commented May 9, 2017

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 170

All builds and test passed!

@adbridge
Copy link
Contributor Author

@theotherjimmy We don't tag the candidate with the release version. If for some reason we wanted to reproduce 5.4.5 this would cause issues with the script...Also this PR actually goes to 5.4 branch and IS the release-version: 5.4.5 so using the label here subverts its purpose :)

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.

None yet