Commit Graph

3947 Commits (13f4fc725465da12f1924ab81fb083446b3ef10a)

Author SHA1 Message Date
Martin Kojtal 252d06bc83 Merge pull request #931 from jeremybrodt/nexttimestamp
Us ticker - add function to get the timestamp of the next us_ticker event.
2015-02-26 09:24:26 +00:00
Martin Kojtal 8895e91be3 Merge pull request #929 from PrzemekWirkus/mbed_assert_3
Test suite - mbed assert detection
2015-02-26 08:53:35 +00:00
Masao Hamanaka 6fc2d2ab43 Correct the formatting. 2015-02-26 17:02:24 +09:00
Masao Hamanaka d7bc024a6a Fix a bug that Ticker driver has the potential to loop infinitely.
Ticker driver has the potential to loop infinitely.
Because, running "us_ticker_irq_handler()" from "us_ticker_set_interrupt()" before "obj->next = p;" of "us_ticker_insert_event()" is executed.
2015-02-26 16:36:30 +09:00
Masao Hamanaka 2047acae11 Fix a bug that Serial driver would read 1Byte garbage data(0xFE).
Serial driver would read 1Byte garbage data(0xFE) at first after reset and start.
2015-02-26 16:36:04 +09:00
Masao Hamanaka 0365977217 Modify and add a file to support GCC. (mbed common codes) 2015-02-26 16:35:45 +09:00
Masao Hamanaka f6f45026f6 Modify to support GCC. (mbed CMSIS HAL) 2015-02-26 16:35:12 +09:00
Masao Hamanaka ed293575cf Modify to support GCC. (mbed HAL driver) 2015-02-26 16:33:01 +09:00
Masao Hamanaka c46f5b894b Modify to support GCC. (CMSIS-RTOS RTX for Cortex-A9) 2015-02-26 16:31:58 +09:00
Masao Hamanaka aba8a90630 Modify to support GCC. (USB) 2015-02-26 16:30:17 +09:00
Masao Hamanaka 901b06f05b Modify to support GCC. (tools files) 2015-02-26 16:28:58 +09:00
Jeremy Brodt 7020c50c56 Added function to get the timestamp of the next us_ticker event. 2015-02-24 14:25:43 -06:00
Przemek Wirkus dfa9599ded Added mbed assertion detection
Test suite will detect mbed assertion print and end test execution with MBED_ASSERT error
2015-02-24 13:46:45 +00:00
Martin Kojtal 1b2a62100a Merge pull request #905 from Willem23/master
LPC81x - Update us_ticker.c, using MRT
2015-02-24 13:36:38 +00:00
Martin Kojtal 7ae7dafa66 Merge pull request #906 from Willem23/patch-1
LPC812 - pwmout HAL implementation
2015-02-24 13:36:01 +00:00
Martin Kojtal 4e403f8715 Merge pull request #924 from GustavWi/iar_mbed
Fix #910 - debug file with predefined hardware debug settings
2015-02-24 11:18:55 +00:00
Martin Kojtal a28b361be7 Merge pull request #921 from screamerbg/master
Tools - Output extension handling and echo test improvement
2015-02-24 11:05:37 +00:00
Martin Kojtal d39e42d4cb Merge pull request #922 from masaohamanaka/master
RZ/A1H - Increase private thread num.
2015-02-23 18:20:38 +00:00
Sissors f0d04f5360 [API] Added option to modify RTC source
Initially from Karls question here:
http://developer.mbed.org/questions/6337/setTime-and-time-exported-with-__weak-fo/#answer6545?compage=1#c15936.
Currently the C time functions only work with internal RTC. Sometimes
you either want to use an external one, or your target does not even
have an internal RTC. I added function attach_rtc(...) where the default
functions can be overridden at runtime.
2015-02-22 13:19:02 +01:00
Martin Kojtal 8648ff57ea Merge pull request #925 from mbedmicro/sg--patch-1
RAM fix for nRF51822.sct, 32K version
2015-02-21 14:56:23 +00:00
Sam Grove 2de26e779e Update nRF51822.sct
FIx copy paste error in RAM size when softdevice isn't used
2015-02-20 23:41:20 -06:00
Martin Kojtal 86041dd398 Merge pull request #923 from mazgch/master
enable the additional uart 7&8 of the STM32F439 in the mbed sdk/api
2015-02-20 17:54:15 +00:00
GustavWi 5c5bf71e1d Issue #910. Added debug file with predefined hardware debug settings. When user exports to IAR the project has all the necessary settings so the user can immediately flash the program 2015-02-20 15:59:16 +01:00
mazgch 1641dd7e8d enable the additional uart 7&8 of the STM32F439 2015-02-20 13:38:11 +01:00
Masao Hamanaka 02cba63476 Increase private thread num. 2015-02-20 17:36:11 +09:00
Mihail Stoyanov 88281c839e Add AnalogIn potentiometer test for A0, A1 as present on the mbed application shield and automate MMA7660 test.
Various flags for platforms and tests.
2015-02-20 04:15:26 +02:00
Mihail Stoyanov 0d4c158505 A minor routine to take care of parasite symbols that may be left over in the serial read buffer. This happens when a program output wasn't terminated with new line. This also does not affect the test results. 2015-02-20 02:30:01 +02:00
Mihail Stoyanov f130a80755 When linking program define the output name based on the OUTPUT_EXT before processing linking the file. This let's any hooks to use the final output file/name.
Omit the dot before the extension for OUTPUT_EXT (all Nordic and Teensy boards);
2015-02-19 18:08:02 +02:00
Mihail Stoyanov ca4aaa2dde Removed colorama dependency. This breaks the online build system, the live exported and prevents deployment of new platforms. Rewrite the code so colors are optional and no additional modules are required for toolchains and platforms 2015-02-19 17:09:07 +02:00
Mihail Stoyanov 014b0f1ca6 Change the output extension/format for Teensy 3.1 to HEX 2015-02-19 16:46:52 +02:00
Wim 9241e5eaba Update us_ticker.c
Used precomputed variables to replace runtime mult and div in us_ticker_read().
2015-02-19 15:09:18 +01:00
Przemek Wirkus 78cc959f50 In response to: IOTSFW-325
1. Removed globaly initialized data inside class test() function
2. Removed global variables initialization dependency. Any cause some Python
   implementations and configurations to fail in runtime
