Commit Graph

15236 Commits (mbed-os-5.8)

Author SHA1 Message Date
Martin Kojtal 16e6c7fa84 Realtek: serial - line ending fix
One line had a window line ending
2018-04-09 15:00:48 +01:00
zzw 426df197df rtl8195am: fix LogUART Tx interrupt crash
add Mask & UnMask Tx FIFO empty interrupt for LogUart
fix LogUart interrupt enable
fix LogUart interrupt handler
coding style fix
2018-04-09 15:00:48 +01:00
Martin Kojtal addec7ba10
Merge pull request #6461 from ARMmbed/release-candidate
Release candidate for mbed-os-5.8.1
2018-03-27 17:41:03 +02:00
Antti Yli-Tokola a48b62d1a6 Update mbed-coap to version 4.4.0
Make sn_coap_protocol_send_rst as public needed for CoAP ping sending
Allow disabling resendings by defining SN_COAP_DISABLE_RESENDINGS
2018-03-27 12:09:14 +01:00
Antti Yli-Tokola 3ba208a96d Update mbed-coap to version 4.3.0
Add new api to clear whole sent blockwise message list
2018-03-27 12:08:19 +01:00
adbridge 20d9b4a17e Update Mbed version block for patch release 2018-03-26 18:52:33 +01:00
Cruz Monrreal II c4aed9d340 Modified apt-get retry logic with Travis CI retry feature 2018-03-26 18:52:24 +01:00
ccli8 038ede386a Fix page size in flash IAP
In Mbed OS, page size is program unit, which is different than FMC definition.
After fixing page size, we can pass NVSTORE test (mbed-os-features-nvstore-tests-nvstore-functionality).
2018-03-26 18:52:24 +01:00
Jimmy Brisson 7138038a6a Correct get_config imports 2018-03-26 18:52:24 +01:00
Steven Cartmell 43e646d74f Fix issues with __FILENAME__ macro
- Move macro definition to mbed_toolchain.h
- Remove double underscores from macro which are reserved.
- Fix macro for IAR until compiler flags to disable path are added again.
2018-03-26 18:52:24 +01:00
Steven Cartmell 4ff6dd27be Remove IAR compiler flag change from PR 2018-03-26 18:52:24 +01:00
Steven Cartmell 6c04d9e468 Remove superfluous compiler check in macro 2018-03-26 18:52:24 +01:00
Steven Cartmell 87029c6af4 Refactor sleep tracing driver identifier to be pointer to the driver filepath.
The use of __FILE__ macro to get a usable identifier from the driver path
causes the path of the file to be stored in the .text region of the binary.
Given that this remains for the entire duration of the program, storing a
pointer to this string as an identifier is more efficient than copying the
contents of the string during lookup/insertion.
2018-03-26 18:52:24 +01:00
Steven Cartmell 1965c111c5 Replace runtime strip_path function with compiler intrinsic equivalents
Sleep manager tracing strips the path from filenames and uses the result as an
identifier to track drivers that unlock/lock sleep tracing. Replace the function
that strips the path from the string, replace this function with a new macro,
__FILENAME__ which performs the same action in a compiler specific manner.

- GCC_ARM, use __builtin_strrchr which is optimized out at compile time.
- ARM, use __MODULE__ which returns the filename without path.
- IAR, specifiy the --no_path_in_file_macros compiler flag.
2018-03-26 18:52:24 +01:00
jeromecoutant 0b866b7d29 STM32L4 ADC correct internal channel management 2018-03-26 18:52:24 +01:00
jeromecoutant c9a727e1a5 STM32L4 ADC Internal Channel : correct sampling time 2018-03-26 18:52:24 +01:00
Martin Kojtal d07086c03d PR template: do not use task list 2018-03-26 18:52:24 +01:00
Martin Kojtal aca6620091 PR template: only one should be checked 2018-03-26 18:52:24 +01:00
Martin Kojtal 3fdce9bd39 PR template: fix task 2018-03-26 18:52:24 +01:00
Kevin Bracey c6ab7de915 Add volatile qualifiers to atomic functions
The atomic functions preserve volatile semantics - they only perform the
accesses specified. Add the volatile qualifier to the value pointer to
reflect this. This does not change existing caller code - it's
equivalent to adding a const qualifier to indicate we don't write to
a pointer - it means people can pass us qualified pointers without
casts, letting the compile check const- or volatile-correctness.

This is consistent with C11 <stdatomic.h>, which volatile-qualifies its
equivalent functions.

Note that this useage of volatile has nothing to do with the atomicity -
objects accessed via the atomic functions do not need to be volatile.
But it does permit these calls to be used on objects which have been
declared volatile.
2018-03-26 18:52:24 +01:00
Kevin Bracey b7441114fd Remove unnecessary casts
The volatile qualifier on the __LDREX/__STREX prototypes only means that
it's safe to use them on volatile objects. Doesn't mean you actually
have to pass them volatile pointers.

Adding the volatile is a bit like doing strlen((const char *) ptr)
because you've got a non-const pointer.
2018-03-26 18:52:24 +01:00
Christopher Haster 1a2b41ce34 equeue: Added profiling reports to Travis 2018-03-26 18:52:24 +01:00
Amanda Butler 5cf249ac4c Copy edit README.md
Copy edit for active voice, branding, spelling and other minor grammar fixes.
2018-03-26 18:52:24 +01:00
Amanda Butler 1b581736c9 Copy edit README.md
Copy edit for branding, consistent tense and consistent style.
2018-03-26 18:52:24 +01:00
Hugues de Valon 9502d6b7c5 CM3DS: switch to larger memories for code and data
This patch changes the linker files and defines to use the ZBT SSRAM
instead of the FPGA Block RAM for code and data.
The section 4.1.1, Code and RAM memory map, of the CM3DS Eval RTL and
testbench user guide explains the available memories.
This switch improves code memory from 256 kB to 4 MB and data memory
from 128 kB to 4 MB.

However, the ZBT SSRAM1 for code memory begins at 0x00400000 while the
processor can only boot at address 0x00000000 which means that it
expects the vector table to be at that address. That is why we have to
create 2 load regions in the linker scripts: one with only the vector
table at address 0x0 and one with code + data at address 0x00400000.
Because of these two load regions, linker will produce different
behaviours:
    * GCC_ARM and IAR will only create 1 binary with both load regions
padding with 0 in between. The binary will then be very large (at least
4 MB) and the flash process will take longer.
    * ARM and ARMC6 will create 2 binaries for the two load regions. The
load addresses of the two binaries can be written in the images.txt file
on the MPS2 board. You can also use the --bincombined option of fromelf
utility to produce only 1 large binary.

This patch also adds the memory_zones.h file to try to put in common all
the memory addresses that were previously hard coded in the linker
scripts / startup files.

With that patch in, the simplest option is to directly use the .elf file
with the MPS2, which is only possible with mbb_v225.ebf and more recent
firmwares. It will now be the default for CM3DS.

This commit works with greentea thanks to the now merged pull request
ARMmbed/htrun#181 in order to copy .elf file to the MPS2 board.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-03-26 18:52:24 +01:00
Tony Wu 3445a3a241 armcc - remove fromelf output before regenerating
Fix armcc recompile errors during elf2bin stage. Errors shown as follows:

Elf2Bin: mbed-os-example-wifi
Error: Q0147E: Failed to create Directory .\BUILD\REALTEK_RTL8195AM\ARM\mbed-os-example-wifi.bin\IMAGE2_TABLE: File exists
Finished: 0 information, 0 warning and 1 error messages.
[ERROR] Error: Q0147E: Failed to create Directory .\BUILD\REALTEK_RTL8195AM\ARM\mbed-os-example-wifi.bin\IMAGE2_TABLE: File exists
Finished: 0 information, 0 warning and 1 error messages.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2018-03-26 18:52:24 +01:00
ccli8 0d8874cdce Remove unnecessary UART INT in UART DMA transfer
In UART DMA transfer, it is PDMA INT rather than UART INT to go INT path
2018-03-26 18:52:24 +01:00
mbedNoobNinja 5db8a42e0b Enabled os5 support for VK_RZ_A1H & synced with rest Renesas targets !
Mbed-os 5.4.7 was the last unofficial working support for this target.
Since Mbed-os 5.6.0, the support is now official and VK_RZ_A1H is now "codebase aligned" with GR_PEACH (RZ_A1H) & GR_LYCHEE (RZ_A1LU) !
2018-03-26 18:52:24 +01:00
bcostm c5650d847a NUCLEO_L433RC_P: fix LEDs pin assignment 2018-03-26 18:52:24 +01:00
Mika Leppänen 9d5908695b Corrected lwip adaptation TCP flagging 2018-03-26 18:52:24 +01:00
Christopher Haster 4c93aa262e littlefs: Fixed issue updating dir struct when extended dir chain
Like most of the lfs_dir_t functions, lfs_dir_append is responsible for
updating the lfs_dir_t struct if the underlying directory block is
moved. This property makes handling worn out blocks much easier by
removing the amount of state that needs to be considered during a
directory update.

