Commit Graph

1838 Commits (20ac1c92661ccd459f235209f65d311c4c7d966d)

Author SHA1 Message Date
Ashok Rao 04270f75ba Adding MTB aliases to PinNames 2019-03-19 09:47:38 +00:00
Ashok Rao 01f2b0426d Adding STM S2_LP as a new target 2019-03-19 09:47:38 +00:00
Malavika Sajikumar 00863c2664 Renaming SDP-K1 to SDP_K1. 2019-03-18 15:50:14 -07:00
jeromecoutant 75a771c583 STM32H7 ADC internal channels 2019-03-18 16:55:37 +01:00
Ashok Rao 339f806c71 Removing redundant code.
MCO pins are not brought out on MTB / MCB design.
2019-03-18 12:37:27 +00:00
Ashok Rao e4f8b400f8 Adding STM32_F439 as a new MTB target 2019-03-17 19:20:43 +00:00
Martin Kojtal 4b358d63f9 Merge branch 'patch-10' of https://github.com/janjongboom/mbed-os into rollup 2019-03-15 08:44:24 +00:00
Martin Kojtal d6e81f5249 Merge branch 'PR_H743_A5' of https://github.com/jeromecoutant/mbed into rollup 2019-03-14 11:36:50 +00:00
Martin Kojtal 1bbf7d69d1
Merge pull request #9902 from wajahat-ublox/r412m_reset
Remove assertion of MDMRST in case of SARA-R4
2019-03-14 09:40:44 +01:00
Martin Kojtal 897d15a9bc
Merge pull request #9895 from mrcoulter45/issue-9890-fix
Fix for i2c_t object not being initialized to 0 causing timeout
2019-03-14 09:39:10 +01:00
Martin Kojtal b21211dd9f
Merge pull request #9884 from jeromecoutant/PR_F429_uARM
STM32F429 ARM MICRO startup file update
2019-03-14 09:38:33 +01:00
Martin Kojtal 76fe7267e7
Merge pull request #9637 from u-blox/C030_N211_Cellular_Driver
Cellular: UBLOX_C030_N211 Cellular API's
2019-03-14 09:11:06 +01:00
Malavika Sajikumar 27abeb993a Updating SPDX-License-Identifier. 2019-03-08 14:30:59 -08:00
Malavika Sajikumar 481c19e30d Adding support for SDP connector pins. 2019-03-08 10:28:04 -08:00
Malavika Sajikumar d4cc30c8f9 Fixing for Travis CI test fail. 5e9e140. 2019-03-08 10:11:26 -08:00
Malavika Sajikumar b8d4ad29da Adding SPDX identifier (year 2019) to the license. 2019-03-08 09:35:26 -08:00
Malavika Sajikumar 5e9e1404c8 Removing commented out lines. Added SDP connector pins. 2019-03-08 09:22:47 -08:00
Malavika Sajikumar 2ffa39ffc0 Adding support for SDP-K1. 2019-03-07 13:43:54 -08:00
Jan Jongboom f3614abc30
OdinWifiInterface is calling memcpy with a null pointer 2019-03-07 16:47:56 +01:00
Sarah Marsh c668472f01 NUCLEO_L073RZ: IAR linker script issue 2019-03-07 13:55:55 +01:00
Michael Coulter c59c1cb29d Fix for i2c_t object not being initialized to 0 causing timeout
For issue #9890
2019-03-05 11:35:18 -06:00
jeromecoutant 5839a8e7c5 NUCLEO_H743ZI: Arduino A5 is mapped on ADC3_IN6 2019-03-04 17:18:56 +01:00
Martin Kojtal 7c9a71846e
Merge pull request #9469 from kjbracey-arm/spi_muxing
SPI upgrade - per-peripheral mutex and GPIO-based SSEL
2019-03-01 18:38:27 +01:00
Martin Kojtal f559d03ae2
Merge pull request #9766 from deepikabhavnani/uarm_fixes
Update Toolchain Arm Micro scatter files
2019-03-01 16:54:27 +01:00
Kevin Bracey b12be6bb80 Rename SPI_COUNT to DEVICE_SPI_COUNT
Avoid collision with some HALs that already define SPI_COUNT.
2019-03-01 14:37:04 +02:00
Martin Kojtal 857cd9fba1
Merge pull request #9845 from jarlamsa/stm_spi_peripheral_name
Add spi_get_peripheral_name() to stm_spi
2019-03-01 12:15:04 +01:00
Wajahat Abbas b7b083e6a2 do not assert MDMRST in case of SARA-R4 2019-03-01 15:33:26 +05:00
Deepika 122549910e Add Crash report section to all uARM files 2019-02-28 19:54:38 -06:00
deepikabhavnani 944483b0f7 Add missing SHEBANG = #! armcc -E 2019-02-28 19:54:38 -06:00
deepikabhavnani 0ff2d42143 Heap and stack size picked from linker files,export symbols not needed 2019-02-28 19:54:38 -06:00
deepikabhavnani 0dc5561991 Guard RAM start and size defines 2019-02-28 19:54:38 -06:00
deepikabhavnani b598dc1f46 Target_STM: Add ARM_LIB_STACK and ARM_LIB_HEAP section
Instead of user defined symbols in assembly files or C files,
use linker scripts to add heap and stack - this is inconsistent
with ARM std linker scripts
2019-02-28 19:54:28 -06:00
Cruz Monrreal 4b9d07a1da
Merge pull request #9792 from sarahmarshy/nucleo-gcc-bootloader
NUCLEO_L073RZ Bootloader support
2019-02-28 18:21:14 -06:00
jeromecoutant 6e12fad543 STM32F429 ARM MICRO startup file update 2019-02-28 11:19:12 +01:00
Jarno Lamsa a9f0924f7b Add spi_get_peripheral_name() to stm_spi
This is to have support for per-peripheral mutex introduced in https://github.com/ARMmbed/mbed-os/pull/9469
Together fixes an issue seen in https://github.com/ARMmbed/mbed-os/issues/9149
2019-02-27 13:32:22 +02:00
Cruz Monrreal e1736cd06f
Merge pull request #9571 from mprse/fix_9523_rtos_less_issue
Update to 2-region model for HEAP and Stack Memory
2019-02-26 22:50:19 -06:00
Cruz Monrreal 4b13c8a212
Merge pull request #9768 from c1728p9/feature-hal-spec-usb-device
Bring USB Feature branch into master
2019-02-26 22:48:02 -06:00
Cruz Monrreal 03bcf28ff0
Merge pull request #9861 from jeromecoutant/PR_INTERRUPTIN
STM32 InterruptIn protection
2019-02-26 22:47:05 -06:00
Deepika e0b4b51d92 Revert "Update params in calls to LDREXW/STREXW to uint32_t"
This reverts commit 334b2d64b0.

