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

Adding support for u-blox NORA-W30 series #147

Merged
merged 9 commits into from
Nov 25, 2022
Merged

Conversation

mazgch
Copy link
Contributor

@mazgch mazgch commented Nov 23, 2022

  • Adding u-blox NORA-W30 series
  • Pin are defined to match the EVK-NORA-W3
  • NORA-W3 series is based on RTL8720DF

u-blox NORA-W3 series modules

  • Dual-band Wi-Fi 4 and Bluetooth Low Energy 5
  • Dual-core Arm® Cortex®-M33 and -M23 compatible MCU
  • Powerful open CPU for advanced customer applications
  • Small footprint (10.4 x 14.3 x 1.9 mm), multiple antenna options, pin compatible with other NORA modules
  • Global certification


/* Digital pin mapping refer to g_APinDescription */
/* index into g_APinDescription --v */
#define D0 0 // PB_18
Copy link
Contributor

@M-ichae-l M-ichae-l Nov 24, 2022

Choose a reason for hiding this comment

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

The define name "D0" is very common, there may have multiple define warning or error.

Copy link
Contributor

@M-ichae-l M-ichae-l Nov 24, 2022

Choose a reason for hiding this comment

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

It is still OK to merge in to SDK. Can add some comments above the define for users

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 the quick reply, I could rename them to EVK_Dx or EVK_Ax to avoid this conflict and make sure the river to the pinout of the EVK. @M-ichae-l what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I revised this pull request for NORA-W30 and try to reuse the code from the RTL8720DF target from @daphwl as much as possible. While doing so I found some inconsistencies in the RTL8720DF target comments of variants.cpp as well as defines in boards.txt.

@daphwl and @M-ichae-l could you please review these changes to the RTL8720DF target as I am new to Realtek / Ameba?

Copy link
Contributor

@M-ichae-l M-ichae-l Nov 25, 2022

Choose a reason for hiding this comment

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

Thanks @mazgch !

  • Under Arduino IDE, "Ax" analog pin names are OK to use, as Arduino boards also use the name "Ax". For "Dx", Arduino does not use such name so that the IDE environment never protect the name define. Therefore "Dx" is easier to have multiple define warning or error. In our case, use "EVK_Dx" or "EVK_Ax" is good to resolve the issue. I suggest to continue use "Ax", it will not have any problem.
  • For "DRTL8722DM" it is link with libs, so we can not change it. I suggest to keep it.
  • For "DBOARD_RTL8720DF" it is used for IC

revise the pull request by bringing targets for RTL8720DF MCU in line

- fix a comment in the RTL8720DF variant of
- the NORA-W30 now has the identical linker and variants.cpp files
- fixed some defines in the boards.txt in RTL8720DF and NORA-W30 targets
- avoid using Dx defines and use EVK_Dx instead
@mazgch mazgch requested a review from M-ichae-l November 24, 2022 15:27
Copy link
Contributor

@M-ichae-l M-ichae-l left a comment

Choose a reason for hiding this comment

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

I have helped to rename all related folders and update the "board.txt". Once the "Dx" and "Ax" issue is resolved, we can process to merge the PR.

- change the Dx to EVK_Dx defines
- added additional comments to the pin names indicating NORA pads and its function
- somehow this file got lost in previous commit when i changed the variant.cpp of you other RTL8720DF target
@M-ichae-l M-ichae-l merged commit 8a1fc34 into Ameba-AIoT:dev Nov 25, 2022
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.

2 participants