Skip to content

Conversation

@RobMeades
Copy link
Contributor

@RobMeades RobMeades commented Nov 1, 2016

After merge of mbed-os pull request 3011 , this pull request adds the necessary hook files to use htrun tests on the SARA_NBIOT_EVK target (since the target does not currently include a magic chip).

@RobMeades
Copy link
Contributor Author

@bridadan any comment?

Copy link
Contributor

@bridadan bridadan left a comment

Choose a reason for hiding this comment

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

Sorry for the delay! Just a few questions, please see below.

'-c',
'A',
'-s',
'0xD7000',
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 clarify a bit what these numbers are? Are they specific for a board? Are they generic?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are specific to a board but today we only have one board that requires such test hooks (the SARA_NBIOT_EVK target). I didn't want to add any unnecessary complication by introducing some form of board switch in there.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the clarification. Can you also comment on FlashErase.exe? Is this part of JLink or another program?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FlashErase.exe is another of the proprietary files, not part of JLink but used to load code onto the target.

# JLINK.exe --CommanderScript aCommandFile
cmd = [self.JLINK,
'-CommanderScript',
r'reset.jlink']
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not that familiar with JLINK. Is reset.jlink a file? Does it need to be in your working directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, there are a few proprietary files required to actually do the download/reset given these hooks. We only need the hooks in here though, the proprietary files themselves can be provided separately.

Copy link
Contributor

Choose a reason for hiding this comment

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

@RobMeades Can you please add description for these files in README.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mazimkhan certainly; is there a section of the readme where such hook files are usually described, or shall I just create something in there of my own?

Copy link
Contributor

Choose a reason for hiding this comment

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

Good question actually. We are certainly missing a section for plugins. Please create a new section "Plugins" and under it a section for SARA_NBIOT_EVK to put the information. We will try to polish it exiting plugins.

Copy link
Contributor

@bridadan bridadan left a comment

Choose a reason for hiding this comment

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

LGTM. At some point it'll be worth revisiting how we handle board specific data that needs to be used by htrun and other tools. Ideally this would be stored in the mbed-os repo and used by the tools. There's already the beginnings of this capability in Greentea, however there needs to be a better mechanism of passing this data to htrun.

@RobMeades
Copy link
Contributor Author

Thanks @bridadan . Any idea when a merge might be possible?

@bridadan
Copy link
Contributor

@mazimkhan ping!

@mazimkhan
Copy link
Contributor

@RobMeades I thought you were going to put the documentation in a new section.
@bridadan Are happy to get this change in without the documentation?

@RobMeades
Copy link
Contributor Author

RobMeades commented Dec 6, 2016

Apologies @mazimkhan, I was distracted by other things, I will take a look tomorrow.

@mazimkhan
Copy link
Contributor

no worries 👍

@RobMeades
Copy link
Contributor Author

RobMeades commented Dec 7, 2016

@mazimkhan: README.md updated and re-pushed.

Copy link
Contributor

@bridadan bridadan left a comment

Choose a reason for hiding this comment

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

Please see my comment below

README.md Outdated

Once your mbed tests have been compiled, they may be executed with:

`python RunTests.py`
Copy link
Contributor

Choose a reason for hiding this comment

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

What is RunTests.py? Is this script necessary to run these tests with htrun? Is it basically a stand-in for greentea? If so, then it seems like this documentation shouldn't be in htrun. I would instead just include the details about the plugin itself, not about how to run a suite of tests (as this outside of the scope of htrun any way)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, sorry, yes, well spotted, I documented more stuff than is actually submitted here. Will update in a moment...

Copy link
Contributor

@bridadan bridadan left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! LGTM

@bridadan
Copy link
Contributor

bridadan commented Dec 8, 2016

@mazimkhan How come travis didn't run on this PR?

@mazimkhan
Copy link
Contributor

no idea. need to check.

README.md Outdated

Once your mbed tests have been compiled, they may be executed with:

`python RunTests.py`
Copy link
Contributor

Choose a reason for hiding this comment

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

What is RunTests.py? Is it something internal?
I was expecting description about files like FlashErase.exe and reset.jlink.

@mazimkhan mazimkhan merged commit 1a75ee2 into ARMmbed:master Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants