-
Notifications
You must be signed in to change notification settings - Fork 3k
Made saml21 target run on mbed5 #7276
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
Conversation
@0xc0170 and @ashok-rao this PR was requested by @janjongboom |
@@ -3366,7 +3366,7 @@ | |||
"SAML21J18A": { | |||
"inherits": ["Target"], | |||
"core": "Cortex-M0+", | |||
"macros": ["__SAML21J18A__", "I2C_MASTER_CALLBACK_MODE=true", "EXTINT_CALLBACK_MODE=true", "USART_CALLBACK_MODE=true", "TC_ASYNC=true"], | |||
"macros": ["__SAML21J18A__", "I2C_MASTER_CALLBACK_MODE=true", "EXTINT_CALLBACK_MODE=true", "USART_CALLBACK_MODE=true", "TC_ASYNC=true", "CMSIS_VECTAB_VIRTUAL", "CMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\""], | |||
"extra_labels": ["Atmel", "SAM_CortexM0P", "SAML21"], |
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.
release_versions is missing if you want to add support for OS 5. Also, why RTOS support is removed via .mbedignore?
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.
why RTOS support is removed via .mbedignore?
as we don't use RTOS for our project and it was failing with:
Compile [ 0.3%]: main.cpp
[Fatal Error] mbed_rtx_conf.h@25,22: mbed_rtx.h: No such file or directory
[ERROR] In file included from ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Config/RTX_Config.h:31:0,
from ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Include/rtx_evr.h:31,
from ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_lib.h:38,
from ./mbed-os/rtos/TARGET_CORTEX/mbed_rtos_storage.h:43,
from ./mbed-os/rtos/rtos.h:28,
from ./mbed-os/mbed.h:20,
from ./main.cpp:1:
./mbed-os/rtos/TARGET_CORTEX/mbed_rtx_conf.h:25:22: fatal error: mbed_rtx.h: No such file or directory
#include "mbed_rtx.h"
^
compilation terminated.
Once you get the RTOS sorted, could you post results of |
There will be a follow up PR with RTOS support. Do you want to hold off from landing this before it's sorted out? |
@janjongboom In order for this to pass tests in Mbed 5, RTOS support is needed. |
I added mbed_rtx.h for saml21. With stack pointer to end of ram. Base address is 0x20000000 and ram size is 32k I set it to 0x20008000UL. That should be all isn't it? It is still untested. I will test it in the coming days (it is a side project for me). The only file I needed to put into mbedignore to make it compile is:
Any ideas what issue that might be? |
Running |
After removing the conflicting math macros I can compile without mbedignores. Now the test tries to connect the device, which obviously does not succeed because it don't have it here with me at the moment. @0xc0170 and @ashok-rao But how it would find the device? How does this work and how can I make it supported? |
@martinichka The tool that we use to detect targets is called mbed-ls. You should submit a PR here: https://github.com/ARMmbed/mbed-ls/pulls |
@martinichka Any updates? Need any help anywhere? |
No updates yet, sorry. I had no time to work on it yet .
The board I need to enable is
https://www.microchip.com/developmenttools/ProductDetails/atsaml21-xpro-b
What would be the steps I should take to make it compatible with mbed-ls?
…On Tue, 3 Jul 2018 at 14:47, Cruz Monrreal ***@***.***> wrote:
@martinichka <https://github.com/martinichka> Any updates? Need any help
anywhere?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7276 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJnOlS8t3RWP9J_55wViGtQlw8pvbY9Yks5uC2f6gaJpZM4UvH-F>
.
|
@martinichka You'll need to open a pull request to https://github.com/ARMmbed/mbed-ls and add support for your board. Once it's in and mbed-ls has been released, then we can update CI with the latest version and revisit this PR. |
@martinichka When running with RTOS on it errors out for me at |
The
|
I have not run it with RTOS, so no
…On Fri, 3 Aug 2018 at 15:39, Jan Jongboom ***@***.***> wrote:
@martinichka <https://github.com/martinichka> When running with RTOS on
it errors out for me at Mutex 0x20000c94 error -8: Unknown. Have you seen
that before?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7276 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJnOlbdjSVCO-DR9F1vrRsV9JWXuXiloks5uNFKAgaJpZM4UvH-F>
.
|
@martinichka FYI, ARMmbed/mbed-ls#384 - will take a stab at it next week. |
@martinichka @janjongboom Any updates? |
@cmonr No, unfortunately not; and I don't have the target with me right now... |
@cmonr @martinichka mbed-ls PR is now open ARMmbed/mbed-ls#390 Trying to run the tests but nothing seems to run on the fresh board that I got... Will check when back in Netherlands. |
@martinichka RTOS working here: https://github.com/janjongboom/mbed-os/tree/feature-saml21-mbed5-rebased - now about to run the tests. |
@janjongboom Any update on the tests? |
As this require further work, please update us (reopen pull request once there is an update we can review). In the meantime, we close this PR due to inactivity. |
@cmonr Yes, some issues with the test runner on the board. Just hangs sometimes, that makes it hard. Will get back to this when back from travelling. |
Description
Last bits to make SAM L21 being supported in mbed5 (mbed2 was already working fine).
Open issues:
Pull request type