Commit Graph

7584 Commits (cb54c488d66ced1bd32355db2de6373370f68299)

Author SHA1 Message Date
jeromecoutant cb54c488d6 Serial init timeout: increase default value
It seems that my test bench is very slow...
I need to increase the timeout value in order to get the port ready

Thx
2016-09-28 13:50:30 +01:00
Mahadevan Mahesh f6ac1e8253 Updated ARM linker scripts for Kinetis platforms that use SDK 2.0
1. Fix Heap start address
2. Update to the latest script provided by the Kinetis SDK team

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-09-28 13:50:28 +01:00
Steven Cooreman d525718505 Remove HG from mbed 5
Remove Happy Gecko from mbed 5 builds until we can verify all of the examples fit using the ARM toolchain
2016-09-28 13:50:27 +01:00
Steven Cooreman 6bc1694961 Add all platforms (except Zero) to mbed 5 build 2016-09-28 13:50:25 +01:00
Steven Cooreman 839d4dc73d Add IAR support for remaining Silicon Labs targets
Added startup files and IAR memory map files for the remaining Silicon Labs targets as part of the mbed enabled criteria.
2016-09-28 13:50:23 +01:00
Erwan GOURIOU b05350b5aa reduce footprint for i2c_s struct 2016-09-28 13:50:21 +01:00
Erwan GOURIOU 8312e6e3d6 Extend asynch I2C to STM32F4 boards
Move i2c_s to common_objects.h
Introduce I2C Master/Slave asynch test
Test I2C asynch master/slave on STM32F4 boards
2016-09-28 13:50:20 +01:00
Erwan GOURIOU 72f17e67aa Move i2c_s to common_objects.h 2016-09-28 13:50:19 +01:00
Erwan GOURIOU 9b204f8be2 Fix I2C byte transfer API to enable Master/Slave test on F411RE
i2c_byte_write could be used to send byte and address.
In case used for address, ADDR Flag should be reset.
2016-09-28 13:50:18 +01:00
Erwan GOURIOU ee0f0e5464 HAL Fix to support Master Rx w/ repeated start
As per reference manual, closing communication for master receiver
with repeated start requires, after reading second last data byte
(after second last RxNE event):
-Clearing ACK bit (same as non repeated start case)
-Set START bit (instead of STOP bit in non repeated start case)
This is valid for I2C_FIRST_FRAME and I2C_NEXT_FRAME conditions
2016-09-28 13:50:16 +01:00
Erwan GOURIOU 295a748bc7 Test Asynch I2C on F411RE
Add single board I2C master/slave asynch test
2016-09-28 13:50:15 +01:00
Erwan GOURIOU ca0c4e84cb Enable asynch I2C on NUCLEO_F411RE
Dev Asynch I2c
One limitation linked to HAL bug:
Master RX(Repeated Start) KO
2016-09-28 13:50:14 +01:00
Erwan GOURIOU 70266258fd Update I2C Tests to support F411 2016-09-28 13:50:13 +01:00
Marcos Gomes 6b44a61534 Updated with code style guidelines 2016-09-28 13:50:11 +01:00
Marcos Gomes 5d4dda9ecb Added support for ADC only pins in LPC43xx 2016-09-28 13:50:10 +01:00
svastm bda2c51153 Add tests for asynchronous serial 2016-09-28 13:50:09 +01:00
svastm 4a80c3d443 Enable asynchronous serial 2016-09-28 13:50:08 +01:00
svastm c4382665ac Add asynchronous serial 2016-09-28 13:50:07 +01:00
Jimmy Brisson ab22d5ec3b Refactor Target and Config away from global variables 2016-09-28 13:50:05 +01:00
Sarah Marsh a56b4ba0b1 New build tests.
*Changes*
- Parallel export
- mbed-os tests added
- specified release version (default to 5)
- default tests AND targets dependent on specified release version
2016-09-28 13:50:03 +01:00
jeromecoutant 60e8839ffb tcp_client_hello_world K&R style 2016-09-28 13:50:02 +01:00
jeromecoutant 3035d80356 tcp_client_hello_worldminor update 2016-09-28 13:50:01 +01:00
jeromecoutant ea692cf623 FEATURE_IPV4/TESTS: result status could be wrong
result status should be set to false by default before starting test execution.
2016-09-28 13:49:59 +01:00
Jinhui-Lin b52c349e17 Update CONTRIBUTING.md
update some old URL(mbedmicro/mbed) to new(ARMmbed/mbed-os) for not confusing contrabutors
2016-09-28 13:49:58 +01:00
svastm 64937086cb STM32F3 - Enable the low power timer
Enable the low power timer for the following targets:
 - NUCLEO_F302R8
 - NUCLEO_F303K8
 - NUCLEO_F303RE
 - NUCLEO_F334R8
 - DISCO_F334C8
 - DISCO_F303VC
