Commit Graph

25256 Commits (be2c2bed30b093723a3c8c26dba2b54d02c66a19)

Author SHA1 Message Date
Kevin Bracey 03f1ac3ffd Atomics: GCC fix for M23 (ARMv8-M baseline)
Add unified syntax directives to make the atomic assembler work when GCC
is building for M23.

GCC actually uses unified syntax when compiling C code, but puts
`.syntax divided` before each piece of inline assembly when targetting
Thumb-1 type devices like M0 and M23 for backwards compatibility. We can
overcome this with our own `.syntax unified`.  The command-line option
`-masm-syntax-unified` intended to override this globally has been
broken from GCC 6 to 8.0.
2019-05-29 16:48:41 +03:00
Hugues Kamba e12889d8e1 microlib support: Fix build with Arm Compiler 6 and MicroLib
Building binaries with MicroLib and Arm compiler 6 has been failing
because of a bug in Arm compiler 6. The compiler introduces a
symbol, `__scanf_mbtowc`, which is not present in MicroLib C library.

The present commit adds a weak reference to the symbol to allow a
successful linkage. This is a temporary fix until the bug in the
compiler is fixed. It should be removed after the compiler bug is fixed.
2019-05-29 14:42:28 +01:00
Antti Kauppila 77e8374058 Cellular: Removed boiler plate code 2019-05-29 16:17:08 +03:00
Laurent Meunier 6f46fd3476 Add extra idle debug stack size in case all STATS are enabled 2019-05-29 13:19:25 +02:00
Ari Parkkila 73164710af Cellular: Fix socket connect on UBLOX_AT driver 2019-05-29 03:19:07 -07:00
Laurent Meunier 19b843d530 timeout_tests: do not call sleep from test thread
This is up to scheduler to call sleep when threads are inactive.
So the thread should simply wait for the semaphore for ever (or test timeout).
2019-05-29 11:48:36 +02:00
ccli8 b4e5a53f48 Exclude mbed-hal-spm test for TrustZone chips
This is because for TrustZone chips like M23/M33, SecureFault is implemented in
secure-side and cannot pass on to non-secure side.
2019-05-29 16:09:03 +08:00
jeromecoutant 58994d88cd STM32H7: flash issue while erasing sector in Bank 1 2019-05-29 09:31:30 +02:00
Teppo Järvelin 8922eeb014 Cellular: add method to set authentication type to CellularContext
Authentication type must be able to set. It was hard coded to CHAP.
Added unit tests for CellularContext to be able to add test for new function.
2019-05-29 09:46:15 +03:00
Ronny Liu 8dabdd7bed bootloader support for GD32_F450ZI 2019-05-29 14:40:03 +08:00
Martin Kojtal 9cc1caa031
Merge pull request #10596 from kjbracey-arm/sem_acquire
Introduce Semaphore::acquire methods
2019-05-29 06:22:30 +01:00
Martin Kojtal cc491812a8
Merge pull request #10427 from kjbracey-arm/new_standards
Set compilers to C++14 and C11
2019-05-28 20:34:00 +01:00
Martin Kojtal 8fc2a3c92a
Merge pull request #10675 from 0xc0170/update-mbedtls-2.18.0-rc1
Update mbedtls 2.18.0 rc1
2019-05-28 20:24:18 +01:00
George Psimenos 9f66347bd3 Make buffer parameter const 2019-05-28 15:58:19 +01:00
George Beckstein af99f5ae1e Removed incorrect comment 2019-05-28 10:48:09 -04:00
aglass0fmilk 67cc3b0faf Added spdx identifiers and fixed indentation in targets.json 2019-05-28 10:48:09 -04:00
George Beckstein cd3d939b5d Astyle fixed USBPhy_Nordic.cpp 2019-05-28 10:48:09 -04:00
George Beckstein 5386b87693 Removing systick edit from sdk_config.h 2019-05-28 10:48:09 -04:00
George Beckstein d8fbdfcac3 Disabling systick 2019-05-28 10:48:09 -04:00
George Beckstein 058060711d Revert adding USB to STM32F407VG target 2019-05-28 10:48:09 -04:00
George Beckstein 002df471e0 Changed formatting, check if endpoint is stalled in unstall. Added errata header 2019-05-28 10:48:09 -04:00
aglass0fmilk 457691f392 Fixed failure on endpoint test data toggle reset (under Windows): "Data toggle not reset when calling ClearFeature(ENDPOINT_HALT) on an endpoint that has not been halted." 2019-05-28 10:48:09 -04:00
George Beckstein 57de05c54b Added in code to fix deepsleep underflow. Nullify event handler member variable. 2019-05-28 10:48:09 -04:00
George Beckstein cc4d8e6d75 Lock sleep when USB is initialized
Added logic to lock deep sleep when USB is initialized to prevent malfunctioning. This is consistent with the other drivers. See PR ARMmbed/mbed-os#9879
2019-05-28 10:48:09 -04:00
George Beckstein e006666527 Autoformatted with astyle 2019-05-28 10:48:09 -04:00
George Beckstein 911c799de0 Fixed some comments 2019-05-28 10:48:09 -04:00
George Beckstein 0fd7dcaa4e Fixed IRQ_ENABLE call to IRQ_DISABLE (oops). 2019-05-28 10:48:09 -04:00
George Beckstein 1ab27aff1f Finished compatibility changes for nrfx renaming 2019-05-28 10:48:09 -04:00
George Beckstein 2bd024d174 Fixing compatibilities with new nrfx drivers 2019-05-28 10:48:09 -04:00
George Beckstein 5d86c3b36f Removed redundant virtual status transfer notifications. 2019-05-28 10:48:09 -04:00
George Beckstein 40ee528479 Added workaround for "unloading" IN endpoints after unstalling. Disable and then reenable when USBPhyHw::endpoint_unhalt() is called. 2019-05-28 10:48:09 -04:00
George Beckstein 7e15a5b54a Removed unnecessary logic and changed round robin DMA scheduling 2019-05-28 10:48:09 -04:00
George Beckstein 8c176c34ef Added in flag for preventing double IRQ triggering and added asserts for Nordic driver calls 2019-05-28 10:48:09 -04:00
George Beckstein 9e61bbc4e3 Ignore events that happen when an endpoint is stalled/halted 2019-05-28 10:48:09 -04:00
George Beckstein 54b72d2eb3 Added a return from the virtual status transfer software-triggered interrupt. Not entirely sure this is appropriate. 2019-05-28 10:48:09 -04:00
George Beckstein cfea14ce6d Added simulated status stage interrupt 2019-05-28 10:48:09 -04:00
George Beckstein 171c8fa8e5 Trying virtual status stage and generated interrupt 2019-05-28 10:48:09 -04:00
George Beckstein 1babcd1011 Added setup status enum and removed some old commented out code 2019-05-28 10:48:09 -04:00
George Beckstein 94d01a99f3 Implemented USBPhyHw::unconfigure() as it was causing configuration changes to fail. Endpoints were not being removed properly in the Nordic driver 2019-05-28 10:48:09 -04:00
George Beckstein 4b744c86af Added data toggle clearing to removing endpoints. Reworked aborting endpoints in nordic driver to prevent an ASSERT when it is called on ISO endpoints 2019-05-28 10:48:09 -04:00
George Beckstein 859329fb2e Changed a little formatting 2019-05-28 10:48:09 -04:00
George Beckstein dde7bffb87 Added code to ignore ZLP packets on the ISOOUT endpoint... not fixing issue yet 2019-05-28 10:48:09 -04:00
George Beckstein d3844a181c Removed function call for SOF event -- frame counter is already included in data from usb event 2019-05-28 10:48:09 -04:00
George Beckstein 0320ebc1d8 Removed 0 max packet size assert for ISO endpoints. Ensured usbd_ep_abort would not be called on ISO endpoints (this currently causes an ASSERT in the Nordic driver 2019-05-28 10:48:09 -04:00
George Beckstein 608e326942 Fixed bug causing usb_control_stall_test to fail intermittently. Preparing the Nordic HW for the status stage of a control transfer would sometimes cause the HW to automatically ACK an "invalid" command during the control stall test. This would cause the test to fail (because an invalid request was not stalled). 2019-05-28 10:48:09 -04:00
George Beckstein c006888557 Reviewing functions. Added critical sections to some functions that access state information. 2019-05-28 10:48:09 -04:00
George Beckstein f00053820b Removed disable from disconnect to see if it affects the success of the soft reset test. 2019-05-28 10:48:09 -04:00
George Beckstein 09c5982a4b Added EP0 stalls to setup event handler 2019-05-28 10:48:09 -04:00
George Beckstein 4a735cb31e Added in triggers to synchronize control transfer stages with what the hardware expects. First working example! 2019-05-28 10:48:09 -04:00
George Beckstein bb65ee0ef6 Non-working custom feeder. Modified nordic driver to disable automatic EP0STATUS task triggering at end of DMA transfer 2019-05-28 10:48:09 -04:00