Commit Graph

29239 Commits (a15f6a43ad22c6c79fc4fb32173f9cd06f33841c)

Author SHA1 Message Date
Martin Kojtal 3d038e55ee
Merge pull request #12396 from felser/mtqn-IPV4V6
PDP Type needs to be IPV4V6
2020-02-14 14:56:48 +00:00
Martin Kojtal bac5ffec85
Merge pull request #12398 from michalpasztamobica/block_device_unittests
Add BlockDevice unittests and fix issues they revealed
2020-02-14 08:23:06 +00:00
Martin Kojtal a8188bfd4d
Merge pull request #12166 from hugueskamba/hk-baremetal-NRF52840_DK-fix
NRF52840_DK: Fix baremetal linker error
2020-02-14 08:21:27 +00:00
Stephen Blackheath e9dd6020b5 Nordic NRF52 GPIO API: Fix failure to clear the field 'skip_gpio_setup' in a local
gpiote input configuration data structure, resulting in non-deterministic failure
to initialize interrupt handling.
2020-02-14 10:08:23 +13:00
Filip Jagodzinski 56255adb9f Tools: Add a workaround for the GCC_ARM & LTO bug
This is a workaround for the GCC not using the strong symbols from
C files to override the weak symbols from ASM files. This GCC bug is only
present when building with the link-time optimizer (LTO) enabled. For
more details please see:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83967

This can be fixed by changing the order of object files in the linker
command; objects providing the weak symbols and compiled from assembly
must be listed before the objects providing the strong symbols.
To keep things simple, ALL object files from ASM are listed before
other object files.
2020-02-13 17:47:40 +01:00
Martin Kojtal 7e1443ad47
Merge pull request #12424 from OpenNuvoton/nuvoton_gpio-irq_rtc-lxt
Nuvoton: Fix GPIO IRQ and RTC
2020-02-13 15:56:33 +00:00
Filip Jagodzinski b03f974d03 GCC: Move link-time optimizer flags to extensions dir
Disable the lto for the default develop and release prifiles and move
the flags to tools/profiles/extensions/lto.json profile.

Usage:
mbed compile --profile release --profile tools/profiles/extensions/lto.json
2020-02-13 16:39:20 +01:00
Filip Jagodzinski 3e3bee4a21 GCC: Add the -u flag to keep the main() symbol
This fixes the undefined reference to 'main' that arose after adding
the "-flto" flag to compilation.

This was the case for combined "-Wl,--wrap,main" and "-flto" flags.
2020-02-13 16:39:20 +01:00
Filip Jagodzinski 516153e033 GCC: Enable link-time optimizer for develop profile 2020-02-13 16:39:20 +01:00
Filip Jagodzinski a5240da3b4 GCC: Use 'common' flags at link time
According to GCC man:
To use the link-time optimizer, -flto and optimization options should be
specified at compile time and during the final link. It is recommended
that you compile all the files participating in the same link with the
same options and also specify those options at link time.