However, extending the dir chain is a bit of a corner case. It's not
changing the old block, but callers of lfs_dir_append do assume the
"entry" will reside in "dir" after lfs_dir_append completes.

This issue only occurs when creating files, since mkdir does not use
the entry after lfs_dir_append. Unfortunately, the tests against
extending the directory chain were all made using mkdir.

Found by schouleu
2018-03-26 18:52:24 +01:00
Mudassar Hussain a8cde30c2d Removed strncmp 2018-03-26 18:52:24 +01:00
Mudassar Hussain 6d4e280160 Cellular: update attach test 2018-03-26 18:52:24 +01:00
Deepika aad97a6d34 dir seek fixed - dptr was not updated before checking 2018-03-26 18:52:24 +01:00
jeromecoutant f2db21f71d STM32 LPTICKER : optimize RTC wake up timer init
Division in a while loop is removed
2018-03-26 18:52:24 +01:00
Mirela Chirica 3cbfd3faad Quectel BC95 echo test fixes
Fixing get host by name and iterate send/recv socket operations.
2018-03-26 18:52:24 +01:00
Mirela Chirica b620a35ed3 Use of APN lookup decision logic fixed 2018-03-26 18:52:24 +01:00
Mirela Chirica 79fa5775b4 Fix wrong header define name 2018-03-26 18:52:24 +01:00
Mirela Chirica a708296f29 Release AT handler if network not created 2018-03-26 18:52:24 +01:00
Mirela Chirica 5cb29a7ea4 Own SIM state retrieval for Quectel BC95 2018-03-26 18:52:24 +01:00
Cruz Monrreal II 95ca5de41d Disabled flash clock and cache test for NRF52 MCUs. This is meant to be a temporary fix until the issue has been root caused, and Jenkins CI is no longer intermittently failing. 2018-03-26 18:52:24 +01:00
Hugues de Valon f2dcff5e4a Add ASM include flags in uvision export
When exporting to a uvision project, the include flags are not put in
the assembly compilation line. When assembling the files containing
includes, the search path will then fail. This patch adds the include
paths to the Assembly sequence, as it is done for compilation.
This issue was found in the pull request ARMmbed/mbed-os#6168.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-03-26 18:52:24 +01:00
Hugues de Valon cd8f5834c3 Add ASM flags virtual path for make export
When exporting a mbed project to make_armc5, the include options (-I)
of the ASM flags are not pointing to the good folder. It should be
pointing to the root mbed-os folder and not the one in BUILD.
This issue was found in the pull request ARMmbed/mbed-os#6168.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-03-26 18:52:24 +01:00
Jimmy Brisson 4611bb699e Correct type issue in export arg parsing 2018-03-26 18:52:24 +01:00
Jimmy Brisson 40d9b3eef8 Correct syntax for mbed export in Py3 2018-03-26 18:52:24 +01:00
Jimmy Brisson 2df7de25dc Correct Realtek post-build script to work in the online compiler 2018-03-26 18:52:24 +01:00
li-ho 84c1aee569 Fix on chip flash minimal programmable unit size
- sector size is 0x800 bytes
- writeable unit size is 0x8 bytes
- flash start address is 0x0
- total ADuCM3029 on chip flash size is 0x40000 bytes
- total ADuCM4050 on chip flash size is 0x7F000 bytes
2018-03-26 18:52:24 +01:00
Bartek Szatkowski 5e2977f256 Fix doxygen for ITM HAL 2018-03-26 18:52:24 +01:00
bcostm 42e3be8bfe DISCO_L496AG: remove morpho connector in targets.json 2018-03-26 18:52:24 +01:00
bcostm b33c5240a6 DISCO_L496AG: add entry in mbed_rtx.h 2018-03-26 18:52:24 +01:00