Skip to content

[TY51822r3] add platform #1490

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 2 commits into from
Jan 15, 2016
Merged

[TY51822r3] add platform #1490

merged 2 commits into from
Jan 15, 2016

Conversation

ytsuboi
Copy link
Contributor

@ytsuboi ytsuboi commented Jan 6, 2016

Added new nRF51822 platform.

Test summary:
+---------+-----------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| Result  | Target    | Toolchain | Test ID     | Test Description                      | Elapsed Time (sec) | Timeout (sec) | Loops |
+---------+-----------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| TIMEOUT | TY51822R3 | ARM       | DTCT_1      | Simple detect test                    |       80.41        |       40      |  0/1  |
| OK      | TY51822R3 | ARM       | EXAMPLE_1   | /dev/null                             |        3.46        |       20      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_10     | Hello World                           |        0.37        |       5       |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_11     | Ticker Int                            |       11.37        |       15      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_12     | C++                                   |        1.39        |       10      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_2      | stdio                                 |        0.78        |       20      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_23     | Ticker Int us                         |       11.34        |       15      |  1/1  |
| FAIL    | TY51822R3 | ARM       | MBED_24     | Timeout Int us                        |       16.63        |       15      |  0/1  |
| OK      | TY51822R3 | ARM       | MBED_25     | Time us                               |       12.14        |       15      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_26     | Integer constant division             |        1.39        |       20      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_34     | Ticker Two callbacks                  |       11.37        |       15      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_37     | Serial NC RX                          |       11.07        |       20      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_38     | Serial NC TX                          |       15.58        |       20      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_A1     | Basic                                 |        1.37        |       20      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_A21    | Call function before main (mbed_main) |        1.42        |       20      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_A9     | Serial Echo at 115200                 |        6.93        |       20      |  1/1  |
| OK      | TY51822R3 | ARM       | MBED_BUSOUT | BusOut                                |        2.29        |       45      |  1/1  |
+---------+-----------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
Result: 1 FAIL / 15 OK / 1 TIMEOUT

@@ -61,6 +61,20 @@ void SystemCoreClockUpdate(void)

void SystemInit(void)
{
#if defined(TARGET_NRF_32MHZ_XTAL)
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 provide brief description what it does?

I don't understand these 2 lines : if (*(uint32_t *)0x10001008 == 0xFFFFFFFF) and NVIC_SystemReset();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code wriging the value 0xFFFFFF00 to the UICR (User Information Configuration Register) at address 0x10001008, to make nRF51 works with 32MHz system clock. Physically, tiny footprint XTAL oscillate higher freq. To make BLE modules smaller, some modules are using 32MHz XTAL. After changing the value, nRF51 need to reboot.
This register will be overwritten by SoftDevice to 0xFFFFFFFF, the default value. Each hex files built with mbed classic online compiler contain SoftDevice, so that, this code run once just after the hex file flashed onto nRF51.

Copy link
Contributor

Choose a reason for hiding this comment

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

Worth adding it there as a comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

comment added.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

0xc0170 added a commit that referenced this pull request Jan 15, 2016
@0xc0170 0xc0170 merged commit 45dbe35 into ARMmbed:master Jan 15, 2016
@ytsuboi ytsuboi deleted the add-TY51822r3 branch January 15, 2016 14:15
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.

2 participants