Additionally, move the '-g3' flag out of 'common' flags in the debug
profile. Although the '-g' is correctly ignored by the linker, the
'-glevel' is not and causes a build error "ld: unrecognized option
'-g3'".
2020-02-13 16:39:20 +01:00
Filip Jagodzinski f87a8e0f52 GCC: Enable link-time optimizer for release profile 2020-02-13 16:39:19 +01:00
David Lin 57d3a14e0f
Minor optimisation to mcr20a-rf-driver code
This is a minor optimisation to the mcr20a-rf-driver code:
1. The function parameter is 'uint8_t *byteArray',  (byteArray == NULL) instead of using (byteArray == 0). The code is more readable.
2020-02-13 22:35:57 +08:00
Michal Paszta a3ba7d964d FlashSimBlockDevice: initialize blanks buffer 2020-02-13 15:19:11 +02:00
Martin Kojtal d7f3341974
Merge pull request #12339 from jeromecoutant/PR_MODEMVERSION
Cellular : add modem version in mbed trace
2020-02-13 13:04:30 +00:00
Martin Kojtal 7383860c57
Merge pull request #12422 from dustin-crossman/pr/cy_asset_update_2-7-20
Cypress Asset Update
2020-02-13 10:11:28 +00:00
Martin Kojtal 7634f3684a
Merge pull request #12419 from ARMmbed/fix-gh12290
Fix #12290: crash_log_parser on py3
2020-02-13 09:47:50 +00:00
Martin Kojtal d78e009284
Merge pull request #12411 from soleilplanet/L496AG_port
add FLASHIAP in targets.json for KVStore used in PDMC
2020-02-13 09:47:38 +00:00
Martin Kojtal 7658681a9e
Merge pull request #12409 from LMESTM/Fix_lpuart_deep_sleep
FIX: LPUART clock source selection should be left to serial driver
2020-02-13 09:45:41 +00:00
Martin Kojtal ffbd8b1994
Merge pull request #12408 from fkjagodzinski/fix-lpc408x_ethernet_api
LPC408X: Delete the ethernet_api.c files
2020-02-13 09:45:26 +00:00
Martin Kojtal df6d0729b1
Merge pull request #12407 from mprse/NRF_restricyed_uart_fix
Disable restricted uart peripheral for NRF52840
2020-02-13 09:45:16 +00:00
Martin Kojtal 667f8bbcd3
Merge pull request #12405 from zhiyong80/Customize-Etherhet-Phy-Addr-of-STM32-Boards
EthernetInterface fix detecting change of connection status on ARCH_MAX
2020-02-13 09:44:53 +00:00
Martin Kojtal ba2a1bc120
Merge pull request #12403 from OpenNuvoton/nuvoton_fpga-ci_i2c
FPGA: Enlarge timeout with mbed_hal_fpga_ci_test_shield-i2c
2020-02-13 09:22:42 +00:00
Martin Kojtal f502b4166e
Merge pull request #12378 from jamesbeyond/test_update
TEST: Refactor mbedmicro tests to use utest framework
2020-02-13 08:16:13 +00:00
Michal Paszta 34eb432b70 unittests: Fix memory leak in FlashSimBD test 2020-02-13 08:59:39 +02:00
Chun-Chieh Li 769781cfb3 M2351: Update PSA secure image/lib with RTC LXT 2020-02-13 11:24:02 +08:00
Chun-Chieh Li 4c9e0f1fcd M2351: Update non-PSA secure image/lib with RTC LXT 2020-02-13 11:24:02 +08:00
Chun-Chieh Li 9f9ca0acaa M2351: Fix CRYPTO_MODBASE() when crypto module is configured to secure
This bug results from BSP update:

-   CRPT: Base address of secure or non-secure crypto module, dependent on partition
-   CRPT_S: Base address of secure crypto module
-   CRPT_NS: Base address of non-secured crypto module
2020-02-13 11:24:02 +08:00
Chun-Chieh Li 834e1aad60 M2351: Fix delay code with RTC clock source
Explicitly configure RTC clock source to LXT
2020-02-13 11:24:02 +08:00
Chun-Chieh Li 28495bb075 M2351: Refine gpio_irq_set(...) with inconsistent GPIO_EnableInt(...) implementations
No logic change
2020-02-13 11:24:02 +08:00
Chun-Chieh Li 582c08c129 M2351: Refine code layout of PeripheralPins.c
No logic change
2020-02-13 11:24:01 +08:00
Chun-Chieh Li 4a1d612e90 Nuvoton: Fix delay code with RTC clock source
Explicitly configure RTC clock source to LXT

Update targets:

-   NUMAKER_PFM_NANO130
-   NUMAKER_PFM_NUC472
-   NUMAKER_PFM_M453
-   NUMAKER_PFM_M487/NUMAKER_IOT_M487
-   NUMAKER_M252KG
-   NUMAKER_IOT_M263A
2020-02-13 11:24:01 +08:00
Chun-Chieh Li 86fcae5b03 Nuvoton: Fix GPIO rising/falling edge interrupts cannot exist simultaneously
This is to pass mbed_hal_fpga_ci_test_shield-gpio_irq test.

Update targets:

