-
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
Support for the NUCLEO_G0B1RE board #15199
Conversation
@majcher, thank you for your changes. |
f7b6f36
to
f70e317
Compare
This is OK on my side Note that we need to update local mbedls database: |
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.
Very good!
Maybe I can suggest to try this command:
python targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py -t NUCLEO-G0B1RE
to verify PeripheralPins.c and PinNames.h
targets/targets.json
Outdated
"mbed_rom_start": "0x08000000", | ||
"mbed_rom_size": "0x80000", | ||
"mbed_ram_start": "0x20000000", | ||
"mbed_ram_size": "0x24000", |
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.
Maybe this part could be removed ?
(same info available with "device_name": "STM32G0B1RETx")
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.
Yes, thanks, it works without it now. I added it when I had a non-matching device name with an index.json file and there were some errors related to these attributes.
Thanks! I used the generated ones. I only had to fill in the |
All tests are passing @jeromecoutant ? |
CI started |
Please @majcher maybe you can add a test report ? |
Do you mean: I cannot get it running as it keeps printing that the device is not supported, even after adding to mbedls locally.
Is there anything else we need to do in order to get it supported like other targets? |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
To be honest, I don't understand why this is working for you... |
Thanks. Is there anything left here or are we're good to merge? |
But why this doesn't work for you... ? PS: I made some tests on my side, I can make a PR, but maybe you could add a new line ther: Thx |
Good question. Where should the .mbedls-mock file be located - the root of the mbed-os project? I tried here and also user home, but still it doesn't detect it when I run I'm running:
Done, thanks! One more issue disappeared ;) |
Is there anything else left in the scope of this PR? I have another one in a queue for this board related to CAN support, but I prefer to have this merged first. |
@majcher almost all is done, just a new target requires to have test results attached as part of the pull request (test proof). Please execute the tests on your board (I hope the problems with ls and test commands could be resolved). |
@0xc0170 @jeromecoutant Here it is: Unfortunatelly, it seems that there are some issues with Flash as few tests are failing in this area. I'd be glad if you could hint me on where the problems could be or how to debug this. |
You can run flashiap to find out where it is failing and debug what is going on and just write an application to debug it in detail. One way would be to disable flash and create a tracking issue to enable it later once it's fixed. @jeromecoutant any suggestions? |
Yes, .mbed files is a nightmare...
I see the issue. STM32G0Bxx are dual bank. I am correcting it right now |
@jeromecoutant thanks! It works now:
I'll rebase this PR after your changes are merged. |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
Awesome ! #15204 was merged, please rebase and we start CI soon. |
25c1fe3
to
6263af9
Compare
Rebased - now all tests are 'green': a full report below: |
CI restarted |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Support for the NUCLEO_G0B1RE board
Documentation
None
Pull request type
Test results
I need some help here.
mbed test -m NUCLEO_G0B1RE -t GCC_ARM
provides an info that the new target is not supported, but when I do the same changes with custom_targets.json it works fine for sample app.