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

OpenMote: Fixes and Improvements #1600

Merged
merged 5 commits into from
May 3, 2024
Merged

Conversation

kkrentz
Copy link
Contributor

@kkrentz kkrentz commented Jun 16, 2021

This PR includes some fixes and improvements to the OpenMote platform. In particular, I fixed #1733. Flashing an OpenMote-B now works without manual intervention:

make TARGET=openmote BOARD=openmote-b savetarget
make hello-world.upload && make login

@kkrentz kkrentz changed the title OpenMote: Restored a working version of antenna.c OpenMote-B: Fixed antenna configuration Jun 16, 2021
@kkrentz kkrentz changed the title OpenMote-B: Fixed antenna configuration OpenMote: Fixes and Improvements May 16, 2022
Makefile.include Outdated
@@ -498,6 +501,7 @@ viewconf:
@echo "----------------- Make variables: --------------"
@echo "##### \"TARGET\": ________________________________ $(TARGET)"
@echo "##### \"BOARD\": _________________________________ $(BOARD)"
@echo "##### \"BOARD_REVISION\": _________________________$(BOARD_REVISION)"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know anything about these parts of the build system but I think there's a space missing between the underscores and the board revision.

@pjonsson
Copy link
Contributor

I haven't read any guidelines but the formatting style in Makefiles for many platforms is pretty consistent with using two spaces for each nesting level of ifeq/ifdef.

@kkrentz
Copy link
Contributor Author

kkrentz commented May 18, 2022

Thank you for your feedback. I adapted things accordingly.

@simonduq
Copy link
Member

simonduq commented Aug 8, 2023

Hi!

This was my mistake, very sorry about it, re-opening this PR now.

What happened is the following: I was switching the base branch for this repository https://github.com/wittra/contiki-ng from develop to wittra. But accidentally, I made the change on the wrong repo (this repo) and instead of switching the base branch I renamed it. And somehow github deleted develop and closed all PRs...

Many apologies for this mishap 🙏; I haven't contributed in a while.. but now at least everybody got some notification from me :p

@kkrentz
Copy link
Contributor Author

kkrentz commented Dec 1, 2023

I have added an update to the cc2538-bsl tool. I realized that I always tested with a more recent version of it, which may have been the reason why my fix has not worked for everyone. Anyway, this newer version of cc2538-bsl works for both OpenMote-B and Rev.-A1 OpenMotes.

@pjonsson
Copy link
Contributor

pjonsson commented Dec 4, 2023

Unless I'm confusing PRs: I think this PR got stuck because different batches of the hardware has two behaviors for the same revision number, so Contiki-NG behaves correctly for some hardware, and others with the same revision run into #1733.

I have added an update to the cc2538-bsl tool.

Please make a separate PR for that, I think that should be fairly easy to get merged.

@kkrentz
Copy link
Contributor Author

kkrentz commented Dec 4, 2023

Unless I'm confusing PRs: I think this PR got stuck because different batches of the hardware has two behaviors for the same revision number, so Contiki-NG behaves correctly for some hardware, and others with the same revision run into #1733.

I resembled the pin configuration of RIOT-OS and had no more issues since then. Something to watch out for is to correctly set TARGET, BOARD, and BOARD_REVISION, e.g., make TARGET=openmote BOARD=openmote-b savetarget.

I have added an update to the cc2538-bsl tool.

Please make a separate PR for that, I think that should be fairly easy to get merged.

Opened #2806

@arurke
Copy link
Member

arurke commented Apr 24, 2024

I am not using OpenMote but the changes seem reasonable and I note at least two other people have tested/cherry-picked with at least one positive feedback that it solves the issues. The PR also fixes what seems to be a fundamental issue for the boards in #1733 so I am giving it 👍 to hopefully get it moving.

@kkrentz do you mind rebasing so that we get it updated and have the CI re-run

@nvt nvt merged commit ee9fbbe into contiki-ng:develop May 3, 2024
24 checks passed
@kkrentz kkrentz deleted the antenna-pr branch May 4, 2024 14:49
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.

Unable to flash Openmote-b
6 participants