Commit Graph

7616 Commits (4cf91b90f7d93030a72f2d025997b15a4171049e)

Author SHA1 Message Date
Jimmy Brisson 3b91ea6588 Add a gettingstarted.html to all exporters 2016-09-28 13:48:17 +01:00
Steven Cooreman 817f7c347d Microsecond ticker optimization
Cleaned up the EFM32 us_ticker implementation since it was taking way too long to execute, leading to very unpredictable results. Relevant forum thread: https://developer.mbed.org/forum/platform-66-EFM32-Zero-Gecko-community/topic/26198/
2016-09-28 13:48:16 +01:00
Christopher Haster c509ab6142 nsapi - Added equality operators to SocketAddress class 2016-09-28 13:48:14 +01:00
sarahmarshy a6c4af3072 Fix uvision group naming
The previous way of finding group names found the encompassing directory of each file. If the project is exported from the online compiler, this resulted in temporary folder names like tmpyKKWv_ showing up as group names.

I propose defaulting to the project name if the file is in the project root.
2016-09-28 13:48:13 +01:00
bcostm 2e37551a64 NUCLEO_F429ZI - Add SERIAL_FC macro 2016-09-28 13:48:12 +01:00
bcostm 2432a58046 STM32L1xx - Fix build error 2016-09-28 13:48:11 +01:00
bcostm 02b7823e15 NUCLEO_L152RE - Add SERIAL_FC macro 2016-09-28 13:48:10 +01:00
bcostm 8dba26a091 STM32L1xx - Add Serial Flow Control pins 2016-09-28 13:48:08 +01:00
bcostm c3c7beb055 STM32F3xx - Fix build errors 2016-09-28 13:48:07 +01:00
bcostm 98993cbfa1 STM32F3xx - Enable SERIAL_FC in targets.json 2016-09-28 13:48:06 +01:00
bcostm f90adf174b STM32F3xx - Add Serial RTS/CTS pins 2016-09-28 13:48:05 +01:00
Marcelo Salazar 879bb85da8 Fixed bug on memap (non-default output path)
Removed code that checks if the path to the map file
matches with the selected toolchain.
2016-09-28 13:48:03 +01:00
svastm d3e5b5c9b7 STM32F7 - Add tests for asynchronous serial 2016-09-28 13:48:02 +01:00
svastm dafd1cc8a7 STM32F7 - Enable asynchronous serial 2016-09-28 13:48:01 +01:00
svastm f2681b6955 STM32F7 - Add asynchronous serial 2016-09-28 13:48:00 +01:00
Christopher Haster f44040a023 lwip - Added checks for invalid state of network
- Check if disconnected in socket open
- Check if connected in interface connect
- Check if disconnected in interface disconnect
2016-09-28 13:47:59 +01:00
Arto Kinnunen b2eb1855d1 Avoid type collision by renaming callback variable
Build jobs are failing due build error "arm_hal_timer.cpp:50:5:
error: reference to 'callback' is ambiguous".

Fix the build error by renaming callback to arm_hal_callback to
avoid collision with callback defined in ./mbed-os/hal/api/Callback.h
2016-09-28 13:47:57 +01:00
andreas.larsson 1d0342f488 Replaced usage of vendor specific register with basic registers when checking link status 2016-09-28 13:47:56 +01:00
Vincenzo Frascino 3132cd7eb0 Add platform to uvisor importer
This patch adds Beetle platform to uvisor importer.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-09-28 13:47:55 +01:00
Vincenzo Frascino 7fa26183e6 Disable fcache stats if uvisor is defined
This patch disables the fcache stats into mbed_sdk_init if uvisor is
defined in order to prevent MEMMANAGEMENT faults during boot.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-09-28 13:47:54 +01:00
Vincenzo Frascino cbefe7905e Add CMSIS 5 virtual NVIC compliancy
This patch adds CMSIS 5 virtual NVIC compliancy in order to support
uvisor.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-09-28 13:47:52 +01:00
Vincenzo Frascino 0278b5e6a4 Backport virtual NVIC mechanism from CMSIS 5 on CM3
This patch backports the virtual NVIC mechanish from CMSIS 5 for the
Cortex M3 architecture in order to support uvisor in this MCU class.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-09-28 13:47:51 +01:00
Vincenzo Frascino fa559d06d6 Enable uvisor
This patch modifies:
* the Beetle GCC ARM linker script
* the Beetle startup code
in order to define the memory regions that enable uvisor.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
2016-09-28 13:47:50 +01:00
Olaf Hagendorf bf1b1ca977 classic mbed: bugfix can loop test
bugfixing the can loop test which failed after PR #2504
2016-09-28 13:47:49 +01:00
andreas.larsson cefd2fbf9c Aligned with STM32F429 2016-09-28 13:47:47 +01:00
andreas.larsson 0f00e124b1 Fixed wrong RAM start and added NVIC start. 2016-09-28 13:47:46 +01:00
andreas.larsson 47736dbcf1 Fixed wrong flash size. Fixed duplicate RW_IRAM1 region. 2016-09-28 13:47:45 +01:00
andreas.larsson d7f7880a19 Added u-blox C029 target 2016-09-28 13:47:44 +01:00
svastm 60eb4dd5f5 Change cthunk implementation + cm7 support
- Add support of cortex-M7 for cthunk.
- Change the cthunk trampoline implementation to safer and quicker
solutions:
 * thumb2, the behaviour was undefined. new implementation use now 2
