Skip to content

Add IM880B as a new target platform #10681

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

Closed

Conversation

itziardelatorre
Copy link
Contributor

Description

Adds IM880B as a new platform.

The iM880B is a compact and low-cost radio module that operates in the unlicensed 868 MHz band and combines a powerful Cortex-M3 controller with the new LoRa® transceiver SX1272 of Semtech Corporation.
More details available at https://wireless-solutions.de/products/radiomodules/im880b-l.html

Please find attached the corresponding test results.
2019-05-24-TESTS_IM880B.zip

Pull request type

[ ] Fix
[ ] Refactor
[X] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

Release Notes

@ciarmcom ciarmcom requested a review from a team May 27, 2019 17:00
@ciarmcom
Copy link
Member

@itziardelatorre, thank you for your changes.
@ARMmbed/mbed-os-maintainers @ARMmbed/mbed-os-tools please review.

@ciarmcom ciarmcom requested a review from a team May 27, 2019 17:00
@0xc0170 0xc0170 requested a review from MarceloSalazar May 28, 2019 09:44
@0xc0170
Copy link
Contributor

0xc0170 commented May 28, 2019

Please review Travis, device_name not found?

@itziardelatorre
Copy link
Contributor Author

Could you please give me more details about the information that is missing?
The new target information is added in target.json and the corresponding TARGET folder has been added too. Is any modification in the travis files also required?

@itziardelatorre
Copy link
Contributor Author

device_name updated.

Could you please run the tests again?

@0xc0170
Copy link
Contributor

0xc0170 commented May 31, 2019

Seems travis passed, I'll run CI soon

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

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

Styling changes requested, otherwise it looks fine


//Standardized button name
SW1 = PB_15,
BUTTON1 = SW1,
Copy link
Contributor

Choose a reason for hiding this comment

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

small style change - some pins are not aligned - can you fix that ? It will cause "space style errors" in the future that we should avoid

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Styling changes fixed.