3. Added info about Echo port #7 rationale.
4. Testsed with K64F and network tests:

Test summary:
+--------+--------+---------+----------------------------+--------------------+
| Result | Target | Test ID | Test Description           | Elapsed Time (sec) |
+--------+--------+---------+----------------------------+--------------------+
| OK     | K64F   | NET_1   | TCP client hello world     |        3.26        |
| OK     | K64F   | NET_13  | TCP client echo loop       |        2.05        |
| OK     | K64F   | NET_2   | NIST Internet Time Service |        3.43        |
| OK     | K64F   | NET_3   | TCP echo server            |        1.54        |
| OK     | K64F   | NET_4   | TCP echo client            |        1.54        |
| OK     | K64F   | NET_5   | UDP echo server            |        1.46        |
| OK     | K64F   | NET_6   | UDP echo client            |        1.6         |
| OK     | K64F   | NET_7   | HTTP client hello world    |        3.4         |
| OK     | K64F   | NET_8   | NTP client                 |        2.39        |
+--------+--------+---------+----------------------------+--------------------+
Result: 9 OK

Completed in 122.18 sec
2015-02-19 11:36:44 +00:00
Przemek Wirkus 4d5b8776d4 Bugfix for IOTSFW-345:
Adde missing check for optional auto_detect parameter in CLI options.

Test procedure:

* Check with mbed-ls installed:

$ singletest.py --auto -j 8
MBEDLS: Detecting connected mbed-enabled devices...
MBEDLS: Detected K64F, port: COM61, mounted: E:
Building library CMSIS (K64F, ARM)
Copy: startup_MK64F12.o
Copy: sys.o
Copy: cmsis_nvic.o
Copy: system_MK64F12.o

* Uninstall mbed-ls iools:

$ pip uninstall mbed-ls
Uninstalling mbed-ls:
  c:\python27\lib\site-packages\mbed_ls-0.1.4-py2.7.egg
  c:\python27\scripts\mbedls-script.py
  c:\python27\scripts\mbedls.exe
  c:\python27\scripts\mbedls.exe.manifest
Proceed (y/n)? y
  Successfully uninstalled mbed-ls

$ mbedls
'mbedls' is not recognized as an internal or external command,
operable program or batch file.

$ python
Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mbed_lstools
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named mbed_lstools

* Check singletest.py work flow without mbed-ls:

$ singletest.py -i test_spec.json -M muts_all.json
Building library CMSIS (K64F, ARM)
Building library MBED (K64F, ARM)
Building project DETECT (K64F, ARM)
TargetTest::K64F::ARM::DTCT_1::Simple detect test [OK] in 0.50 of 10 sec
Building project DEV_NULL (K64F, ARM)
TargetTest::K64F::ARM::EXAMPLE_1::/dev/null [OK] in 3.49 of 20 sec
Building project HELLO (K64F, ARM)
TargetTest::K64F::ARM::MBED_10::Hello World [OK] in 0.38 of 5 sec
Building project TICKER (K64F, ARM)
TargetTest::K64F::ARM::MBED_11::Ticker Int [OK] in 11.35 of 15 sec
2015-02-19 11:16:45 +00:00
Martin Kojtal 697101564d Merge pull request #912 from Timmmm/patch-1
Fix export_test.py extra_symbols issue.
2015-02-19 10:02:30 +00:00
Przemek Wirkus 7596acd726 Fixed RTC host test (0 sec scenario):
Boolean value used to calclate single RTC test PASS / FAIL was not used to
calculate overall result.

==== ISSUE ====
The test suite treats the RTC test as successful, but test itself reports
failures. Which one is correct – does it fail or does it pass? See below:

HOST: Run test...
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 4.02 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.03 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL

{{success}}
{{end}}
Test::Output::Finish
TargetTest::ARM_MPS2_M4::ARM::MBED_16::RTC [OK] in 30.37 of 40 sec