instructions
 * thumb, The new implementation use 3 instructions instead of 6.
2016-09-28 13:46:30 +01:00
jeromecoutant a4f46e747b travis: revove rtos support for NUCLEO_L053R8 2016-09-28 13:46:28 +01:00
jeromecoutant 6fe0a26bc4 8K RAM target is too small for RTOS support 2016-09-28 13:46:27 +01:00
jeromecoutant fa2f0f0f34 Disable RTOS tests for STM32 8K targets
8K RAM target is too small for
"NUCLEO_L031K6"
"NUCLEO_L053R8"
"DISCO_L053C8"
"NUCLEO_F030R8"
2016-09-28 13:46:26 +01:00
Sam Grove 21dd7008a1 Merge pull request #2714 from adbridge/mbed-os-5.1
Release mbed-os-5.1.4 and mbed lib v126
2016-09-16 12:15:17 -05:00
Anna Bridge 6caef39312 Release mbed-os-5.1.4 and mbed lib v126 2016-09-16 11:19:54 +01:00
Brian Daniels 064037d519 Fixing NCS36510 compile on Linux
There was a case sensitivity issue when compiling the NCS36510 on Linux.
This commit changes the include directive to the proper case.
2016-09-15 18:07:33 +01:00
Tony Wu 1d57ff71f7 Tools - Fix fill section size variation
The linking order of object files affects the actual code placement,
which in turn affects the size of fill section due to the number of
zeros required to maintain appropriate data/code alignment may change.
This is observed when building on Mac and Linux host.

example: mbed compile -m K64F -t GCC_ARM (build 1)
+---------------------+-------+-------+-------+
| Module              | .text | .data |  .bss |
+---------------------+-------+-------+-------+
| Fill                |   120 |     4 |  2381 |
| Misc                | 28755 |  2216 |    84 |
| features/frameworks |  4236 |    52 |   744 |
| hal/common          |  2745 |     4 |   325 |
| hal/targets         | 12116 |    12 |   200 |
| rtos/rtos           |   119 |     4 |     0 |
| rtos/rtx            |  5721 |    20 |  6786 |
| Subtotals           | 53812 |  2312 | 10520 |
+---------------------+-------+-------+-------+

example: mbed compile -m K64F -t GCC_ARM (build 2)
+---------------------+-------+-------+-------+
| Module              | .text | .data |  .bss |
+---------------------+-------+-------+-------+
| Fill                |   128 |     4 |  2381 |
| Misc                | 28755 |  2216 |    84 |
| features/frameworks |  4236 |    52 |   744 |
| hal/common          |  2745 |     4 |   325 |
| hal/targets         | 12116 |    12 |   200 |
| rtos/rtos           |   119 |     4 |     0 |
| rtos/rtx            |  5721 |    20 |  6786 |
| Subtotals           | 53820 |  2312 | 10520 |
+---------------------+-------+-------+-------+

This patch fixes fill section size variation by sorting object
files before passing to linker.

