-
Notifications
You must be signed in to change notification settings - Fork 3k
Add Support for TOSHIBA TMPM3HQ #8324
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 you create an issue report please |
Created issue report #8326 |
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.
Thanks @ganesh-ramachandran ..left some comments.
@@ -0,0 +1,284 @@ | |||
/* mbed Microcontroller Library |
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.
@ganesh-ramachandran : I see the SPI API implemented but don't see the pin definitions in PinNames.h .. any reason??
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.
Hi @ashok-rao, added the SPI pin definitions in PinNames.h
/* Linker script to configure memory regions. */ | ||
MEMORY | ||
{ | ||
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K |
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 didn't find the "MBED_APP_START" macro.. any reason not to have this defined in all the 3 toolchain's linker descriptions?
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.
Hi @ashok-rao, added "MBED_APP_START" macro in all 3 toolchain's linker descriptions.
SW2 = PV1, | ||
SW3 = PV2, | ||
SW4 = PV3, | ||
|
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.
@ganesh-ramachandran : No SPI pins brought out on the board?
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.
Hi @ashok-rao, added the SPI pin definitions in PinNames.h
SW1 = PV0, | ||
SW2 = PV1, | ||
SW3 = PV2, | ||
SW4 = PV3, |
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.
Can you please create an alias for "USER_BUTTON" just to maintain consistency with other mbed targets? Thanks.
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.
Hi @ashok-rao, added the alias for "USER_BUTTON".
Can you try updating your htrun https://github.com/ARMmbed/htrun#installation-from-python-sources I'd recommend installing latest htrun from sources.. |
Installed the latest htrun from given link. |
Strange.. That unicode error should not be present in the latest build of htrun.. can you try updating your greentea as well? It's most probably a python issue somewhere rather than the implementation.. |
Hi @ashok-rao, we have updated the greentea as well as all the tools but getting same error. Below is the versions of different tools:
And traceback report we have attached in issue #8326 (comment) |
@theotherjimmy .. any thoughts why htrun might be failing with unicode errors? |
Hi @ashok-rao since htrun/single test having issues with latest mbed, could we post the results of single test with mbed v5.9.6 to progress this PR. |
I'm afraid this PR would need everything with the version of Mbed OS it was ported against @ganesh-ramachandran .. sorry about that! |
@ganesh-ramachandran Getting back to this . Is there any update? Tests are passing as I understood. Only singletest.py problem was there (@cmonr reminder to review the referenced issue above). This needs a rebase. |
@0xc0170 Yup! (Finally have bandwidth to) |
@0xc0170 Only singletest has problem. Other than that no updates. Rebased. |
As this new target is only for Mbed OS 5, the singletest issue should not gate this. I'll review shortly. @ashok-rao is OoO this week, expecting a review early next week (or @MarceloSalazar can review instead?) |
@@ -0,0 +1,13 @@ | |||
/* mbed Microcontroller Library - CMSIS for TMPM3HQ |
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.
Should be the same license header as in other files targets/TARGET_TOSHIBA/TARGET_TMPM3HQ/gpio_api.c .
Also cmsis_nvic.h
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.
Updated the license header
I would like to test exporters (new device name, IAR) to check if we need an update in our CI /morph export-build |
Exporter Build : FAILUREBuild number : 3080 |
I'll request new cmsis pack for this device. What IAR version is required ? If it is not supported in IAR 7.8, we should remove this from iar definitions. Until we get IAR 8.x support |
Created internal ticket IOTTESTINF-4538 for cmsis-pack update |
@ganesh-ramachandran Would you happen to know exactly which CMSIS pack is needed for this new target? |
Hi @0xc0170 IAR version 8.22 is required for TMPM3HQ. Hence removed from iar definitions.
|
"is_disk_virtual": true, | ||
"extra_labels": ["TOSHIBA"], | ||
"macros": ["__TMPM3HQ__"], | ||
"supported_toolchains": ["GCC_ARM", "ARM", "IAR"], |
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.
@ganesh-ramachandran : If we are removing IAR support until mbed OS supports IAR 8.x, then "IAR" from supported_toolchains should be removed too. Thanks.
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.
@ganesh-ramachandran : If we are removing IAR support until mbed OS supports IAR 8.x, then "IAR" from supported_toolchains should be removed too. Thanks.
It should compile it (needs core), so can stay as it is, just definition removal
The ticket is in progress, we will report back once the pack is in place. Sorry for the delay |
Since not supported in IAR 7.8, removed from iar definitions.
CI machine was updated. /morph build |
Build : FAILUREBuild number : 3581 |
Known issue with CI, we are investigating |
/morph build |
Build : SUCCESSBuild number : 3587 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 3197 |
Test : SUCCESSBuild number : 3363 |
Description
Add mbed support for TOSHIBA's TMPM3HQ board
Tested with all toolchains and test results are attached.
M3HQ_GreenteaAutomated_TestResults.txt
In single test, we are getting error
TypeError: coercing to Unicode: need string or buffer, list found
from version 5.10 and master. No error in version 5.9.Pull request type