Commit Graph

1517 Commits (tools-release-5.10.2)

Author SHA1 Message Date
Leon Lindenfelser c80a2ac21c Configure IAR stack size to 1KB 2018-10-19 15:10:50 +01:00
Leon Lindenfelser 4161688618 Decrease heap size in IAR linker so tests compile and use SRAM2 for IAR and GCC 2018-10-19 15:10:50 +01:00
Leon Lindenfelser fcdac9e873 Rebase and changes for Dragonfly nano support 2018-10-19 15:10:50 +01:00
Leon Lindenfelser 8a778bdb82 Rebased on master mbed-os 9/7/18
This required replacing hal_tick.h with us_ticker_data.h
2018-10-19 15:10:50 +01:00
Leon Lindenfelser c9729bc948 Remove commented out code 2018-10-19 15:10:50 +01:00
Leon Lindenfelser 686d3e6af5 Fixed spacing/tabs and clean up targets.json 2018-10-19 15:10:50 +01:00
Leon Lindenfelser 37fa8a7e5f Fix rev D radio init/power/reset and add back bootloader capability 2018-10-19 15:10:50 +01:00
cedrick kukela 4ba937cb15 REV D change for modem on 2018-10-19 15:10:50 +01:00
cedrick kukela dd07f51f6d Rev c pin name fix 2018-10-19 15:10:50 +01:00
cedrick kukela 5b83ad8d3e remove blanks 2018-10-19 15:10:50 +01:00
cedrick kukela c43c8cf3c0 delete file 2018-10-19 15:10:50 +01:00
cedrick kukela b917133b12 change startup and s file names to match target 2018-10-19 15:10:50 +01:00
cedrick kukela 72901a9440 fixing onboard modem init bug on mts dragonfly l471 2018-10-19 15:10:50 +01:00
cedrick kukela 4866d9c3e2 Ublox and PinName fixes 2018-10-19 15:10:50 +01:00
cedrick kukela 8c14749508 adding TARGET MTS_DRAGONFLY_L471QG 2018-10-19 15:10:50 +01:00
Deepika db70070275 Reposition heap at the end of RAM to be 4K aligned
HEAP memory should be 4K aligned for GCC newlib, with ISR stack at the end of
RAM memory we loose 3K of RAM memory. This fix is for device with <16K RAM to
use RAM entirely.
2018-10-19 12:08:43 +01:00
Deepika 07b0e84622 Set main thread stack size as 3K for constrained targets 2018-10-19 12:08:20 +01:00
Deepika 0d5166ccc0 Set ISR stack and heap sizes for low end devices
Set the ISR stack to be 1KB. https://github.com/ARMmbed/mbed-os/pull/7238
Set the heap size to 3KB(2KB + overhead + spare) so that atleast 2KB free ram is
available for testing.
With dynamic heap size, explicit size is not required. IAR 7.8 supports
static heap, hence the change is needed in IAR linker files.
2018-10-19 12:07:55 +01:00
Deepika e6bf4946f8 [ST]: Fix alignment of execute region to 8-byte boundary in ARM linker files
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files should strictly align to 8-byte boundary
2018-10-19 12:05:12 +01:00
Janne Kiiskila 42da703998 Use wait_ms instead of wait(n)
Small space savings, the casting from int to float will bloat
the code a bit. Using wait(1.0f) for example would avoid it,
but seems a bit silly to use floats for anything unless
really needed (in embedded products).
2018-10-19 11:46:55 +01:00
jeromecoutant a02f73d948 STM32L4 : sleep issue 2018-10-19 11:46:55 +01:00
bcostm 173190068b STM32: typo corrections 2018-10-19 11:46:55 +01:00
bcostm 344ff0f4ba STM32: fix issue with serial_is_tx_ongoing function 2018-10-19 11:46:55 +01:00
jeromecoutant e698722621 DISCO_F413ZH : explicit WIFI pins name 2018-10-19 11:46:55 +01:00
jeromecoutant c61bbdc1dd DISCO_F413ZH : set default Wifi module SPI state to inactive 2018-10-19 11:46:55 +01:00
Eman869 f427af229d Check LPUART clock source in STOP mode
Check LPUART clock source before enable it in STOP mode, only LSE could be enabled in STOP mode.
2018-10-19 11:46:55 +01:00
jeromecoutant ed268513c2 STM32F1 RTC : save values in register
Date is managed only by SW
  within CUBE functions HAL_RTC_GetDate and HAL_RTC_SetDate.
They are then replaced by functions that saved counters in HW registers.
RTC_ReadTimeCounter and RTC_WriteTimeCounter are then added to the ST API.
2018-10-19 11:46:55 +01:00
Juho Eskeli 6b0133d4b7 Adjust stack & heap for IAR on STM32F412xG 2018-10-19 11:46:55 +01:00
Juho Eskeli b3a69c54c7 Remove redundant error flag clearing operation 2018-10-19 11:46:55 +01:00
Juho Eskeli e9f845bb7a Clear error programming flags before erase & program operations 2018-10-19 11:46:55 +01:00
jeromecoutant 95c46b5d21 STM32 RTC : write RTC time while LPTICKER is enabled
This fix avoid a long waiting loop in rtc_write function,
  which was not acceptable in TICKLESS context.