This commit is not required any more as changes for this are already part
of master branch
2019-02-26 11:09:25 -06:00
jeromecoutant 675a7f915d STM32 InterruptIn protection 2019-02-26 16:58:47 +01:00
mudassar-ublox 6c347eafe5 C030_N211 cellular api refactoring 2019-02-26 17:28:01 +05:00
bcostm 28462d476a STM32F7 USB: add patch in CubeF7 hal driver 2019-02-22 10:53:22 -06:00
bcostm aa2b76a995 STM32L4 USB: move HAL_PCD_EP_Abort function
This function is for USB_OTG_FS devices only. Move it in the correct place (in "#ifdef USB_OTG_FS" area).
2019-02-22 10:53:22 -06:00
bcostm 4ca33aa266 STM32L4 USB: add patch in CubeL4 hal driver 2019-02-22 10:53:22 -06:00
bcostm 1e807a305e STM32F4 USB: add patch in CubeF4 hal driver 2019-02-22 10:53:22 -06:00
Russ Butler d08034c9ef Remove OR from ST endpoint activation
When activating an endpoint assign new data rather than ORing
data to it. This ensures that values set from the previous use
do not effect the current configuration.
2019-02-22 10:53:19 -06:00
Russ Butler 86e1d436e7 Alternate implementation of HAL_PCD_EP_Abort
Update the patch "Create HAL_PCD_EP_Abort" to fix bugs.
This patch adds the low level functions USB_EPStopXfer, USB_EPSetNak,
USB_EPClearNak and the high level function HAL_PCD_EP_Abort so that
transfers can be stopped.