2016-09-28 13:49:57 +01:00
svastm 7d99a20ae0 STM32F3 - Add low power timer 2016-09-28 13:49:56 +01:00
jeromecoutant 6c98b11a71 RTOS_1: patch correction 2016-09-28 13:49:54 +01:00
jeromecoutant 26f8dd94cf STM32F070RB/STM32F072RB: issue with some mbedmicro-rtos-mbed tests
Status is now OK
2016-09-28 13:49:53 +01:00
jeromecoutant 85f4516fce STM32F070RB/STM32F072RB: decrease thread_stack_main size
Thread_stack_main is by default too large for this 16K target
2016-09-28 13:49:52 +01:00
jeromecoutant 10a5f47900 STM32F070RB/STM32F072RB: RTOS tests
Make all RTOS tests OK
2016-09-28 13:49:51 +01:00
jeromecoutant 034e70f559 correct INITIAL_SP 2016-09-28 13:49:49 +01:00
Marcelo Salazar 8972cefcda Minor tweak on spaces 2016-09-28 13:49:48 +01:00
Marcelo Salazar e79ce44ce5 Minor fix to match with master 2016-09-28 13:49:47 +01:00
Marcelo Salazar 3d7a978c16 Change default uvision exporter to uvision5
uVision4 is no longer maintained by the Keil team (support was stopped
long time ago).

This is why we need to make the uvision exporter able to generate uVision5
projects by default (which is based on software packs).

Also, adding note that the uvision4 exporter is now deprecated and will be
removed in the future.
2016-09-28 13:49:46 +01:00
Laurent MEUNIER 642a777ff9 fixup! UTEST Spi Asynch 2016-09-28 13:49:44 +01:00
Laurent MEUNIER e32999c9e6 Avoid SPI spurious interrupt
If SPI TXE is not disabled at the end of transfer, MBED application
callback that is registered for transfer completion might be called twice
2016-09-28 13:49:43 +01:00
Laurent MEUNIER 9323ad204a Simplify spi Asynch transfer implementation
Following discussion on:

it seems now clear that the transfer API is meant to be used either
with only Rx, or only Tx or Rx and Tx with the same lenth.

Therefore we're removing support of transfers of Rx and Tx with different
lenghts - this makes porting to HAL more direct and simpler.
2016-09-28 13:49:42 +01:00
Laurent MEUNIER bcf7ee2e51 enable SPI ASYNCH 2016-09-28 13:49:41 +01:00
Laurent MEUNIER 72bf698f44 UTEST Spi Asynch
Update test to be able to test on NUCLEO boards using generic
default pins definitions
2016-09-28 13:48:56 +01:00
Laurent MEUNIER a37bee3681 SPI: avoid duplicate information accross layers
Same information was stored in spi_api.c and STM32 HAL layers.
Modify code to avoid this duplicate information.
2016-09-28 13:48:55 +01:00
Laurent MEUNIER a16cc6fa17 SPI ASYNCH support
This commit is highly derived from an existing work from salkinium.

It adds SPI ASYNC support to STM32 F4 devices. This required a small
rework of the structure to have SYNCH and ASYNCH co-exist.
2016-09-28 13:48:53 +01:00
Laurent MEUNIER d47628c2a9 move spi_s to common file 2016-09-28 13:48:52 +01:00
jeromecoutant 8fdf183fef IPV4 feature hal files factorisation
Same code was duplicated for all STM32 targets
2016-09-28 13:48:51 +01:00
Christopher Haster 71e115723d lwip - Fixed error code on disconnect TCP socket
Fixed to return 0 on successful shutdown
2016-09-28 13:48:50 +01:00
TsungtaWu c50d655a53 make "macros_add" as a single line
make "macros_add" as a single line
2016-09-28 13:48:48 +01:00
Tony Wu 0d95be055d LPC11U6X - Fix multiple definition of operator new/delete
Fix the following linker errors:

ToolException: ./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator new(unsigned int)':
startup_LPC11U68.cpp:(.text._Znwj+0x0): multiple definition of `operator new(unsigned int)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._Znwj+0x0): first defined here
./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator new[](unsigned int)':
startup_LPC11U68.cpp:(.text._Znaj+0x0): multiple definition of `operator new[](unsigned int)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._Znaj+0x0): first defined here
./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator delete(void*)':
startup_LPC11U68.cpp:(.text._ZdlPv+0x0): multiple definition of `operator delete(void*)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._ZdlPv+0x0): first defined here
./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator delete[](void*)':
startup_LPC11U68.cpp:(.text._ZdaPv+0x0): multiple definition of `operator delete[](void*)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._ZdaPv+0x0): first defined here
collect2: error: ld returned 1 exit status

Signed-off-by: Tony Wu <tung7970@gmail.com>
2016-09-28 13:48:47 +01:00
Tony Wu 9c1c5ce597 STM32F4 - Fix STM32F407VG target name
The target name of STM32F407VG should be TARGET_STM32F407VG,
rather than TARGET_F407VG.

Signed-off-by: Tony Wu <tung7970@gmail.com>
2016-09-28 13:48:46 +01:00
svastm 75a678cf08 Add tests for asynchronous serial 2016-09-28 13:48:44 +01:00
svastm bff0bf7f74 Enable asynchronous serial 2016-09-28 13:48:42 +01:00
svastm 3581b98c8d Add asynchronous serial 2016-09-28 13:48:41 +01:00