Implementation comments added.

Global variable name has been updated for easier maintenance:
- LPTICKER_counter is the U32 continuous tick counter
- LPTICKER_RTC_time is the RTC time used to get the time difference
   between rtc_read_lp() calls
2018-10-19 11:46:55 +01:00
bcostm 34530633e2 STM32: Fix I2C stop condition
Need to ensure the transmission has been started before sending a STOP condition.

Issue found on the NUCLEO_H743ZI due certainly to the high-speed clock used.

But this is normally needed also on all STM32 devices using the I2C peripheral version 2.
2018-10-19 11:46:55 +01:00
jeromecoutant 32830342f5 DISCO_L496AG : enable ADC
See User Manual, VREF+ is not connected by default

NB: Use 2.5V as reference (instead of 3.3V)
for internal channels calculation
2018-10-19 11:46:55 +01:00
Markus Siglreithmaier 442ec4a14f STM32L4: Use HAL layer functions for sleep implementation 2018-10-19 11:46:55 +01:00
Markus Siglreithmaier 103fa52818 STM32L4: Fix sleep implementation
Correctly detect and handle the low power run mode when entering and exiting sleep mode.

The generic `hal_sleep` implementation tries to exit LPR mode always, resulting in a spin-loop during a critical section (disabled IRQ).
The new approach returns from LPR to Run mode if enabled (LPR bit set), enters sleep, and resets to the original state on wakeup (WFI).
2018-10-19 11:46:55 +01:00
jeromecoutant 266dff0f37 STM32L1 ADC update for internal channels 2018-10-19 11:46:55 +01:00
Juho Eskeli 7b13cea74e Reduce heap size on stm32f207 2018-10-08 15:29:18 +01:00
jeromecoutant db7b22878c STM32 LPTICKER with RTC : Fix tickless and lp wrapper
When both tickless and LPTICKER_DELAY_TICKS are enabled some ST
devices randomly get stuck sleeping forever. This is because the
wake up time passed to the rtc is ignored if the previous match is
about to occur. This causes the device to get stuck in sleep.

This patch prevents matches from getting dropped by the rtc by
deactivating the rtc wake up timer before setting a new value.

Events leading up to this failure for the RTC:

-1st call to lp_ticker_set_interrupt
-delay until ticker interrupt is about to fire
-2nd call to lp_ticker_set_interrupt
-interrupt for 1st call fires and match time for 2nd call is dropped
-LowPowerTickerWrapper gets ticker interrupt but treats it as a
 spurious interrupt and drops it since it comes in too early
-device enters sleep without a wakeup source and locks up
2018-10-08 15:29:18 +01:00
jeromecoutant 3d0acbc866 STM32 LPTICKER with LPTIM : Fix tickless and lp wrapper
This fixes issue with mbed_hal/lp_ticker/lp_ticker_early_match_race_test
2018-10-08 15:29:18 +01:00
jeromecoutant 357e126d56 STM32L0 internal channel ADC_TEMP
Temperature measurement was not stable
2018-10-08 15:29:18 +01:00
jeromecoutant c3fcec21c8 STM32L072 : ADC internal channels correction 2018-10-08 15:29:18 +01:00
jeromecoutant 0afe05388e STM32L496 : wrong ADC init 2018-10-08 15:18:50 +01:00
bcostm 7242150040 NUCLEO_L4R5ZI: set IAR linker stack size to 1KB 2018-10-08 15:18:50 +01:00
bcostm f6d4acc33c NUCLEO_L4R5ZI: change _ALTx pins 2018-10-08 15:18:50 +01:00
bcostm b5b3276a18 NUCLEO_L4R5ZI: remove PWM_5 pins as already used by us_ticker 2018-10-08 15:18:50 +01:00
bcostm f6feb9fba3 NUCLEO_L4R5ZI: enable bootloader 2018-10-08 15:18:50 +01:00
bcostm 41356a943c NUCLEO_L4R5ZI: add missing timer freeze macro 2018-10-08 15:18:50 +01:00
bcostm 0c75711215 NUCLEO_L4R5ZI: update mbed_rtx.h 2018-10-08 15:18:50 +01:00
bcostm f40c5ee91b NUCLEO_L4R5ZI: add all board files 2018-10-08 15:18:50 +01:00
jeromecoutant 235aea0082 STM32 RTC : remove not necessary macro
__HAL_RCC_RTC_CLKPRESCALER is called in __HAL_RCC_RTC_CONFIG
2018-10-08 15:18:50 +01:00