-
Notifications
You must be signed in to change notification settings - Fork 3k
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 NUCLEO_WB55RG support #9814
Conversation
@LMESTM, thank you for your changes. |
We are missing tests logs shared, please add them. |
First test report - CI test shield tests ALL OK.
|
features/FEATURE_BLE/targets/TARGET_STM/TARGET_NUCLEO_WB55RG/hw.h
Outdated
Show resolved
Hide resolved
@0xc0170 Hi Martin, I'm looking for some guidance about my issue with ARM toolchain. In STM32WB55RG, there is a section in shared memory that is used to communicate with the BLE sub-system.
This section is actually being used when FEATURE_BLE is active. the problem with ARM is that I get an error when compiling for MBED2 because the BLE feature is not compiled. I'd like to introduce a condition which allows to distinguish between OS2/OS5 or between BLE/not BLE in the linker script, but I could not find my way so far. I tried using
but it won't be defined in mbed-os case either in the context of the linker script. Any idea how I could / should implement this ? EDIT: SOLVED with Martin support: no need to use the +First attribute as the alphabetical order will ensure that MAPPING_TABLE is placed before MB_MEM1 : tested OK and branch updated. |
What is the error ? Why does it fail? |
In mbed2, it will report:
Because without BLE feature, there is no content fitting into the MAPPING_TABLE section, so this is empty and this seems not supported for a section with +FIRST attribute. |
MBED2 test results for IAR and GCC_ARM - ARM (and µARM) FAILs for now because of scatter file issue, as being discussed ... Test summary:
| OK | NUCLEO_WB55RG | GCC_ARM | DTCT_1 | Simple detect test | 0.48 | 10 | 1/1 | |
And the mbed-os 5 results. The BLE timeout cases in ARM TC are related to the mbed2 / linker script problem I've raised : I have tried to make the Shared Memory section conditional and I haven't succeeded, so the shared memory section is missing in this ARM build. Updated with last commit:
TOTAL: |
targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xG/device/TOOLCHAIN_ARM_MICRO/stm32wb55xx.sct
Outdated
Show resolved
Hide resolved
2d249d0
to
d91cc65
Compare
Note, #9571 - might have implications for new targets. Please review (there's design document, and targets updated, if any questions, let us know). In any case, please reply to this comment if this change is already done or when completed. |
d91cc65
to
2cf0719
Compare
One comment about MBED2 testing, I have rebased on top of master and there seems to be issues with building MBED2 with uARM toolchain. |
@ARMmbed/mbed-os-core ^^^ |
@LMESTM Would it be worth looking into the Python issues while the team gets a chance to look this over? |
@deepikabhavnani Thanks - I'm good as this is clearly already known and addressed :-) @cmonr About python issues, I guess you're referring to travis-ci/tools-py2.7errors ? It says the device name is not known. Where does the list of known device come from ? |
@LMESTM From the docs: |
I think it is valid, but this target has been officially published only last week. I don't know how much time it'll take to get into the CMSIS pack and then from CMSIS pack to mbed-os ? |
When doing so, do not disbale GPIO clocks as they may be used by other drivers ! As a result, debug will be disabled by default, but can be enabled by either modifying code or selecting MBED debug profile.
Typically the RTC clock is configured by RTC driver itself. RNG on the other hand is shared with M0+ core and it is expected that M4 turns it on at boot time.
Internal channels use is enabling ADC "internal path" which needs to be disabled after measurement. Same applied here for WB family as was done for others in ARMmbed#10143.
I was planning to wait for merge, then send separate PRs for supporting deep sleep mode and add few other side fixes, but considering the situation, I've rebased on top of mbed/mater an added few more commits to this PR. This update includes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validated on the BLE side. Thanks @paul-szczepanek-arm
CI started |
@ashok-rao Please review |
Special thanks to @paul-szczepanek-arm ! |
Test run: SUCCESSSummary: 13 of 13 test jobs passed |
@0xc0170 Is there anything blocking the merge now ? |
I would like to have @ashok-rao review, let me check with him again today and make this ready asap. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from a new target perspective. Thanks @LMESTM
|
Description
Here is the first Pull request to enable STM32WB55 support.
https://www.st.com/en/microcontrollers-microprocessors/stm32wb55rg.html
This port includes BLE support with CORDIO stack.
Pull request type
Reviewers
@jeromecoutant @pan- @screamerbg @avilei
Release Notes
Tests are ongoing but feedback and review are welcome already.