-
Notifications
You must be signed in to change notification settings - Fork 3k
add OSHChip as an mbed target #5892
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
Automatic CI verification build not done, please verify manually. |
Is this in the docs portal? Can you file the bug in https://github.com/ARMmbed/Handbook ?
How did you test ? Does this have on board debugger that could be supported by greentea to run our tests? |
I already made a fork of the handbook with the intent of doing a pull request but just caught a cold and havnt gotten around to it yet I tested with just blinky, it should be identical to any other nrf51822 board besides the LF clock source and pin names |
I attempted to test the board using Greentea, but it wont work because it relies on the MSD programming. Theres no DAPLink version for the lpc11u35 in my programmer that directly supports the nrf51822, so resetting doesnt work, and i'm having trouble getting greentea working with pyOCD (see ARMmbed/greentea#259) |
After some firmware changes and connecting the UART to the programmer (which I didnt realize greentea needed) I ran all the tests all tests pass except |
Can you provide logs (-v verbose output) to understand the failure better? The test should be fixed or target :) |
the test times out, and is reported as an error
|
How to reproduce? using any nrf5x target? Tests should be green |
Any nRF51 target using the RC low frequency clock should probably reproduce it yeah. I’ll try testing it outside Greentea after class today |
Let us know your findings. All tests should be green |
I connected a 32KHz watch crystal to it in a breadboard, making it more or less identical to the configuration of an NRF51-DK, and the test fails with the same error. If anyone could run |
@mprse @maciejbocianski Can you please look at this test issue? |
Hi, Recently synchronisation fix was provided to ticker HAL layer. Please check the following PR: #5889. This might be related to your issue (see tests results). Please rebase |
81af684
to
f4a5f00
Compare
After rebasing, the test doesnt compile at all. It looks like aaa15bc changed the test file but I'm not sure how its getting into RTOS stuff
|
Looks like LOWPOWERTIMER is not available. If this feature is available for your device, then try to add LOWPOWERTIMER to target's device_has array in targets.json file. Otherwise try to disable tickless mode. |
Even after rebasing the issues with the I'm unclear on what this test is actually supposed to do? |
What is the frequency of the internal clock? It looks like you still need to adjust clock frequency to your board. NRF51_DK clock frequency is defined here:
|
The internal RC clock is the same fequency, 32.768 kHz I'm unclear on what that test is supposed to be doing, but after looking at it outside greentea it looks like its suffering to a race condition? event 1 starts the ticker for event 2, but event 1 gets called again before event 2 can, resetting its clock, so event 2 never happens, if that makes sense. I dont know what the expected behavior is, but I think this is at least part of the problem This behavior happened predictably when testing at a lower frequency, but when running with a 1ms period the behavior was erratic, even when using the crystal. I'm assuming its just trying to run too fast for the cortex-m0 the test program I used is here |
Once I get hold of an nRF51-DK I'll try to test this further and confirm its not specific to the OSHChip hardware. I can no longer get the tests to pass with the crystal, so I think its just very erratic |
… should probably move to the unified target at some point but is outside the scope of this PR
@drewcassidy can you confirm this board has a working DAPLink? |
It comes with a DAPLink programmer to connect to it, but the board itself is too small to have one built in |
@bulislaw What is the reason for the DNM tag? |
My question was answered. Removing the DNM tag. |
/morph build |
This can be merged, just note that the ticker tests still fail on the nRF51 when using the RC Low Frequency clock. I still have some debugging to do to figure out why, but its not entirely specific to this target. |
/morph build |
Build : SUCCESSBuild number : 1133 Triggering tests/morph test |
Test : SUCCESSBuild number : 941 |
Exporter Build : SUCCESSBuild number : 810 |
│ SEL D5 ╶┨ 6 └──┘11 ┠╴ D9 AREF | ||
└─ CLK D4 ╶┨ 7 10 ┠╴ A2 | ||
GND ╶┨ 8 :: 9 ┠╴ A3 | ||
┗━━━━━━━━━━┛ |
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.
That's some nice ascii art.
Merging this in since the issue that causes the ticker problem is non-standard. |
Description
Add a target for the OSHChip, a miniature nRF51822 board, along with pin name definitions
Todo
Deploy notes
The documentation is confusing regarding the use of config parameters in target definitions. I had to read through the python code to discover the necessary key was
overrides
and nottarget_overrides
. The documentation should probably be updated to include more information on this. This is being recified in ARMmbed/mbed-os-5-docs#398