The functions USB_EPSetNak and USB_EPClearNak allow nak to be enabled
or disabled for an endpoint, preventing or allowing further transfers.

The function USB_EPStopXfer stops pending reads and writes started by
USB_EPStartXfer along with clearing and masking any interrupts enabled
by USB_EPStartXfer.

The function HAL_PCD_EP_Abort aborts any transfers on the given
endpoint. When this function completes the transfer interrupt
is guarenteed not to fire for this endpoint. Furthermore, the size
of data transferred during an aborted read can be found by calling
the function HAL_PCD_EP_GetRxCount.

Other notes on this Change:

1.
Prior to this patch the interrupt USB_OTG_DOEPINT_EPDISD was not
handled. When an OUT endpoint was disabled this interrupt occurred
causing the CPU to get stuck repeatedly handling this interrupt. This
is because this interrupt was unmasked but nothing cleared this
interrupt. This patch also adds code to handle and clear this
interrupt to prevent a lockup.

2.
Stopping a transfer on an OUT endpoint requires global nak OUT to
be in effect. Even with this being done, having entries in the rx fifo
prevented an OUT endpoint from being disabled. This behavior is not
mentioned in the Reference Manual.
2019-02-22 10:53:18 -06:00
Russ Butler c4cf19ee3b Revert "Create HAL_PCD_EP_Abort"
Revert the patch "Create HAL_PCD_EP_Abort" in preparation for an
alternate fix.
2019-02-22 10:53:18 -06:00
Michel Jaouen ced1cbd0ed Create HAL_PCD_EP_Abort 2019-02-22 10:53:16 -06:00
jeromecoutant 21606569da STM32F4: replace CLOCK_SOURCE_USB by DEVICE_USBDEVICE 2019-02-22 10:53:15 -06:00
jeromecoutant 9b16d4fb5b NUCLEO_F103RB: replace CLOCK_SOURCE_USB by DEVICE_USBDEVICE 2019-02-22 10:53:15 -06:00
Sarah Marsh 22abea324d Modify linker scripts for IAR and ARM compilers to support bootloader on NUCLEO_L073RZ 2019-02-22 11:06:29 +00:00
Deepika 3fd5f53b51 Dynamic heap support will be breaking change for all targets in IAR 7.x
Reverting this feature till IAR 8.x is stable and supported in Mbed OS
for few releases

1. Revert "Add Dynamic heap support to IAR"

This reverts commit 8ee29bbfa2.

2. Revert "Splited RAM section not compatible with dynamic HEAP."

This reverts commit a645bb2a6b.

3. Revert "Add Dynamic heap support to IAR"

This reverts commit 891e1f261b.
2019-02-22 09:25:09 +00:00
Deepika e54be4aeff Add Dynamic heap support to IAR
Two new block properties available in linker configuration files:
"expanding size" and "minimum size" for IAR 8.11.2 and above

Sample:
define block HEAP with expanding size, minimum size = 16K, alignment = 8 {};

This block will expand to consume all remaining available space in
the range where it is placed. If several such blocks end up in the same
range, they will share the remaining space.
Cannot place a block with expanding size inside another block with
expanding size, inside a block with maximum size, or inside an overlay.
2019-02-22 09:25:08 +00:00
deepikabhavnani 334b2d64b0 Update params in calls to LDREXW/STREXW to uint32_t 2019-02-22 09:25:07 +00:00
deepikabhavnani b91dbab4bd Add Dynamic heap support to IAR
Two new block properties available in linker configuration files:
"expanding size" and "minimum size" for IAR 8.11.2 and above

Sample:
define block HEAP with expanding size, minimum size = 16K, alignment = 8 {};

