Commit Graph

30421 Commits (ac7389de587d7cd0f8a63d3896f7f20a5653962c)

Author SHA1 Message Date
Uruloke 32d70027a5 Fix setting the QE bit on ISSI Flash memories
By default QSPIFBlockDevice assumes a Flash memory have two Status registers and when writing the Status registers it writes 2 bytes using the WRSR instruction. This will not work on a ISSI Flash memory as they only have a single status register and attempting to write two bytes using WRSR will cause it to ignore the request and be unable to set the QE bit.

ISSI datasheet specifies that the WRSR instruction only write a single byte so override the number of status registers for ISSI Flash memories.
2020-05-08 11:13:34 +02:00
Malavika Sajikumar 74bd04f381 Cleaning up PinNames.h for SDP-K1 board.
Added pin description comments to Arduino header pins and LED4.
Added I2C alias names.
Removed Oscillator and DEBUG pin definitions.
Use USBTX and USBRX for serial communications back to PC. Do not use STDIO_UART_TX and STDIO_UART_RX
2020-05-07 14:44:53 -07:00
Martin Kojtal 1b2a68ae20
Merge pull request #12941 from kjbracey-arm/chrono-timeout-fix
Correct Timeout rescheduling
2020-05-07 21:32:37 +02:00
Rajkumar Kanagaraj b6fa3cb072 Fix the USB MSD greentea host side pyusb_msd.py script 2020-05-07 18:37:43 +01:00
Kyle Kearney d22e32b100 Update WHD to v1.90.2 2020-05-07 10:08:50 -07:00
Kyle Kearney 9d0eb2f350 Update psoc6pdl to v1.5.1 2020-05-07 10:08:50 -07:00
Kyle Kearney ac8e8229a8 Update whd-bsp-integration to v1.0.1 2020-05-07 10:08:50 -07:00
Kyle Kearney c87682167b Update psoc6cm0p to v1.1.2 2020-05-07 10:08:50 -07:00
Kyle Kearney 3fd4441d8f Update abstraction-rtos to v1.2.1 2020-05-07 10:08:50 -07:00
Kyle Kearney bff67a931f Update PSoC 6 HAL to v1.2.1 2020-05-07 10:08:50 -07:00
Kyle Kearney f38e21fa6c Update PSoC 6 BSPs to verion 1.2 2020-05-07 10:08:50 -07:00
Kyle Kearney 6afa8fd35d Add udb-sdio-whd version 1.0.0 2020-05-07 10:08:50 -07:00
Kyle Kearney 250ca363a3 Update core-lib to v1.1.2 2020-05-07 10:08:50 -07:00
Kevin Bracey 8a5f58bf55 Convert Timeout test to Chrono
Now tests only the Chrono `attach(duration)` method, not the deprecated
`attach` and `attach_us` calls.
2020-05-07 17:41:06 +03:00
Kevin Bracey 25fad5d2a3 Add Timeout rescheduling test
The `Timeout` drift test uses rescheduling inside a callback, but it is
currently disabled due to lack of stability. Rescheduling using relative
timeouts inside the callback is a bad technique as it leads to drift, so
I understand the test being disabled. It is better to use `Ticker` for a
periodic callback or to use `Timeout::attach_absolute`.

Add a simpler test that just ensures the callback is called repeatedly -
this test would detect issue #12940, and should not have stability
problems.
2020-05-07 17:41:06 +03:00
Kevin Bracey 0a9e1db181 Correct Timeout rescheduling
Chrono changes "optimised" `Timeout::handler` in a way that broke users
who rescheduled the timeout during their attached callback.

Attempted optimisation is less necessary now that
`platform.callback-nontrivial` is set to false by default - that
setting reduces overhead of copying the `Callback` to almost nothing.
2020-05-07 17:00:59 +03:00
Martin Kojtal 7698b34e8c
Merge pull request #12938 from kjbracey-arm/chrono-sleep-correct
Correct core RTOS sleep routine timing
2020-05-07 13:58:56 +02:00
Kevin Bracey 3f67eed31c Correct core RTOS sleep routine timing
Chrono conversions inadvertantly changed the core timed sleep routine
used by the RTOS idle to use `OsTimer::update_and_get_tick()` instead of
`OsTimer::get_tick()`.

Correct this, and expand/clarify documentation and naming to try to
prevent recurrence.