Signed-off-by: Tony Wu <tung7970@gmail.com>
2016-09-15 18:07:32 +01:00
Conor Keegan cc8386da47 Add unit tests for app_config 2016-09-15 18:07:30 +01:00
Conor Keegan 9c05d88349 Add app config switch to options.py and make.py 2016-09-15 18:07:29 +01:00
Conor Keegan 9d368098e5 Add test command switch for app config file 2016-09-15 18:07:26 +01:00
ccli8 8e960adec5 Fix heap configuration error with armcc
In rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h, Image$$ARM_LIB_HEAP$$Base/Image$$ARM_LIB_HEAP$$Length will cause zero memory allocation.
Fix it with Image$$ARM_LIB_HEAP$$ZI$$Base/Image$$ARM_LIB_HEAP$$ZI$$Length. This is to place heap at external SRAM.
2016-09-15 18:07:25 +01:00
svastm 4ee629af12 Fix TCPServer constructor
- Avoid a call to the protected method `get_stack()` which cause a build fail.
 - Remove the constructor definition `TCPServer(NetworkStack *stack)`
   because it has no implementation.
2016-09-15 18:07:24 +01:00
Neil Thiessen b24c986ba4 Improve memory tracer
Fixed a bug and compiler warning in the memory tracer implementation.
2016-09-15 18:07:22 +01:00
Neil Thiessen e68b08e66b Fixed compiler warning suppression
"#3731-D: intrinsic is deprecated" compiler warnings should only be suppressed on the ARM toolchain.
2016-09-15 18:07:21 +01:00
Neil Thiessen 97e9a95861 Fixed "intrinsic is deprecated" warnings
Suppressed "#3731-D: intrinsic is deprecated" compiler warnings in critical API.
2016-09-15 18:07:20 +01:00
OzzySan d066a50cfc Added gcc_arm template for export. 2016-09-15 18:07:18 +01:00
OzzySan f9bcf7ad70 Added support for MTM_MTCONNECT04S 2016-09-15 18:07:17 +01:00
bcostm 892546bbaa STM32F2xx - Enable Serial Flow Control 2016-09-15 18:07:16 +01:00
bcostm 074a7eea21 DISCO_L476VG - Add Serial Flow Control pins + add SERIAL_FC macro 2016-09-15 18:07:13 +01:00
Simon Hughes c0b0ac66f5 Restoring swap code to cfstore_test_delete_all() after being previously removed to work around CFSTORE issue 17/23 (realloc()). 2016-09-15 18:07:12 +01:00
Simon Hughes 5c04ee98ed This commit contains CFSTORE fixes for the following related issues: - issue 17: Heap corruption. - issue 23: Handles invalidated when realloc called. - issue 24: cfstore_find returns error when "previous" parameter is NULL. - issue 25: Memory leak when out of memory.
With respect to issues 17 and 23:
- A code defect existed for correctly updating cfstore_file_t data structures
  under the following conditions:
  -- the KV memory area contained some KV's.
  -- cfstore calls realloc() to increase the size of the KV area in
     memory because:
	  * A new KV was being added to the KV area, or
	  * the size of a pre-existing KV was being increased.
  -- The returned address from realloc() has changed from before the
     call (i.e. the location in memory of the KV area has changed)
	 e.g. the presence of heap memory objects directly above the KV memory
	 area in the memory address space causes realloc() to move the KV area
	 so the newly increased area can be accommodated at contiguous addresses.
  -- In this scenario, the cfstore_file_t (structures for open files) head pointers
     do not get correctly updated.
  -- The defect was fixed by correctly updating the cfstore_file_t:: head pointer.
  -- A new add_del test case was added to the scenario where a new KV is being added
     to the KV area.
  -- A new create test case was added to the scenario where the size of a
     pre-existing KV is being increased in size.

- A code defect for suppling a NULL handle as the previous argument to the Find() method
  (issue 24).
	-- Supply a null handle is valid, but it was being used to check for a valid hkey,
	   which was incorrect.
	-- A new test case was added to check the case of supplying a NULL previous argument
	   works correctly.

- A code defect for a memory leak under the following conditions (issue 25):
  -- When realloc() fails to perform a requested change to the size of the KV area, the
     error handling sometimes incorrectly sets cfstore_context_t::area_0_head to NULL.
	 Cfstore returns a suitable error to the client. If memory had previously been held
	 at area_0_head, realloc(area_0_head, size) returning NULL means the memory
	 at area_0_head is still retained.
  -- On receiving the error code, the client cleans up including a call to Uninitialize().
     This should free the retained but as area_0_head == NULL this is not possible. Hence
	 a memory leak occurred.
  -- This was fixed by not setting area_0_head = NULL on the realloc() failure.
  -- A create test case was modified to detect the leaking of memory in this way.
2016-09-15 18:07:11 +01:00