This block will expand to consume all remaining available space in
the range where it is placed. If several such blocks end up in the same
range, they will share the remaining space.
Cannot place a block with expanding size inside another block with
expanding size, inside a block with maximum size, or inside an overlay.
2019-02-22 09:25:07 +00:00
aqin 84f52a871b adding updated binary for IAR v8.32 2019-02-22 09:25:06 +00:00
Cruz Monrreal 2ecb0a5031
Merge pull request #9798 from jeromecoutant/PR_LPTICKER_BOOTLOADER
STM32 LPTICKER (LPTIM): correct init execution after bootloader
2019-02-21 13:55:20 -06:00
Cruz Monrreal bba538c714
Merge pull request #9777 from ashok-rao/MTB_STM_L475
Adding STM32_L475 as a new MTB target
2019-02-21 10:37:59 -06:00
Cruz Monrreal 5a2e135283
Merge pull request #9782 from Rhomb-io/master
Adding RHOMBIO_L476DMW1K as a new Board target
2019-02-21 10:31:03 -06:00
Sarah Marsh 44bc123483 Add bootlader support for NUCLEO_L073RZ on GCC 2019-02-21 16:14:16 +00:00
jeromecoutant 0d620fe720 STM32 LPTICKER (LPTIM): correct init execution after bootloader 2019-02-21 16:25:20 +01:00
Guillermo Alonso 16628d7b8d Change in license identifier, removed commented dead code
Change in license identifier
Removed commented dead code
Removed some tab space
2019-02-21 11:55:41 +01:00
Ashok Rao 9102b59824 Changing SPDX license identifier to BSD-3-Clause 2019-02-21 10:35:25 +00:00
Guillermo Alonso faf03e02dc added licence identifier texts 2019-02-20 17:48:07 +01:00
Ashok Rao 6c3b732b17 Removing redundant code comments 2019-02-20 15:22:11 +00:00
Ashok Rao a7c878bb47 Adding SPDX license identifer for all new files 2019-02-20 15:07:03 +00:00
Ashok Rao 56508cfc4e Adding SPDX license identifier 2019-02-20 15:02:59 +00:00
Ashok Rao 1849921466 Adding STM32_L475 as a new MTB target 2019-02-20 14:40:39 +00:00
Martin Kojtal 39c8374760
Merge pull request #9554 from SeeedJP/hal-wio_3g-9450
Wio 3G: Modified sequence of module startup.
2019-02-20 13:57:33 +01:00
Guillermo Alonso 7b2abc75c2 Added new target RHOMBIO_L476DMW1K 2019-02-20 12:10:53 +01:00
Yoshihiro TSUBOI c41f1c75d7 [Wio 3G] Fix onboard modem initialization
Fix for issue #9450 by adding turning off the modem power at startup, so that modem is sure to be in the initial state.
Fix for wrong filename and classname.

