Skip to content

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

Merged
merged 4 commits into from Nov 9, 2018
Merged

Add Support for TOSHIBA TMPM3HQ #8324

merged 4 commits into from Nov 9, 2018

Conversation

ghost
Copy link

@ghost ghost commented Oct 4, 2018

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

[ ] Fix
[ ] Refactor
[x] Target update
[ ] Functionality change
[ ] Breaking change

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 4, 2018

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.

Can you create an issue report please

@0xc0170 0xc0170 requested a review from ashok-rao October 4, 2018 11:42
@ghost
Copy link
Author

ghost commented Oct 4, 2018

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.

Can you create an issue report please

Created issue report #8326

Copy link
Contributor

@ashok-rao ashok-rao left a 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
Copy link
Contributor

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??

Copy link
Author

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
Copy link
Contributor

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?

Copy link
Author

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,

Copy link
Contributor

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?

Copy link
Author

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,
Copy link
Contributor

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.

Copy link
Author

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".

@ashok-rao
Copy link
Contributor

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.

Can you try updating your htrun https://github.com/ARMmbed/htrun#installation-from-python-sources I'd recommend installing latest htrun from sources..

@ghost
Copy link
Author

ghost commented Oct 5, 2018

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.

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.
But getting same error by executing single test command.

@ashok-rao
Copy link
Contributor

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..

@ghost
Copy link
Author

ghost commented Oct 9, 2018

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:

- Windows		: 8.1 pro – 64 bit
- Python		: 2.7.14
- Mbed-cli		: 1.8.2
- Greentea		: 1.4.0
- Mbedhtrun		: 1.4.1
- Pip			: 18.1
- Git Bash(git)		: 2.15.1.windows.2
- Mercurial(hg)		: 4.5

And traceback report we have attached in issue #8326 (comment)

@ashok-rao
Copy link
Contributor

@theotherjimmy .. any thoughts why htrun might be failing with unicode errors?

@ghost
Copy link
Author

ghost commented Oct 15, 2018

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.

@ashok-rao
Copy link
Contributor

I'm afraid this PR would need everything with the version of Mbed OS it was ported against @ganesh-ramachandran .. sorry about that!

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 24, 2018

@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.

@cmonr
Copy link
Contributor

cmonr commented Oct 24, 2018

@0xc0170 Yup! (Finally have bandwidth to)

@ghost
Copy link
Author

ghost commented Oct 25, 2018

@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 Only singletest has problem. Other than that no updates. Rebased.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 25, 2018

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
Copy link
Contributor

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the license header

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 25, 2018

I would like to test exporters (new device name, IAR) to check if we need an update in our CI

/morph export-build

@mbed-ci
Copy link

mbed-ci commented Oct 25, 2018

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 25, 2018

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

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 25, 2018

Created internal ticket IOTTESTINF-4538 for cmsis-pack update

@cmonr
Copy link
Contributor

cmonr commented Oct 25, 2018

@ganesh-ramachandran Would you happen to know exactly which CMSIS pack is needed for this new target?

@ghost
Copy link
Author

ghost commented Oct 26, 2018

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

Hi @0xc0170 IAR version 8.22 is required for TMPM3HQ. Hence removed from iar definitions.

@ganesh-ramachandran Would you happen to know exactly which CMSIS pack is needed for this new target?

https://www.keil.com/dd2/toshiba/tmpm3hqfdfg/

"is_disk_virtual": true,
"extra_labels": ["TOSHIBA"],
"macros": ["__TMPM3HQ__"],
"supported_toolchains": ["GCC_ARM", "ARM", "IAR"],
Copy link
Contributor

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.

Copy link
Contributor

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

@ashok-rao
Copy link
Contributor

@0xc0170 / @cmonr : This PR is looking good now - except for CMSIS pack update in our CI and IAR support removed in the PR (this comment..until 8.x support is available), it should be good to go through CI..also note the 1 failing GT test (#8326 )

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 5, 2018

IOTTESTINF-4538

The ticket is in progress, we will report back once the pack is in place. Sorry for the delay

Ganesh Ramachandran added 3 commits November 5, 2018 19:54
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 8, 2018

CI machine was updated.

/morph build

@mbed-ci
Copy link

mbed-ci commented Nov 8, 2018

Build : FAILURE

Build number : 3581
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8324/

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 8, 2018

Known issue with CI, we are investigating

@cmonr
Copy link
Contributor

cmonr commented Nov 9, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Nov 9, 2018

Build : SUCCESS

Build number : 3587
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8324/

Triggering tests

/morph test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Nov 9, 2018

@mbed-ci
Copy link

mbed-ci commented Nov 9, 2018

@0xc0170 0xc0170 merged commit 662b744 into ARMmbed:master Nov 9, 2018
@ghost ghost deleted the m3hq_new_target branch November 9, 2018 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants