Commit Graph

13796 Commits (ed6a8d8b7d156975763a84a6b0e6b974768da76e)

Author SHA1 Message Date
Clemens Mandl 035fe91ebd Fixed a bug with multiple Sub-Directories with same name 2018-02-09 14:18:40 +00:00
Christopher Haster 3a8da4c24c Added pretty bar printing for compile output
Looks like this:

    Building project mbed-os-prettyoutput (ARCH_PRO, GCC_ARM)
    Scan: .
    Scan: env
    Scan: mbed
    Scan: FEATURE_LWIP
    Text 70.5KB Data 2.72KB BSS 7.43KB                 ROM 73.2KB RAM 10.1KB
    ROM [|||||||                                             ]  73.2KB/512KB
    RAM [||||||||||||||||                                    ]   10.1KB/32KB
    Image: BUILD/ARCH_PRO/GCC_ARM/mbed-os-prettyoutput.bin

If you build a target without a cmsis-pack it looks like this:

    Building project mbed-os-prettyoutput (ARM_BEETLE_SOC, GCC_ARM)
    Scan: .
    Scan: env
    Scan: mbed
    Scan: FEATURE_BLE
    Text 99KB Data 2.84KB BSS 13KB ROM 102KB RAM 15.8KB
    Image: BUILD/ARM_BEETLE_SOC/GCC_ARM/mbed-os-prettyoutput.bin

And the old behaviour of displaying the memap table can be brought back
by passing the --stats-depth parameter
2018-02-09 14:18:40 +00:00
Phyo Kyaw 454545aba2 Updated exporter for e2 studio: added new launch file 2018-02-09 14:18:40 +00:00
Kevin Bracey 6e2584e39e Correct return value of nsapi_dns_query_multiple
Documentation states that nsapi_dns_query_multiple returns the number of
addresses found on success - it was returning 0.

Overloads using SocketAddress are relying on the return value, meaning
those calls didn't work at all.

Fixes #5921.
2018-02-09 14:18:40 +00:00
jeromecoutant 73ed270d2d STM32 NUCLEO F413ZH and L433RC : STDIO configuration
#5795 patches are missing for these 2 targets
STDIO_UART_TX and STDIO_UART_RX can be now user defined
2018-02-09 14:18:40 +00:00
TomoYamanaka 5b25f79f8d RZ_A1LU: cmsis nvic include fix
To get cmsis nvic definitions, I added the process that include "cmsis_nvic.h" in cmsis.h.
Relation PR is #5890.
2018-02-09 14:18:40 +00:00
TomoYamanaka 32ed0f7593 Modify the arrangement of "{" that shows the function start
Regarding "{" that show the function start, I modified the the arrangement from right of function to new line.
2018-02-09 14:18:40 +00:00
TomoYamanaka 856737cb74 Add license header on top in reserved_pins.h
I modified the lack of license header in the below header files.
- targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_RZ_A1H/TARGET_MBED_MBRZA1H/reserved_pins.h
- targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE/TARGET_MBED_MBRZA1LU/reserved_pins.h
2018-02-09 14:18:40 +00:00
TomoYamanaka 884d02dc31 Support TRNG function for GR-LYCHEE
I supported the TRNG function when target is GR-LYCHEE.
GR-LYCHEE generates TRNG by acquiring the random number of Wifi module(ESP32) incorporated in it using I2C.
2018-02-09 14:18:40 +00:00
TomoYamanaka 133f4043c2 Add the definition for GR-LYCHEE in mbed_rtx.h
In mbed_rtx.h file, I added the definition for GR-LYCHEE to use the "Dynamic Heap" processing when the target is GR_LYCHEE.
2018-02-09 14:18:40 +00:00
TomoYamanaka e1b7f641de Add startup processing having CMSIS5/RTX5 been available on GR-LYCHEE
For supporting to CMSIS5/RTX5, I added the start-up processing of 3 toolchains (ARMCC, GCC_ARM, IAR) and the register definition of RZ/A1LU specific.
In addition, I added the linker script files to implement the dynamic HEAP the same as GR-PEACH(RZ/A1H).
2018-02-09 14:18:40 +00:00
TomoYamanaka e54f6c7459 Enable exporter for GR_LYCHEE is a Renesas new target board
I added GR_LYCHEE as a new target board in DS-5, e2studio and IAR export.
2018-02-09 14:18:40 +00:00
TomoYamanaka 50d4c258d4 Add GR_LYCHEE as a new target board in terget.json, build_travis.py and tests.py
I added GR-LYCHEE's configuration in targets.json file. Also, I added GR_LYCHEE as a Renesas new target board in build_travis.py and tests.py.
2018-02-09 14:18:40 +00:00
Cruz Monrreal caeaa49d68
Merge pull request #5954 from ARMmbed/release-candidate
Release candidate for mbed-os-5.7.4
2018-01-29 18:22:46 -06:00
TomoYamanaka 0c344ffd58 Add "RZ_A1XX" label for commonizing in targets.json
I added the "RZ_A1XX" label for commonizing the setting in targets.json, and inherited in both RZ_A1H and VK_RZ_A1H.
2018-01-27 01:53:15 -06:00
TomoYamanaka da01e544c9 Modify the lack of copyright to header files
I modified the lack of copyright in the below header files that I added for commonizing the RZ_A1 related files.
- targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_RZ_A1H/mbed_drv_cfg.h
- targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_VK_RZ_A1H/mbed_drv_cfg.h
2018-01-27 01:53:15 -06:00
TomoYamanaka d1c21109ff Add the function declarations of WEAK attribute to use LWIP on GR-LYCHEE
I added the function declarations of Ethernet functions that have a WEAK attribute. Although several Ethernet functions was called in rza1_emac.c, GR-LYCHEE don't have Ethernert feature. But there may be case that GR-LYCHEE uses LWIP feature.
In this case, since GR-LYCHEE will occur the build error, I addressed the error by defining the functions with a WEAK attribute. For reason of WEAK attribute, there is no influence in GR-PEACH and VK_RZ_A1H that have Ethernet feature.
2018-01-27 01:53:14 -06:00
TomoYamanaka 70f017cdaa Modify the TYPO of debug info when using LWIP in RZ/A1 related
I modified the debug message when using LWIP in RZ/A1 related mbed boards.
In eth_arch_enetif_init(), sys_thread_new() was called and task name is appeared as debug information, but task name for debug was a mistake.
2018-01-27 01:53:14 -06:00
TomoYamanaka 78bd1e3e4b Performance improvement of LWIP communication in RZ_A1 related
For LWIP communication speedup in RZ_A1 related, I changed the below macro value and added the definition processing in RZ/A1 related header file(lwipopts_conf.h). For this reason, those macros are overrode by RZ/A1 related values, not default values.
2018-01-27 01:53:14 -06:00
TomoYamanaka 5a08da0807 Change the values of RZ_A1 related "extra_labels" in targets.json
As a result of revision of folder structure, I changed the values of "extra_labels" of RZ_A1-related in targets.json.
2018-01-27 01:53:14 -06:00
TomoYamanaka 73a5c55010 Commonalize the files in "targets/TARGET_RENESAS/TARGET_RZ_A1XX" directory
I made be available in common whatever the board related to RZ_A1 in the below files.
- Since there are the table code of Pinmap differs for each board, I moved the code to "PeripheralPins" file for each board, and changed to include PeripheralPins.h.
  analogin_api.c, can_api.c, gpio_irq_api.c, i2c_api.c, pinmap.c, port_api.c, pwmout_api.c, serial_api.c, spi_api.c and us_ticker.c

- Since there are some board-specific processes, I enclosed the processes with "#ifdef" and rearranged the functions to make be easier to enclose.
  can_api.c, ethernet_api.c and serial_api.c

- Since there are the driver configuration values differs for each board, I added "mbed_drv_cfg.h" file for each board and defined macros for the values, and changed to refer to the macros.
  can_api.c, gpio_api.c, pwmout_api.c and rtc_api.c
2018-01-27 01:52:39 -06:00
TomoYamanaka 7d270160d0 Revise the folder structure in "targets/TARGET_RENESAS" directory
In "targets/TARGET_RENESAS" folders, same as Cortex-M targets, I changed the folder structure to combine files that can be shared as RZ/A1 related.
 And I renamed the folder name to "TARGET_RZ_A1XX" in order to make commonality explicit.
- "targets/TARGET_RENESAS" folder
  <before>
  \targets\TARGET_RENESAS\TARGET_RZ_A1H
  \targets\TARGET_RENESAS\TARGET_VK_RZ_A1H
  <after>
  \targets\TARGET_RENESAS\TARGET_RZ_A1XX
2018-01-27 01:51:06 -06:00
TomoYamanaka b81ad2c166 Commonize RZ_A1 related folders placed in "FEATURE_LWIP" directory
In the below "features/FEATURE_LWIP" folders, same as Cortex-M targets, I changed the folder structure to combine files that can be shared as RZ/A1 related. And I renamed the folder name to "TARGET_RZ_A1XX" in order to make commonality explicit.
- "features/FEATURE_LWIP" folder
  <before>
  \features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_RZ_A1H
  \features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_VK_RZ_A1H
  <after>
  \features\FEATURE_LWIP\lwip-interface\lwip-eth\arch\TARGET_RZ_A1XX
2018-01-27 01:51:04 -06:00
chrisyang 9ee1b249b4 rtl8195am - remove irrelevant files 2018-01-27 01:48:32 -06:00
chrisyang e38489980c rtl8195am - add missing changes 2018-01-27 01:48:18 -06:00
chrisyang 05bcc9a953 rtl8195am - restructure target files
restructure target files to better sync with Ameba sdk base
2018-01-27 01:48:01 -06:00
bcostm d048ec2fa8 Use legacy CAN api 2018-01-27 01:37:26 -06:00
bcostm 5bb6edc952 Update stm32l4xxxx.h files 2018-01-27 01:37:26 -06:00
bcostm 4c7f0e6e5b Update stm32l4xx.h files 2018-01-27 01:37:25 -06:00
bcostm 9971ad27ca Update system_stm32l4xx.c with latest version 2018-01-27 01:37:25 -06:00
bcostm fb71917adb Remove release notes file 2018-01-27 01:36:57 -06:00
bcostm 6b5302c8f5 Add more comments 2018-01-27 01:36:38 -06:00
bcostm 5fa45e827a L4 ST CUBE V1.11.0
Update to STM32CubeL4 V1.11.0

Conflicts solved:
	targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L433xC/device/stm32l433xx.h
	targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/device/stm32l4xx.h
	targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/device/stm32l496xx.h
	targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/device/stm32l4xx.h
	targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_conf.h
	targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_def.h
	targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_i2c.c
	targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_spi.h
2018-01-27 01:35:20 -06:00
Christopher Haster d6db9b5263 littlefs: Fixed file truncation without writes
In the open call, the LFS_O_TRUNC flag was correctly zeroing the file, but
it wasn't actually writing the change out to disk. This went unnoticed because
in the cases where the truncate was followed by a file write, the
updated contents would be written out correctly.

Marking the file as dirty if the file isn't already truncated fixes the
problem with the least impact. Also added better test cases around
truncating files.
2018-01-27 00:59:16 -06:00
Cruz Monrreal II‰ baada69442 Update Mbed version block for patch release 2018-01-27 00:58:05 -06:00
Przemyslaw Stekiel 47656776dd Add RTC time test. 2018-01-27 00:57:57 -06:00
Matthias L. Jugel c983f0f891 flatten the compiled files list 2018-01-27 00:57:57 -06:00
Matthias L. Jugel b055db154b use the normal name without cmake- prefix 2018-01-27 00:57:57 -06:00
Matthias L. Jugel 0087bc28cb add link library paths to build 2018-01-27 00:57:56 -06:00
Matthias L. Jugel ca09a299d6 add ci build operations 2018-01-27 00:57:56 -06:00
Matthias L. Jugel e332d5c23d change linking stage (dependencies), print built hex file name 2018-01-27 00:57:56 -06:00
Matthias L. Jugel 49e5fd0b10 fix linker issue 2018-01-27 00:57:56 -06:00
Matthias L. Jugel 441cd56acd add handling of sub-dependencies, fix profile selection 2018-01-27 00:57:56 -06:00
Matthias L. Jugel 5e669e0599 simplify the complicated removal of dependency sources add hex file generation 2018-01-27 00:57:56 -06:00
Matthias L. Jugel bb6081eb5b explain code, fix naming, work on linking 2018-01-27 00:57:56 -06:00
Matthias L. Jugel 706e133ee8 add cmake exporter for CLion use 2018-01-27 00:57:55 -06:00
Russ Butler c5d5718ed4 Remove tickless assert for tick count
Remove the assert that the tick count of the OS matches the tick
count of the tickless timer as this occurs frequently when
debugging. This is because the function svcRtxKernelResume
only increments the OS's tick count until the next wakeup event
so if the device was halted by a debugger past the next wakeup
event the tick counts will be out of sync.
2018-01-27 00:57:55 -06:00
Russ Butler f0b9add71e Fix clearing of ISTAT in Kinetis USB
The ISTAT register is write 1 to clear. Because of this ORing this
register with itself fill clear all bits that are set. This patch
updates the code to use plain assignment so only desired
bit is cleared.
2018-01-27 00:57:55 -06:00
Russ Butler 40125cf121 Remove use of deprecated attach in USB
Attach callbacks with the assignment operator rather than with the
deprecated attach function. This fixes deprecation warnings.

This patch also adds the ability to attach a Callback directly.
2018-01-27 00:57:55 -06:00
Russ Butler 3205901e99 Fix local static initialization in USB
The local static initialization in USB was causing multiple problems:
-Configurable descriptor values are set only once
-USB descriptor initialization causes a trap in debug builds since
 this is acquiring a mutex in an interrupt handler
-Extra ram used since all descriptors  are in RAM

This patch fixes these problems by making fixed descriptors
static const so they are stored in flash and never need to be
initialized and by making descriptors that do change a member
of the class so they are always initialized when requested
rather than once though lazy static local initialization.
2018-01-27 00:57:55 -06:00