Commit Graph

31679 Commits (23702ff2b3b1920d03fea0af0bcf8aaef1229850)

Author SHA1 Message Date
Lingkai Dong 23702ff2b3 Update include paths to SFDP.h 2020-11-26 17:31:31 +00:00
Lingkai Dong 5d2fbdc11e Move SFDP into blockdevice where it belongs to 2020-11-26 17:31:31 +00:00
Martin Kojtal b20278a5f4
Merge pull request #13964 from hugueskamba/hk_cmake_arm_fm_support
CMake: Add support for all ARM FM Mbed targets
2020-11-26 15:55:43 +00:00
Martin Kojtal 22c1c6c7cf
Merge pull request #13951 from LDong-Arm/NRF52_DK-baremetal
MCU_NRF52832 (NRF52_DK, SDT52832B): use two-region memory model to support MicroLib
2020-11-26 15:54:46 +00:00
Martin Kojtal aea691a67a
Merge pull request #13960 from harmut01/2260_erase_size_const
Add const keyword to get_erase_size declaration
2020-11-26 15:54:07 +00:00
Martin Kojtal 61e4b55a22
Merge pull request #13947 from LDong-Arm/erase_algorithm_fix
Fix erase type determination for [Q/O/]BlockDevice::erase()
2020-11-26 15:53:03 +00:00
Martin Kojtal c9ff692858
Merge pull request #13780 from JojoS62/PR-fix-H7-USB
STM32 H7: fix USB in sleep mode
2020-11-26 13:19:35 +00:00
Martin Kojtal d0cfc67652
Merge pull request #13962 from 0xc0170/cmake-fix-stm-armclang
STM: fix ARMClang sct files, using proper -E command
2020-11-26 13:13:34 +00:00
Hugues Kamba def23e18e0 Add ARM FM in the list of supported targets 2020-11-26 11:31:20 +00:00
Martin Kojtal dd432a387e
Merge pull request #13942 from paul-szczepanek-arm/securitydb-fix
ble: Fix persistence in SecurityDB
2020-11-26 11:17:28 +00:00
Lingkai Dong c41f7cb864 Fix integer type warnings in SFDP and *SPIFBlockDevice 2020-11-26 10:28:58 +00:00
Lingkai Dong fb0f9687e4 Initial unit test for SFDP
As a starting point, only sfdp_iterate_next_largest_erase_type(),
which the pull request is intended to fix, is tested. More test
cases shall be added in the future.
2020-11-26 09:55:47 +00:00
Hugues Kamba ec9c6cbc02 CMake: Add support for all ARM's FM Mbed targets
Add CMakeLists.txt files so all ARM's FM Mbed targets can be built with CMake
2020-11-25 14:55:17 +00:00
Martin Kojtal 66ca70af94
Merge pull request #13949 from LDong-Arm/fat_filesystem_test_fix
Fix mbed::Dir type handling in fat_filesystem
2020-11-25 14:38:18 +00:00
Martin Kojtal b5b0cfb2c6 STM32: fix H7 target definition in sct files 2020-11-25 14:12:26 +00:00
Martin Kojtal 483db06a5f
Merge pull request #13948 from rajkan01/simplify_ble_lib_inclusion
CMake: Simplify BLE library inclusion
2020-11-25 13:37:11 +00:00
Martin Kojtal fc16d2bae7 STM: fix ARMClang sct files, using proper -E command
This is required for ARMClang, otherwise there is an error with unknown command.
2020-11-25 13:35:36 +00:00
Lingkai Dong e0bd9a1c6a sfdp_iterate_next_largest_erase_type: return -1 if no erase type is applicable 2020-11-25 13:34:01 +00:00
Martin Kojtal 58c0319b28
Merge pull request #13958 from douardda/patch-1
Fix a typo in STM32F3's CMakeList.txt
2020-11-25 13:22:35 +00:00
Harrison Mutai 9857a4d63b Add const keyword to get_erase_size declaration
Add const to function declaration. Const objects cannot access const
safe functions, a compiler error is thrown if one tries to do so. This
helps ensure that the object calling the method will not be modified.
This is espescially desirable in functions where all we need to do is
query existing data and not make any alterations.
2020-11-25 13:09:06 +00:00
David Douard 5a4a34802b
Fix a typo in STM32F3's CMakeList.txt
A typo has been introduced preventing the STM32F303x8 to be buildable using the new cmake based build system.
2020-11-25 11:53:59 +01:00
Martin Kojtal 62faa46fb4
Merge pull request #13921 from hugueskamba/hk_remove_lpc55s69
TARGET_NXP: Remove support for LPC55S69
2020-11-25 10:03:17 +00:00
Martin Kojtal b7c2b77093
Merge pull request #13953 from rajkan01/add_nanostack_dependency_lib
Add nanostack dependency lib
2020-11-25 10:02:56 +00:00
Lingkai Dong ac86aff928 sfdp_iterate_next_largest_erase_type: do not modify type_mask
The supported erase types of a given flash region are indicated
in bitfields of the variable `type_mask`. Even if an erase type
is unused for the current chunk (e.g. size too large, unaligned, etc.),
its bitfield should NOT be cleared - the same erase type might
actually be useful for the next chunk.

The function argument is now a value instead of a reference.
2020-11-24 18:07:34 +00:00
Lingkai Dong 04915198d4 Fix mbed::Dir type handling in fat_filesystem
Full credits to @kjbracey-arm for the fix.