==== FIX ====

HOST: Run test...
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 0.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL

{{failure}}
{{end}}
2015-02-18 10:19:58 +00:00
Martin Kojtal c9e93d21e3 Merge pull request #918 from dinau/fixed_gcc_makefile_template
Tools - GCC_ARM Makefile Fixed parallel build errro and others.
2015-02-17 14:36:33 +00:00
Przemek Wirkus b746b28dbf Merge pull request #4 from mbedmicro/master
Synd with master (February)
2015-02-17 12:51:07 +00:00
Przemek Wirkus 0fe5f5f674 Increased initial timeout for each host test so we can be sure binary will be
flashed completely and we can proceed with target reset.

Before fix:
====
Test summary:
+---------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
| Result  | Target | Toolchain | Test ID | Test Description           | Elapsed Time (sec) | Timeout (sec) | Loops |
+---------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
| OK      | K64F   | ARM       | NET_1   | TCP client hello world     |        3.37        |       20      |  1/1  |
| OK      | K64F   | ARM       | NET_13  | TCP client echo loop       |        2.06        |       20      |  1/1  |
| OK      | K64F   | ARM       | NET_2   | NIST Internet Time Service |        2.41        |       20      |  1/1  |
| TIMEOUT | K64F   | ARM       | NET_3   | TCP echo server            |       10.21        |       10      |  0/1  |
| TIMEOUT | K64F   | ARM       | NET_4   | TCP echo client            |       10.21        |       10      |  0/1  |
| TIMEOUT | K64F   | ARM       | NET_5   | UDP echo server            |       10.21        |       10      |  0/1  |
| TIMEOUT | K64F   | ARM       | NET_6   | UDP echo client            |       10.21        |       10      |  0/1  |
| OK      | K64F   | ARM       | NET_7   | HTTP client hello world    |        6.46        |       15      |  1/1  |
| TIMEOUT | K64F   | ARM       | NET_8   | NTP client                 |       10.21        |       10      |  0/1  |
+---------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
Result: 4 OK / 5 TIMEOUT
Completed in 116.32 sec

After fix:
====
Test summary:
+--------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
| Result | Target | Toolchain | Test ID | Test Description           | Elapsed Time (sec) | Timeout (sec) | Loops |
+--------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
| OK     | K64F   | ARM       | NET_1   | TCP client hello world     |        3.32        |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_13  | TCP client echo loop       |        2.06        |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_2   | NIST Internet Time Service |        2.4         |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_3   | TCP echo server            |        1.54        |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_4   | TCP echo client            |        1.54        |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_5   | UDP echo server            |        1.47        |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_6   | UDP echo client            |        1.6         |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_7   | HTTP client hello world    |        6.46        |       15      |  1/1  |
| OK     | K64F   | ARM       | NET_8   | NTP client                 |        2.4         |       15      |  1/1  |
+--------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
Result: 9 OK
Completed in 125.06 sec
2015-02-17 11:22:45 +00:00
Mihail Stoyanov 0e4e1dd9f0 Changed Arch Max default program cycle timer to 2 seconds 2015-02-16 21:57:56 +02:00
0xc0170 31f66c22e5 mbed header file - mbed lib revision - 94 2015-02-16 17:04:27 +00:00
dinau a6679e80a5 [Export][GCC_ARM][Makefile][tmpl] Fixed parallel build errro and others.
* Additional maintenance.
  Refer to commit  #708 .
2015-02-16 20:43:42 +09:00
Martin Kojtal 4c8c94f4ef Merge pull request #917 from 0xc0170/fix_exit_retarget
Fix for #908, exit req std namespace
2015-02-16 10:25:33 +00:00
0xc0170 15ee1ca2dc Fix for #908, exit req std namespace 2015-02-16 10:11:54 +00:00
Martin Kojtal c9e7f409af Merge pull request #900 from PrzemekWirkus/host_test_autodetection
Host test autodetection improvements
2015-02-16 09:37:56 +00:00
Martin Kojtal b5fbcc75aa Merge pull request #914 from NitinBhaskar/master
LPC11U68 build support extended to ARM toolchain, uvision export template added
2015-02-16 08:33:41 +00:00
Martin Kojtal 8dce46b543 Merge pull request #915 from BlackstoneEngineering/exporterUpdate2
Update to Offline Exporters
2015-02-15 11:06:07 +00:00
Mihail Stoyanov 37c0558f48 Default ide value for zip export mode 2015-02-13 22:19:30 +02:00
Austin Blackstone 9a6d8a9193 added updated .hgignore file to exporters, the file is simply copied in from the .hgignore file int he export directory, this way the file itself can be updated in the future, not the script 2015-02-13 20:02:04 +00:00
Mihail Stoyanov 4585f8aa11 Add simple ZIP exporter for the mbed Online IDE 2015-02-13 22:01:24 +02:00
Austin Blackstone 3bf5f94744 changed name from readme.html to GettingStarted.htm, changed web address from developer.mbed.org to mbed.org 2015-02-13 17:43:48 +00:00