Another minor fix observed while inspecting code - `OsClock` can't just
use `milliseconds`, it should match the period of `OsTimer`, which
theoretically can be different.
2020-05-07 11:43:01 +03:00
Martin Kojtal f13ae088d2
Merge pull request #12935 from MarceloSalazar/platform_cleanup4
Remove unsupported targets
2020-05-06 20:56:09 +02:00
Marcelo Salazar d413cf137f Remove IOTSS_BEID target 2020-05-06 16:45:46 +01:00
Marcelo Salazar 4083469d09 Remove Ublox targets 2020-05-06 16:39:29 +01:00
Marcelo Salazar c064035464 Remove KL82Z target 2020-05-06 16:04:51 +01:00
Marcelo Salazar 570df49abd Rename ADV_WISE_1510 target 2020-05-06 16:03:07 +01:00
Martin Kojtal c453a263d1
Merge pull request #12924 from jeromecoutant/PR_F4_PLL
STM32F4 bypass PLL configuration when already done by bootloader
2020-05-06 12:05:15 +02:00
jeromecoutant ab80e30bfe STM32F4 bypass PLL configuration when already done by bootloader 2020-05-05 18:06:10 +02:00
Rajkumar Kanagaraj 4ab794b47f Microlib slow division causes HAL_GetTick API performance issue, so optimized HAL_GetTick API to improve performance. 2020-05-05 16:24:53 +01:00
Martin Kojtal 029109a2f0
Merge pull request #12783 from VeijoPesonen/littlefsv2.2
LittleFSv2: Bring in v2.2
2020-05-05 16:03:20 +02:00
Martin Kojtal 9501ccd6c7
Merge pull request #12849 from jamesbeyond/exp_update
TEST: Update example test
2020-05-05 14:26:41 +02:00
Veijo Pesonen 62343a2746 littlefsv2: won't build block devices used for testing 2020-05-05 14:24:44 +03:00
Veijo Pesonen b81f069df9 baremetal: include littlefsv2 2020-05-05 14:24:44 +03:00
Veijo Pesonen 8760a56907 astyle: stops whitelisting .sh-files 2020-05-05 14:24:44 +03:00
Veijo Pesonen 62e04f71c3 littlefsv2: solve astyle issues
Adds littlefs-directory under littlefsv2 to .astyleignore as it's an
external component brought to Mbed OS. Issues with the adaption layer
fixed.
2020-05-05 14:24:44 +03:00
Veijo Pesonen 3dfbe139f2 LittleFSv2: Bring in v2.2 2020-05-05 14:24:44 +03:00
Martin Kojtal 72d1918a6c
Merge pull request #12919 from VeijoPesonen/fix_blockdevice
ExhaustibleBlockDevice: revert commit 10481f2
2020-05-05 13:17:31 +02:00
Chun-Chieh Li 9e9e2f18de Nuvoton: Change WDT clock source to LXT
LIRC has 40%~50% error rate, so change WDT clock source to LXT from LIRC.

NOTE: NANO100 series just supports LIRC-clocked WDT.
2020-05-05 17:50:20 +08:00
Chun-Chieh Li f6485cf92f Nuvoton: Fix failure to change WDT clock source
WDT clock source selection and its enablement bits are protected. Add unlock sequence before write to them.
2020-05-05 17:50:15 +08:00
Chun-Chieh Li d121ea89d1 Nuvoton: Fix WDT feature report with clock frequency 2020-05-05 17:50:10 +08:00
Chun-Chieh Li d823756cb7 Nuvoton: Enlarge WDT reset delay to avoid premature WDT reset
Consider the following factors to define WDT reset delay:
1. Cannot be too small. This is to avoid premature WDT reset in pieces of timeout cascading.
2. Cannot be too large. This is to pass Greentea reset_reason/watchdog_reset tests, which have e.g. 50~100 reset delay tolerance.
2020-05-05 17:50:05 +08:00
Michal Paszta 56ede3aa91 Fix unittests after ExhaustibleBlockDevice adjustments for wear leveling test 2020-05-05 12:10:41 +03:00
Veijo Pesonen 0278e38896 ExhaustibleBlockDevice: revert commit 10481f2
Reverts commit 10481f2f7e partially.
Changes made to ExhaustibleBlockDevice hides simulated flash degradation
which is the assumed behavior. Converted back to original behavior.
2020-05-04 22:21:25 +03:00
Martin Kojtal 918d679b06
Merge pull request #12913 from 0xc0170/doxygen_rtos_fix
usbcdc: provide doxygen only macro for doxy builder
2020-05-04 16:07:01 +02:00
Gabor Abonyi f7b7f457b6 Musca-B1: Fix I2C pinmap array
Change-Id: I00ba75d1a673a091cec9236c1e7dd71ac3994610
Signed-off-by: Gabor Abonyi <gabor.abonyi@arm.com>
2020-05-04 13:44:05 +02:00
Martin Kojtal 57b6df9b2e USBCDC: add doxy only to provide doxygen for this object always 2020-05-04 12:11:45 +01:00
Juha Heiskanen 3471c3b8c1 Add possibility to configure Mesh MAC neighbourtable size.
Accepted values are 5-255. MAC neighbour table size is limited to 8-bit number so thats why 255 is max value.
2020-05-04 13:51:01 +03:00
Martin Kojtal dbf05ceaed
Merge pull request #12735 from Patater/musca-tfm
Make MUSCA B1 and MUSCA A1 TF-M ready
2020-05-04 11:06:48 +02:00
Martin Kojtal ddf06fcc80
Merge pull request #12876 from artokin/update_802_15_4_rf_driver
802.15.4 STM S2LP driver update
2020-05-04 11:02:33 +02:00
Chun-Chieh Li 405ee472a6 DeviceKey: Fix test code with key size change in generate_root_of_trust() 2020-05-04 09:11:42 +08:00
Chun-Chieh Li bde1f56399 KVStore: Fix buffer overrun when device key size doesn't match
This change fixes buffer overrun when injected device key is 32-byte but read as 16-byte.
2020-05-04 09:11:38 +08:00
Kyle Kearney d058586c48 Remove CYW943012P6EVB_01 target 2020-04-30 11:12:00 -07:00
Kyle Kearney 96f9915fa0 Remove CY8CPROTO_063_BLE target 2020-04-30 11:12:00 -07:00