-
Notifications
You must be signed in to change notification settings - Fork 56
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
Stm32duino changes #58
Open
matthijskooijman
wants to merge
4
commits into
STMicroelectronics:main
Choose a base branch
from
matthijskooijman:stm32duino-changes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Stm32duino changes #58
matthijskooijman
wants to merge
4
commits into
STMicroelectronics:main
from
matthijskooijman:stm32duino-changes
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It seems the comment for GetDevAddress was copied from GetUniqueId, but not changend sufficiently to be correct.
These warnings are caused because frequencies are stored as `uint32_t`, which is `unsigned long`, while the printf format expects `int`. In practice, this does not actually cause problems, since on STM32 gcc `long` and `int` are both 32-bits and frequencies are never large enough to cause signed vs unsigned ambiguity. Since printf has no format specifiers for e.g. uint32_t (libc does have some macros for this, but those really hurt readability), this is tricky to fix in a portable way (other architectures or compilers might have `uint32_t` equal to `unsigned int` instead of `unsigned long`), this fix just casts the frequency to `unsigned` before passing it to printf (and for good measure, also convert the specifier from `%d` to `%u`). This does mean this printing will break if `int` is not at least 32-bits (e.g. on AVR), but given the scope of this library, that should be acceptable.
This adds some more details about RX and TX bytes and TX config. There is also some code for RX config, but to minimize the impact on RX timing, that is commented out.
Hello @matthijskooijman Thank you for this report. We will get back to you as soon as we analyze it further. This may take some time. Thank you for your comprehension. With regards, |
ST Internal Reference: 152303 |
ASELSTM
added
the
internal bug tracker
Issue confirmed and reported into a ticket in the internal bug tracking system
label
May 17, 2023
ALABSTM
added
bug
Something isn't working
mw
Middleware-related issue or pull-request.
labels
Aug 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
internal bug tracker
Issue confirmed and reported into a ticket in the internal bug tracking system
lorawan
LoraWAN-related issue or pull-request.
mw
Middleware-related issue or pull-request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While developing the STM32LoRaWAN Arduino library, which includes a part of the code from this repository, I made a couple of small changes to it, to fix warnings, documentation and ease debugging.
I've included these changes in this pull request. They are essentially three independent changes, put into separate commits. If needed, I can split them out into separate pull requests, but I thought it might be better to first show these and let you consider if you want to include any or all of them at all before I go to that additional effort.
This is a resubmit of #57, but I confirmed permission to submit this contribution from my contact at ST, so I now signed the individual CLA.