/* mbed Microcontroller Library
*******************************************************************************
* Copyright (c) 2016, STMicroelectronics
* All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand these files were copied from elsewhere or other target. Can you add SPDX identifier for new files (we should still fix the old files). If you look at SPI.h or other files in platform folder, they contain

SPDX-License-Identifier: Apache-2.0 , in this case it would be BSD I believe. please add to the new files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your feedback.

Is the "SPDX-License-Identifier: BSD-3-Clause" identifier correct?
Is this only for the "PeripheralPins.c" file required?

Copy link
Contributor

Choose a reason for hiding this comment

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

Any new file should contain it (it's stated in our license docs guide).

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, BSD-3-Clause should be the one for this file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SPDX-License-Identifier added

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 3, 2019

Can you change the commit msg - not all of them are being about "adding new platform" but rather fixing the platform - first line could be "IM880B: fix style" or similar

@itziardelatorre
Copy link
Contributor Author

I added in the second line the details. E.g.

"Add IM880B as a new target platform

  • SPDX-License-Identifier added"

Is this not enough?

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 3, 2019

I would propose to have first commit as it is "Add IM880B as a new target platform" but the following commits to contain first lines to reflect what has changed. Simple git rebase -i should do the trick quickly to edit commit msgs for the last 3 commits.

If you need assistance , let us know

@itziardelatorre
Copy link
Contributor Author

I have modified the last message. Could you please continue with the PR?

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 3, 2019

What is the merge commit, can you remove that one please? This does not require any merge commits (should not contain them).

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 3, 2019

I've rebased this here https://github.com/0xc0170/mbed-os/pull/new/new_target_IM880B (I can push to your branch if this looks good)

@itziardelatorre
Copy link
Contributor Author

This looks fine. Thanks.

@0xc0170 0xc0170 force-pushed the new_target_IM880B branch from 2f7473a to b3e4e4c Compare June 3, 2019 12:29
@0xc0170
Copy link
Contributor

0xc0170 commented Jun 3, 2019

Your branch was updated, will start CI once CI is fixed (there's currently internal issue)

@itziardelatorre
Copy link
Contributor Author

Many thanks for your support

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 4, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jun 4, 2019

Test run: FAILED

Summary: 6 of 7 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_mbed2-build-ARM
  • jenkins-ci/mbed-os-ci_build-IAR
  • jenkins-ci/mbed-os-ci_mbed2-build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-ARM
  • jenkins-ci/mbed-os-ci_mbed2-build-IAR

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 4, 2019

CI was aborted, restarted again

@mbed-ci
Copy link

mbed-ci commented Jun 4, 2019

Test run: FAILED

Summary: 1 of 7 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARM

@itziardelatorre
Copy link
Contributor Author

The last test failed. Is any update from my side required?

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 5, 2019

@itziardelatorre Please review build artifacts. ARM fails with errors:

        Link: /usr/local/armcc6.11/bin/armlink --via ./BUILD/tests/IM880B/ARM/./TESTS/network/l3ip/.link_options.txt
        [DEBUG] Return: 1
        [Warning] @0,0: L3912W: Option 'legacyalign' is deprecated.
        [Error] @0,0: L6218E: Undefined symbol Image$$ARM_LIB_STACK$$ZI$$Base (referred from BUILD/tests/IM880B/ARM/platform/mbed_retarget.o).
        [Error] @0,0: L6218E: Undefined symbol Image$$ARM_LIB_STACK$$ZI$$Length (referred from BUILD/tests/IM880B/ARM/rtos/TARGET_CORTEX/TOOLCHAIN_ARM_STD/mbed_boot_arm_std.o).
        [DEBUG] Errors: Warning: L3912W: Option 'legacyalign' is deprecated.
        [DEBUG] Errors: Error: L6218E: Undefined symbol Image$$ARM_LIB_STACK$$ZI$$Base (referred from BUILD/tests/IM880B/ARM/platform/mbed_retarget.o).
        [DEBUG] Errors: Error: L6218E: Undefined symbol Image$$ARM_LIB_STACK$$ZI$$Length (referred from BUILD/tests/IM880B/ARM/rtos/TARGET_CORTEX/TOOLCHAIN_ARM_STD/mbed_boot_arm_std.o).

Some symbols from boot sequence are missing in the linker script file?

@itziardelatorre
Copy link
Contributor Author

Thanks for the information. I have updated the settings for the ARM compiler.

@itziardelatorre
Copy link
Contributor Author

Is there any input from my side required to continue with the CI?
Thanks in advance.

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 7, 2019

Is there any input from my side required to continue with the CI?

Please rebase, recent merge causing the conflicts now. we will retrigger CI (I actually was faster with CI rebuild than realizing there's merge conflict)

@itziardelatorre
Copy link
Contributor Author

Please let me know if the update does not fix the conflict

@itziardelatorre
Copy link
Contributor Author

Could you please confirm me if the conflict has been fixed?
Thanks.

@itziardelatorre
Copy link
Contributor Author

Is there any input from my side required to continue with the CI?

Please rebase, recent merge causing the conflicts now. we will retrigger CI (I actually was faster with CI rebuild than realizing there's merge conflict)

Could you please confirm me if the conflict has been fixed?
Thanks.

@itziardelatorre
Copy link
Contributor Author

@0xc0170 Could you please confirm me if the conflict has been fixed?
Is there any other issue open?

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 4, 2019

@0xc0170 Could you please confirm me if the conflict has been fixed?

It still reports the conflict. Have you pushed to your branch? I don't see any new commit

@itziardelatorre
Copy link
Contributor Author

@0xc0170 Thanks for your quick feedback.
Could you please check it again? I hope that the conflict is solved now.

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 4, 2019

The latest commit looks incorrect to me (contains changes already on master) therefore there are conflicts.

@itziardelatorre
Copy link
Contributor Author

How could I solve the conflicts? I have updated the last target.json from master with the new target information "IM880B".
What is the reason for the conflicts?

@0xc0170 0xc0170 force-pushed the new_target_IM880B branch from d54cf18 to b3e4e4c Compare July 4, 2019 11:57
@0xc0170
Copy link
Contributor

0xc0170 commented Jul 4, 2019

I am rebasing this locally. The history looks wrong (line endings incorrect and the latest merges to resolve conflicts - rather use git rebase ).

@0xc0170 0xc0170 force-pushed the new_target_IM880B branch from 9dc3a1f to b3e4e4c Compare July 4, 2019 12:13
@itziardelatorre
Copy link
Contributor Author

Thanks for your support. Please let me know if you need any input from my side.

@0xc0170 0xc0170 force-pushed the new_target_IM880B branch from da9a335 to b3e4e4c Compare July 4, 2019 12:29
@0xc0170
Copy link
Contributor

0xc0170 commented Jul 4, 2019

I tried to clean it but still failing to get this conflict locally. I removed one commit that seemed to just change encoding of the files. I think the best would be to create new PR with clean history.

I can see here targets.json has most probably tab but locally I see spaces 🤕 I'll close this and @itziardelatorre please create new PR from a new branch, much easier.

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 5, 2019

Resolved via #10972

@0xc0170 0xc0170 closed this Jul 5, 2019
@itziardelatorre itziardelatorre deleted the new_target_IM880B branch July 10, 2019 08:54
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.

4 participants