Co-authored-by: Kevin Bracey <kevin.bracey@arm.com>
2020-11-24 17:00:20 +00:00
Lingkai Dong b174edb282 MCU_NRF52832: use two-region memory layout (stack + heap) to support MicroLib
MicroLib is the lightweight C lib for the Arm toolchain and
used as the default C lib on bare metal builds with the Arm
toolchain. It requires two separate memory regions for stack
and heap.

The change is based on nRF52840.sct.
2020-11-24 16:35:02 +00:00
Martin Kojtal 6d89500dfe
Merge pull request #13935 from MultiTechSystems/mtqn-soft-power-on
Dragonfly Nano(MTQN): power on/off so soft_power_on() fix
2020-11-24 14:14:07 +00:00
Martin Kojtal ced4aa6e2d
Merge pull request #13939 from jeromecoutant/PR_LSEDRIVE
STM32: LSE DRIVE feature update
2020-11-24 14:13:52 +00:00
Martin Kojtal 9de73f89ef
Merge pull request #13932 from LDong-Arm/st_trace_verbosity
Reduce ST QSPI/OSPI trace verbosity to debug
2020-11-24 14:12:13 +00:00
Martin Kojtal b552127916
Merge pull request #13931 from jeromecoutant/PR_I2C_LEGACY
STM32 I2C: use correct HAL API
2020-11-24 14:12:05 +00:00
Martin Kojtal 214291b6be
Merge pull request #13930 from LDong-Arm/arm_compiler_macros
CMake: pass macros to ARM toolchain linker
2020-11-24 14:11:48 +00:00
Martin Kojtal 50262876c6
Merge pull request #13928 from hugueskamba/hk_cmake_clean_arm_toolchain_support
Clean remnant of experiment with ARM toolchain
2020-11-24 14:11:26 +00:00
Martin Kojtal 985fab4ea0
Merge pull request #13918 from hugueskamba/hk_removed_lpc11u6x
TARGET_NXP: Remove support for LPC11U6X
2020-11-24 14:10:35 +00:00
Martin Kojtal a1fc9cdad5
Merge pull request #13915 from 0xc0170/cmake-stm32
CMake: add all TARGET_STM targets
2020-11-24 14:09:28 +00:00
Martin Kojtal 59c03e1e75
Merge pull request #13914 from JeanMarcR/FLASH_API
STM32 FLASH API : add critical sections
2020-11-24 14:08:52 +00:00
Martin Kojtal 2f709cc13f
Merge pull request #13896 from jeromecoutant/PR_OSPI
STM32 OSPI support
2020-11-24 13:53:30 +00:00
Martin Kojtal 124afe79bb
Merge pull request #13755 from AGlass0fMilk/fix-init-os-timer
Fix MBED_ERROR call in init_os_timer
2020-11-24 13:38:46 +00:00
Martin Kojtal 57bbb4739b
Merge pull request #13085 from pea-pod/remove-deprecated-mbed-assert
Change MBED_STATIC_ASSERTs version for built-in
2020-11-24 13:38:07 +00:00
Rajkumar Kanagaraj d328af9edb CMake: Add nanostack dependency
- Added netsocket libraries to nanostack CMake with target_link_libraries as nanostack has dependency
2020-11-23 20:18:48 +00:00
Rajkumar Kanagaraj a964453edf CMake: target_link_library the BLE with CORDIO stack
- Security manager uses some feature from wsf which is part of the mbed-ble-cordio library so added target_link_library to link the BLE library to cordio stack lib.
2020-11-23 16:06:53 +00:00
Lingkai Dong 7525134532 [Q/O/]SPIFBlockDevice: remove logic for unaligned erase, as alignment is checked
[Q/O/SPIFBlockDevice::erase() begin with an alignment check,
after which unaligned erases should not happen or be allowed.

If the erase address is not aligned to the value returned by
sfdp_iterate_next_largest_erase_type(), it indicates an
internal error in erase table parsing which should not be
hidden.
2020-11-23 15:55:24 +00:00
Lingkai Dong 52627dbc59 sfdp_iterate_next_largest_erase_type: fix size check and add alignment check 2020-11-23 15:45:43 +00:00
Paul Szczeanek e71f452e9d fix missing return 2020-11-23 09:06:42 +00:00
Paul Szczeanek 63887d19a8 update the peer address when LTK has been found in old entry 2020-11-23 09:06:30 +00:00
Paul Szczeanek 187ed98d82 update the connected status of db entry 2020-11-23 09:06:05 +00:00
Paul Szczeanek 6f844e1a71 fix indexing in ble security db 2020-11-23 09:02:56 +00:00
jeromecoutant 29af76fcca STM32: LSE DRIVE feature update 2020-11-20 17:31:26 +01:00
reme 16e63dc108 STM32 FLASH API : add critical sections
See PR #13802 (for F4 board)

Concerned boards are

STM32F0
STM32F1
STM32F2
STM32F3
STM32F4
STM32F7
STM32G0
STM32G4
STM32H7
STM32L0
STM32L1
STM32L4
STM32L5

Adding test of return code of HAL_FLASH_Lock() function
Adding board STM32F4
Running AStyle
2020-11-20 08:03:24 +00:00
Leon 01b60c20a1 Update Dragonfly Nano(MTQN) power on/off so soft_power_on() performs a reset 2020-11-19 18:09:06 -06:00
George Beckstein 7571982606 Fix MBED_ERROR call in init_os_timer 2020-11-19 12:35:34 -05:00