-   NUMAKER_PFM_NANO130
-   NUMAKER_PFM_NUC472
-   NUMAKER_PFM_M453
-   NUMAKER_PFM_M487/NUMAKER_IOT_M487
-   NUMAKER_M252KG
-   NUMAKER_IOT_M263A
2020-02-13 11:24:01 +08:00
Dustin Crossman 563edb294d Store RTC century and RTC state information in persistent BREG register. 2020-02-12 15:05:26 -08:00
Dustin Crossman 3fdb820b26 Update psoc6hal to 1.1.1.11145. 2020-02-12 15:05:16 -08:00
Dustin Crossman a8331c28ce Update psoc6 core_lib to version 1.1.1.11109. 2020-02-12 15:05:05 -08:00
Dustin Crossman 5bd02f866e Update psoc6pdl to version 1.4.1.2240 2020-02-12 15:04:46 -08:00
Mark Edgeworth 2ad6f45d83 Fix #12290: crash_log_parser on py3 2020-02-12 14:56:35 +00:00
Maciej Bocianski 83a07836e4 queue test update
- extend mixed test with periodic events
- improve static event queue test
2020-02-12 14:41:35 +01:00
Maciej Bocianski 784393a919 equeue tests update
- test periodic user allocated events
- test user allocated events re-posting
- test unnecessary cancels of user allocated events
2020-02-12 14:41:17 +01:00
Martin Kojtal 69a2803319
Merge pull request #12401 from hugueskamba/hk-remove-float-in-ticker
Remove float symbols from apps that use the NFCController class
2020-02-12 13:12:46 +00:00
Martin Kojtal bde0f5660b
Merge pull request #12392 from GaborAbonyi/psa_crypto_fix
Fix psa_key_management_operations
2020-02-12 13:11:27 +00:00
Maciej Bocianski bc89974462 UserAllocatedEvent: set delay/period at event posting
Event delay/period can be modified by equeue so it has to be reset at every post.
2020-02-12 10:20:28 +01:00
Maciej Bocianski b4fac71325 user allocated events: fix event cancelling
for user allocated events use id for event state tracking
skip event canceling when already canceled or dispatched
2020-02-12 10:20:27 +01:00
Maciej Bocianski acfdc588af equeue: skip equeue_incid call for user allocated events while dispatching
User allocaded events doesn't utilize id field in a way that normal
event does, so we shouldn't call equeue_incid on it
2020-02-12 10:20:26 +01:00
jeromecoutant 0c8add6e28 DISCO_H747I_CM4 compilation issue
SCB_DisableDCache() function is only available for M7 core.
2020-02-12 09:14:58 +01:00
Alvin Lee 66413d4d4e add FLASHIAP in targets.json for KVStore used in PDMC 2020-02-12 15:11:28 +08:00
Laurent Meunier 3fd071404e FIX: LPUART clock source selection should be left to serial driver
The clock source selection of LPUART depends on System clocks but also on
the serial baudrate. There is a specific computation done in serial driver
targets/target_STM/serial_api.c

At first start-up the LPUART1 clock selected in SetSysClock was anyway
overridden by the serial driver, so this was of no effect. But in case
of deep sleep SetSysClock is called again, while the driver isn't, so
SetSyClock was corrupting the serial clock configuration.

So let's remove these few lines of code which are causing trouble.
2020-02-11 17:14:45 +01:00
Martin Kojtal 69a7d67699
Merge pull request #12391 from 0xc0170/fix_mergify_conflict
mergify: CI only if PR is without conflicts
2020-02-11 15:45:38 +00:00
Martin Kojtal 8e522056a0
Merge pull request #12404 from OpenNuvoton/nuvoton_m2351_bsp
M2351: Update BSP and bugfix
2020-02-11 15:43:10 +00:00
Filip Jagodzinski fc36b9594c LPC408X: Delete the ethernet_api.c files
Remove an obsolete HAL implementation from LPC408X to fix the GCC_ARM
build with the "-flto" flag.

With the lto enabled, unreferenced buffers defined in ethernet_api.c
were not excluded at link time overflowing the 16kB peripheral SRAM1
(ld error: "section '.AHBSRAM1' will not fit in region 'ETH_RAM'").

The Ethernet HAL API is deprecated in favor of EMAC.
2020-02-11 16:34:44 +01:00