-
Notifications
You must be signed in to change notification settings - Fork 34
Add target C030_R412M #23
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
Can one of the admins verify this patch? |
Anything u-blox can do on this pull request ? @MarceloSalazar |
Hi @wajahat-ublox we only accept board specific configuration on this example. mbed-os lib hash is maintained by Arm team and always point to some official release tag. |
@yogpan01 Yes the hash is for mbed-os 5.13.4 release. I am getting build error with the mbed-os version set in this repository. |
mbed-os.lib
Outdated
@@ -1 +1 @@ | |||
https://github.com/ARMmbed/mbed-os/#7482462434d5cf718177653ef797547a976a7c5e | |||
https://github.com/ARMmbed/mbed-os/#1bf6b20df9d3cd5f29f001ffc6f0d0fcbbb96118 |
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.
Master is now on 5.14.0 so this is not needed.
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.
I will test again on 5.14 and remove this.
mbed_app.json
Outdated
"UBLOX_C030_R412M": { | ||
"target.macros_add" : ["MBEDTLS_USER_CONFIG_FILE=\"mbedTLSConfig_mbedOS.h\""], | ||
"target.network-default-interface-type" : "CELLULAR", | ||
"target.bootloader_img" : "bootloader/mbed-bootloader-ublox_c030_r412m-block_device-kvstore-v1.0.0.bin", |
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.
This version usually has been pointing to mbed-bootloader version, I presume this is not that old?
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.
We were not aware of the naming convention followed but yes bootloader was created recently with version v4.0.3. I will rename it. Can you share what naming convention is followed generally?
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.
It's not been documented anywhere, as far as I know. Need to add this to the backlog of things and get it sorted.
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.
Internal ref; https://jira.arm.com/browse/IOTSTOR-942
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.
How big images are on this target? It is possible to fit it to internal flash with the update, or does it require significant space for the stack?
@teetak01 |
These examples definately are not for product-level examples, but for simplest on-boarding. Minimizing the dependencies (like external storage) simplifies this. Also removing dependency to external storage also makes the binary much smaller as it does not need to pull in sd-driver. But I am fine either way. |
@teetak01 @JanneKiiskila If i understand correctly, the test cases uses connect APIs to do a POST on resource 5000/0/1. I checked the printf logs and it seems that POST was received and executed successfully:
However the test case times out and generates failure. I am attaching complete log as well.
|
@wajahat-ublox
This is suspicious and lets me think that there might be a problem with the network. Can you please run the integration tests that we've introduced in Mbed OS 5.14? |
@MarceloSalazar |
It is quite possible that the POST response to the server did not leave the device before it disconnected the network. We did similar fix for mbed-cloud-client-example, but we need to see if we want to add a bit more complexity here: https://github.com/ARMmbed/mbed-cloud-client-example/blob/master/main.cpp#L135-L139 |
@teetak01 |
@MarceloSalazar Integration tests are passing. Please rename the file to .html. @teetak01 After using |
Yes, we need to get this callback approach fixed to the example. |
3eb6788
to
7191ab3
Compare
I have run complete suite with mbed-os 5.14 (this commit) and tests are passing. Changes in PR itself are only name change of bootloader file. The other changes i had to make are in main.cpp for which diff is attached in previous comment. |
@wajahat-ublox thanks for verifying. We already made a PR to fix this in the application #31 |
Is there anything that is to be done from our side on this PR? |
build-only |
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.
You could still add line to the README about this new target with "Build-only" note in the end.
run-ci |
@wajahat-ublox can you rebase this and update the README? |
build-only |
Test run: FAILEDFailed to build following targets: posted-by-tag: https://jenkins-client.isgtesting.com/job/mbed-os-example-pelion/ |
@wajahat-ublox I tested the compilation locally at it passed, so this mostly just requires rebase. |
@teetak01 https://github.com/wajahat-ublox/mbed-os-example-pelion/tree/target_c030_r412m Also i compiled with GCC_ARM, ARMC5 and ARMC6 and it was successful. Not sure why CI is reporting build errors? |
https://github.com/wajahat-ublox/mbed-os-example-pelion/tree/target_c030_r412m gives 404, so perhaps we do not have access to it? I can't access https://github.com/wajahat-ublox/mbed-os-example-pelion/ either. |
@JanneKiiskila My fork is still showing as private as i forked when this repo was private but now this repo is public? |
@JanneKiiskila I have made it public still PR is not getting updated. Also i am randomly getting OOPS 500 error page while refreshing my PR and some other PRs as well |
Closing. Already merged via #66 |
Added support for C030_R412M board. Example is running and tests are passing as well.
Some issues are under discussion here.
2019-09-13_160248.zip