// WIP
2019-02-20 19:00:12 +09:00
Martin Kojtal 3f46c82136
Merge pull request #9555 from SeeedJP/hal-wio_bg96-9450
Wio BG96: Modified sequence of module startup
2019-02-20 09:36:00 +01:00
Deepika 9231e26f3f Corrected main thread stack size, was accidently updated by removing condition
Main thread stack size is reduced for TARGET_STM32F070RB and TARGET_STM32F072RB,
in recent update to mbed_rtx.h the conditional check for main thread size update
was removed.
2019-02-19 15:49:49 -06:00
deepikabhavnani 9ed7e4dc83 Remove unnecessary endif 2019-02-19 15:49:49 -06:00
Deepika e522c4691e Target_STM:_sbrk updated to use limits from linker files no need to set defines
_sbrk uses the exports from linker file __end and __HeapLimit to allocate memory
in heap. Linker scripts were updated accordingly to set the limits.
2019-02-19 15:49:49 -06:00
Martin Kojtal 723236f855
Merge pull request #9307 from mtomczykmobica/ONME-3949
Configuration options for STM_EMAC buffer counts
2019-02-19 14:09:24 +01:00
Marcin Tomczyk a5f93e0b07 ONME-3949 Configuration options for STM_EMAC buffer counts 2019-02-19 08:18:18 +01:00
Yoshihiro TSUBOI 89bb25efc1 [Wio BG96] Fix onboard modem initialization
Fix for issue #9450 by adding turning off the modem power at startup, so that modem is sure to be in the initial state.
2019-02-19 00:44:38 +09:00
Cruz Monrreal 67abaf5fa7
Merge pull request #9706 from jarvte/fix_powering_onboard_modems
Cellular: fix onboard modems powering failure.
2019-02-14 20:26:51 -06:00
Teppo Järvelin e4018bd9bb Cellular: fix onboard modems powering failure
Don't call soft power on if device was already powered.
Some modems need to wait before sending anything to modem after soft powering.
2019-02-14 12:39:37 +02:00
Ashok Rao 21339abd61 Changing SPI flash's CS ine, Errata on SCH 2019-02-13 13:42:25 +00:00
Cruz Monrreal 270ff3b6de
Merge pull request #9679 from u-blox/R412M_Fix_After_Cellular_Driver_update
Default behavior of C030-R412M should be to use modem IP stack
2019-02-12 20:27:42 -06:00
Martin Kojtal db1d8fd56d
Merge pull request #9602 from jeromecoutant/PR_VERYHIGH
STM32 GPIO: use maximum speed
2019-02-12 09:53:17 +01:00
Fahim Alavi 3549083f9c Default behavior of C030-R412M should be to use modem IP stack 2019-02-11 16:12:29 +05:00
Russ Butler 8669417e7b Add HAL API for spi pinmap
Add the functions to get spi pinmaps to all targets.
2019-02-08 09:10:37 -06:00
Russ Butler 34c176654d Add HAL API for serial pinmap
Add the functions serial_tx_pinmap, serial_rx_pinmap, serial_cts_pinmap
and serial_rts_pinmap to all targets.
2019-02-08 09:10:28 -06:00
Russ Butler 2ed1dc2bfa Add HAL API for qspi pinmap
Add the functions qspi_master_sclk_pinmap, qspi_master_ssel_pinmap and
qspi_master_data0_pinmap-qspi_master_data3_pinmap to all targets with
qspi support.
2019-02-08 09:10:25 -06:00
Russ Butler be492fe07a Add HAL API for pwmout pinmap
Add the function pwm_pinmap to all targets.
2019-02-08 09:10:19 -06:00
Russ Butler 22a89773fa Add HAL API for i2c pinmap
Add the functions i2c_master_sda_pinmap, i2c_master_scl_pinmap,
i2c_slave_sda_pinmap and i2c_slave_scl_pinmap to all targets.
2019-02-08 09:10:12 -06:00
Russ Butler 7e8695a2c5 Add HAL API for can pinmap
Add the functions can_rd_pinmap and can_td_pinmap to all targets.
2019-02-08 09:10:10 -06:00
Russ Butler 3bd3aca6db Add HAL API for analog out pinmap
Add the function analogout_pinmap to all targets.
2019-02-08 09:10:05 -06:00
Russ Butler 4818f88d73 Add HAL API for analog in pinmap
Add the function analogin_pinmap to all targets.
2019-02-08 09:09:51 -06:00
Nir Sonnenschein 8c2ad14ace
Merge pull request #9568 from ARMmbed/feature-cellular-refactor
Merge feature cellular refactor
2019-02-07 18:17:32 +02:00
Martin Kojtal 7106d0d201
Merge pull request #9557 from SeeedJP/hal-wio_bg96-9026
[Wio BG96] Modified pin map
2019-02-05 10:51:59 +01:00
Martin Kojtal 46101f68fe
Merge pull request #9595 from c1728p9/define_usbtx_and_usbrx
Define USBTX and USBRX for targets without them
2019-02-04 17:13:00 +01:00
jeromecoutant ae47617c77 STM32 GPIO: use maximum speed 2019-02-04 15:32:15 +01:00
Yoshihiro TSUBOI e19ddef069 [Wio BG96] Modified pin map
* Remove unused Peripheral Pins definitions and add UART_1 TXD/RXD pins (fix #9026)  for the Wio BG96 board
* Remove/Fix unused PinName definitions for the Wio BG96 board from the PinNames enum
2019-02-04 23:04:37 +09:00
Martin Kojtal 346ebe6344
Merge pull request #9556 from SeeedJP/hal-wio_3g-9026
[Wio 3G] Modified pin map
2019-02-04 14:41:58 +01:00
Martin Kojtal e9648dd461
Merge pull request #9583 from jeromecoutant/PR_F2TRNG
STM32F2: Enable TRNG
2019-02-04 14:41:19 +01:00