Andrzej Puzdrowski
5649eef980
Enabled nRF52840_DK's compilation for IAR IDE:
...
- corected scater & startup file for IAR EW
- fix warnings caused by port_api.c, ble_radio_notification.c, nrf_drv_spi.c (for IAR it was error), serial_api.c
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski
46f72777dc
make nRF52840 target compilable for ARM compiler
...
- enable fstorage in sdk config
- remove files of modules: bootloader, DFU bootloader and UICR setings
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski
f0b3cd2ed0
to be commented
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski
aef41216a9
ported-fixed for nRF52840 port
...
+ serial
+ analog
+ pin description
+ gpio
+ cmsis vector opp
+ gcc startup/scater file
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski
a175e2ce31
+ description of the NRF52840_DK target
...
+ mbed RTx setings for nRF52840
fix build of test for NRF52840
+ few sdk's missing filess
- few sdk's unvanted files
corect mbed HAL implementation to changes made in sdk v13
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski
9bf209ef00
fix: align nRF5 v13 sdk struct to origin
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski
5ebcb3ec12
fix- sdk updste script bug causing losing of nested directory when coping file by forced directory.
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski
decf835475
move s140 headers to headers directory
...
add softdevices compiled inetl-hex files
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski
9fa7a61212
Update nRF5 SDK sources from version v11 to the version nRF5_SDK_13.0.0-1.alpha_055eef3
...
using
.\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\porting_tools\sdk_update.py
and
.\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\porting_tools\replace_headers.py
files .\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\TARGET_MCU_NRF52832\sdk\softdevice\s132\headers\nrf_ble*.h
renamed to .\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\TARGET_MCU_NRF52832\sdk\softdevice\s132\headers\ble*.h
by hand.
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski
ad5b64b4dd
merge nRF528xx sdk sources into one directory
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski
cd44b58d11
Initial commit of NRF52840 target as the copy of NRF52832 and NRF52_DK.
2017-03-22 08:38:34 +01:00
Steven Cooreman
d2173574d0
Stop using device_has for non-mbed options
...
As asked by @0xc0170 in PR #3934 , we won't be using device_has for indicating RF/Crypto features any longer. RF config options moved to the SL_RAIL lib.json, crypto config options will come with mbedTLS integration.
2017-03-21 16:23:52 +01:00
Steven Cooreman
b3883115e6
Pass Travis
...
Removing device_name for devices that haven't shown up in the Keil package manager yet to avoid Travis from tripping on our PR
2017-03-21 16:23:51 +01:00
Steven Cooreman
d710ec4e12
Bugfix for EFM32PG12 and EFR32MG12
...
* Off by one error in the linker scripts reserved one word too little for the vector table
* Re-apply uvisor changes to emlib. To allow uvisor to run, we should make accesses to the romtable through uvisor's secure read gateway
* Copypasta in target name (EFM32PG12, not EFR32PG12)
* Copypasta in the pin definitions (thanks @akselsm)
* Forgot to update PortName for extra ports on MG/PG12
2017-03-21 16:19:46 +01:00
Steven Cooreman
8067bf629f
Update clock calibration structs to match latest Gecko SDK
2017-03-20 16:34:12 +01:00
Steven Cooreman
8b6451c74d
Add new target EFM32PG12
2017-03-20 16:34:12 +01:00
Steven Cooreman
59dc6da5c4
Update to Gecko SDK 5.1.2
...
Update RAIL library to 1.5.1
2017-03-20 16:34:12 +01:00
Steven Cooreman
ca91e7c2d5
Update to Gecko SDK 5.1.2
...
Updating CMSIS device headers
2017-03-20 16:34:12 +01:00
Steven Cooreman
1a8c460378
Update to Gecko SDK 5.1.2
...
Updating emlib
2017-03-20 16:34:12 +01:00
Steven Cooreman
0e098678b5
First pass on TB Sense (and EFR32MG12) support
2017-03-20 16:34:12 +01:00
bcostm
7cc904bb19
NUCLEO_F302R8: Add missing PB_8/PB_9 CAN pins
2017-03-20 10:32:06 +01:00
jeromecoutant
2987340870
[NUCLEO_F303ZE] Correct ARDUINO pin
2017-03-16 16:40:30 +01:00
Mohammad Azim Khan
5a9ea2c1e6
Heap size adjusted to work for both tls-client and mbed-client
...
Targets NUCLEO_F429ZI and UBLOX_EVK_ODIN_W2 have 192K RAM.
Heap size in PR #3871 was increased from 48K to 96K as tls-client
example failed with 48K heap. But this resulted in compilation failures
in mbed-client that requires 71K for global/static data.
Hence this PR reduces heap to 64K that minimum required by tls-client
to work. This also meets mbed-client data segment requirements.
2017-03-15 11:22:24 +00:00
Michel Jaouen
1a20b4f100
Fix after code review
2017-03-14 15:57:41 +01:00
Michel Jaouen
fc972f0a98
fix STM USB config after L4 ,F4, F7 file tree changes
2017-03-14 15:57:40 +01:00
Michel Jaouen
873cacfc73
Revert "Revert "Target stm usb config""
...
This reverts commit ec329be6f2
.
2017-03-14 15:57:28 +01:00
Anna Bridge
cc58a7fb0c
Merge pull request #3927 from TsungtaWu/master
...
[DELTA_DFBM_NQ620] Add RC calibration setting and revise mbed_overrides.c
2017-03-14 14:48:23 +00:00
Anna Bridge
5495e24793
Merge pull request #3917 from TomoYamanaka/master
...
Fix mistake register setting in serial_format()
2017-03-14 14:42:21 +00:00
Anna Bridge
213626d83a
Merge pull request #3893 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_F7_V1.6.0
...
[STM32F7] Update STM32 Cube version v1.6.0
2017-03-14 14:40:38 +00:00
Anna Bridge
538e1600b4
Merge pull request #3869 from radhika-raghavendran/master
...
NCS36510: Default range changed from 0 to 950mV - ADC
2017-03-14 14:39:21 +00:00
Anna Bridge
e743a26f94
Merge pull request #3691 from adustm/STM_aes_f439zi
...
[TLS / hw acceleration] AES ECB for NUCLEO_F439ZI
2017-03-14 14:32:25 +00:00
TsungtaWu
20411ec9bc
[DELTA_DFBM_NQ620] Add RC calibration setting and revise mbed_overrides.c
...
In targets.json, add lf_clock_rc_calib_timer_interval and
lf_clock_rc_calib_mode_config setting which are essential when using BLE
In mbed_overrides.c, create valuables instead of doing printf, those
valuables are intended to be used for debugging in runtime.
2017-03-11 18:55:53 +08:00
Radhika Raghavendran
9d06732aae
Changed tab to spaces
2017-03-10 16:22:30 +05:30
ccli8
5720725a3d
[NUC472/M453] Refine serial PDMA code
2017-03-10 16:18:14 +08:00
ccli8
502e8ce2a5
[NUC472/M453] Refine SPI PDMA code
2017-03-10 16:18:14 +08:00
ccli8
867072fe70
[NUC472/M453] Add dma_modbase() to get PDMA base address
2017-03-10 16:18:14 +08:00
ccli8
49a2a221a4
[NUC472/M453] Fix pwmout power-down condition
2017-03-10 16:18:14 +08:00
ccli8
4e96f8b721
[NUC472/M453] Fix PDMA error on timeout
2017-03-10 16:18:14 +08:00
ccli8
1da33e809f
[NUC472/M453] Refine pin/peripheral/pin map definitions
...
Change NUC472 analogin_api.c accordingly
2017-03-10 16:18:14 +08:00
ccli8
4e4c294fa3
[NUC472/M453] Fix incorrect use of peripheral name as peripheral base address
2017-03-10 16:18:14 +08:00
Radhika Raghavendran
e640f5f1e5
Re-do change for changing ADC range from 0 to 3.3V
2017-03-10 13:45:32 +05:30
TomoYamanaka
34d033a4c1
Fix mistake register setting in serial_format()
...
Currently, there is the issue in register setting into serial_format().
The issue is that parameter for baudrate setting is initialed zero in this function.
In baudrate is less 9600bps, the issue occurs. In baudrate is over 9600, not occurs. When call serial_baud() before serial_format(), baudrate override and set with an incorrect value.
Therefore, I fixed register setting not to set the parameter of baudrate setting in serial_format().
2017-03-10 12:20:21 +09:00
Sam Grove
88a4baa2ad
Merge pull request #3902 from mazimkhan/master
...
Fix heap and stack size for NUCLEO_F746ZG
2017-03-09 16:51:40 -06:00
Mohammad Azim Khan
bb197b29f3
Fix heap size for NUCLEO_F746ZG on IAR
2017-03-09 16:51:24 +00:00
Martin Kojtal
45c99e69ca
Merge pull request #3879 from bcostm/fix_nucleo-f446ze_adc_pins
...
NUCLEO_F446ZE: Add missing AnalogIn pins on PF_3, PF_5 and PF_10.
2017-03-09 15:48:10 +00:00
Martin Kojtal
68dc25331a
Merge pull request #3843 from bcostm/fix_stm32l4_apb2_80MHz
...
STM32L476xG: set APB2 clock to 80MHz (instead of 40MHz)
2017-03-09 15:44:08 +00:00
Martin Kojtal
c3e7b5434c
Merge pull request #3842 from anangl/fix_spi_api
...
TARGET_NRF: corrected spi_init() to properly handle re-initialization…
2017-03-09 15:43:13 +00:00
Simon Vogl
1c4e0d7dcb
can_write(): return error code when no tx mailboxes are available. ( #3829 )
2017-03-09 15:42:00 +00:00
Martin Kojtal
6aa62c1956
Merge pull request #3828 from jeromecoutant/PR_CAN_TYPE
...
STM32 CAN API: correct format and type
2017-03-09 15:40:01 +00:00
Martin Kojtal
fd6fdd5f8c
Merge pull request #3795 from LMESTM/fix_pwm_period_calc
...
Fix pwm period calc
2017-03-09 15:39:00 +00:00
Radhika Raghavendran
c06fa3a335
A4 and A5 definitions added
2017-03-09 17:58:19 +05:30
Laurent MEUNIER
400b89eeda
Fix XDOT compilation error
...
Typo with misplaced closing parenthesis leads to compilation error,
which is fixed with this patch
2017-03-07 17:22:25 +01:00
Martin Kojtal
b2726470f6
Merge pull request #3880 from adustm/fix_can2_only
...
DISCO_F469NI: allow the use of CAN2 instance when CAN1 is not activated
2017-03-06 16:57:57 +00:00
Martin Kojtal
f39deb518c
Merge pull request #3860 from MultiTechSystems/xdot-gpio-fix
...
Define GPIO_IP_WITHOUT_BRR for xDot platform
2017-03-06 16:56:29 +00:00
Martin Kojtal
e6b8ed2754
Merge pull request #3850 from LMESTM/fix_spi_warn
...
STM32: change spi error to debug warning
2017-03-06 16:55:58 +00:00
Martin Kojtal
aa6a71bd0c
Merge pull request #3844 from bcostm/fix_comments_gpio_object
...
STM32 GPIO: Typo correction. Update comment (GPIO_IP_WITHOUT_BRR)
2017-03-06 16:54:39 +00:00
Martin Kojtal
ede2a11be4
Merge pull request #3840 from LMESTM/fix_smt32_gpio_default_speed
...
STM32: gpio SPEED - always set High Speed by default
2017-03-06 16:54:08 +00:00
Martin Kojtal
1be7418883
Merge pull request #3836 from cuvva/master
...
Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os
2017-03-06 16:53:31 +00:00
Martin Kojtal
c975c2ba71
Merge pull request #3831 from pradeep-gr/feature-spi-slave
...
NCS36510: SPISLAVE enabled (Conflict resolved)
2017-03-06 16:51:37 +00:00
Martin Kojtal
8fb95a6507
Merge pull request #3780 from pmancele/master
...
STM32L4 : Fix GPIO G port compatibility
2017-03-06 16:51:03 +00:00
Martin Kojtal
750ac5152f
Merge pull request #3741 from jeromecoutant/PR_TICK32
...
STM32 remove warning in hal_tick_32b.c file
2017-03-06 16:49:52 +00:00
Martin Kojtal
f168f6233a
Merge pull request #3716 from adustm/disco_f429zi_debug
...
fix for issue #3715 : correction in startup files for ARM and IAR, alignment of system_stm32f429xx.c files
2017-03-06 16:49:19 +00:00
jeromecoutant
b77533dd51
STM32Cube_FW_F7_V1.6.0
...
CMSIS v1.1.2 => v1.2.0
STM32F7 HAL v1.1.2 => v1.2.0
2017-03-06 16:48:23 +01:00
bcostm
ae6899b448
STM32L4xx: set APB2 clock to 80MHz (instead of 40MHz)
2017-03-06 13:34:01 +01:00
jeromecoutant
67a75d96c6
STM32 CAN API: correct format and type
...
astyle done
2017-03-06 11:34:20 +01:00
adustm
18c1618637
DISCO_F469NI: allow the use of CAN2 instance when CAN1 is not activated
2017-03-03 17:05:28 +01:00
bcostm
e70d985fa3
Add AnalogIn pins on PF3, PF5 and PF10.
...
Don't know why it was missing ?
2017-03-03 16:57:16 +01:00
Mohammad Azim Khan
1f0d73162c
Increase HEAP size for UBLOX_EVK_ODIN_W2 and NUCLEO_F429ZI
2017-03-02 14:11:21 +00:00
Głąbek, Andrzej
4213c61073
TARGET_NRF: added a description of the recent change in spi_init().
2017-03-02 13:47:37 +01:00
Mike Fiore
2613380854
[XDOT_L151CC] Define GPIO_IP_WITHOUT_BRR for xDot platform. Resolves #3823 .
2017-03-01 12:53:31 -06:00
adustm
d69c5edbd4
fix for issue #3715 : correction in startup files for ARM and IAR, alignment of system_stm32f429xx.c files
2017-02-28 18:15:06 +01:00
Laurent MEUNIER
00bfa3bf4a
STM32: change spi error to debug warning
...
In case the selected frequency is higher than the requested one, it is
better to send a debug warning rather than an blocking error.
In case of such warning, user may need to redefine the clock tree setting
at higher level (reducing peripheral's input clocks during init phase).
2017-02-28 17:00:29 +01:00
adustm
fe1e7aac98
Better use of MBEDTLS_AES_ALT
...
removed from targets.json, added in mbedtls_device.h
remove function alternate defines (not used as we replace the full
module)
2017-02-28 16:42:03 +01:00
adustm
35bf8e17e6
AES ECB for NUCLEO_F439ZI
...
+---------------------------+--------+--------+--------+
| test case | passed | failed | result |
+---------------------------+--------+--------+--------+
| mbedtls_aes_self_test | 1 | 0 | OK |
| mbedtls_entropy_self_test | 1 | 0 | OK |
| mbedtls_sha256_self_test | 1 | 0 | OK |
| mbedtls_sha512_self_test | 1 | 0 | OK |
+---------------------------+--------+--------+--------+
2017-02-28 16:41:16 +01:00
Laurent MEUNIER
3842f6ea0a
STM32: fix formatting
...
Use the recommended style
if (condition) {
do();
} else {
do_else();
}
2017-02-27 17:07:05 +01:00
Laurent MEUNIER
747e8e1ea1
STM32: move pwmout device tables to C file
...
In order to avoid possible multiple definitions errors, move the table
initialization to the C file instead of header file
2017-02-27 17:07:01 +01:00
bcostm
d03f96741e
Typo: update comment (GPIO_IP_WITHOUT_BRR)
2017-02-27 16:32:44 +01:00
Głąbek, Andrzej
678f3f9966
TARGET_NRF: corrected spi_init() to properly handle re-initialization on the same pins + minor editorial corrections.
2017-02-27 13:48:55 +01:00
Laurent MEUNIER
8e5d2eb1dc
STM32: pwm period and prescaler calculation
...
Correct the while loop limit and add a safe guard to avoid infinite loop.
2017-02-27 13:47:34 +01:00
Laurent MEUNIER
453b248bf4
STM32: gpio SPEED - always set High Speed by default
...
Up to now, speed was set for outputs and alternate, but this is
also valid for input configuration.
By default, let's configure high speed.
This is done firts, because speed for some families like F1 is mixed
with Input/Output mode settings, so can be later over-ridden if needed.
2017-02-27 11:11:02 +01:00
Hovik Melikyan
c4a979ef72
Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os source
...
By default the number of pstorage pages is set 1 and all addresses are
calculated in the pstorage module accordingly. Nordic recommends
changing this macro to whatever number is suitable for the app (see
https://devzone.nordicsemi.com/question/53066/what-will-be-the-starting-
address-of-pstorage-page-how-we-can-change-it/?answer=53085#post-id-5308
5) which is not quite elegant given that pstorage_platform.h is part of
the mbed-os repo. With this modification you can e.g. define
PSTORAGE_NUM_OF_PAGES on the command line, however note that you should
rebuild mbed-os with this setting as it affects pstorage_platform.c.
2017-02-24 11:24:24 +00:00
Sam Grove
b6fe5abb10
Merge pull request #3743 from jeromecoutant/PR_RTC_UPDATE
...
STM32 RTC api minor update
2017-02-23 10:19:11 -06:00
Sam Grove
ba2176323c
Merge pull request #3733 from theotherjimmy/feature-bootloader
...
Enable boot-loader builds
2017-02-23 10:18:31 -06:00
U-ONSEMI\fg64rh
4678a31efa
Conflict resolved
2017-02-23 18:47:15 +05:30
Pierre-Marie Ancele
48c63cacdb
Use #if defined TARGET_STM32L4
2017-02-23 09:32:12 +01:00
Jimmy Brisson
d62f046e57
Fail bootloader builds on targets that don't support it
...
This patch will prevent building bootloader builds on targets that have
not yet had their linker scripts/scatter files changed to allow for the
ROM space shrinking expected by bootloader builds. At the point of this
patch, bootloader linker script modifications are only supported by the
NUCLEO_F429ZI, K64F, KL46Z, and Odin.
2017-02-22 18:27:23 -06:00
Christopher Haster
aff49d8d1e
Renamed files in platform to match source names
...
critical.h -> mbed_critical.h
sleep.h -> mbed_sleep.h
toolchain.h -> mbed_toolchain.h
rtc_time.h -> mbed_rtc_time.h
semihost_api.h -> mbed_semihost_api.h
wait_api.h -> mbed_wait_api.h
2017-02-22 18:17:54 -06:00
Sam Grove
a8a31da2e8
Merge pull request #3737 from bcostm/dev_can_factorization
...
STM32: can_api.c files factorization
2017-02-22 13:36:59 -06:00
Sam Grove
5c28715fbd
Merge pull request #3742 from jeromecoutant/PR_SLEEP
...
STM32 : minor update in sleep HAL file
2017-02-22 13:35:01 -06:00
Sam Grove
355f69a11d
Merge pull request #3802 from ARMmbed/feature-flash-api
...
Merge the feature-flash-api branch into master
2017-02-22 13:31:41 -06:00
Sam Grove
5491ccc0a6
Merge pull request #3803 from TomoYamanaka/master
...
Bug fix of initial value of interrupt edge in "gpio_irq_init" again
2017-02-22 13:21:13 -06:00
Sam Grove
0733fe0778
Merge pull request #3814 from 0xc0170/fix_i2c_delay_onsemi
...
NCS36510: I2C idle delay of 1us
2017-02-22 13:20:17 -06:00
Pierre-Marie Ancele
248dbaabe2
Fix GPIOG usage of STM32L4 by activating VDDIO2 power supply
2017-02-22 16:44:28 +01:00
jeromecoutant
3a83fc8a21
STM32 RTC api minor update
...
Add more detailed information in comments
Issue with sunday corrected
Issue with wrong rtc_isenabled status corrected
2017-02-22 08:50:58 +01:00
Russ Butler
071235415e
Add K64F, KL46Z, F429, F439 and odin flash algos
...
Check in flash algos for the K64F, KL46Z, F429, F439 and Odin board
and enable these features accordingly in targets.json. This
implementation uses flash algo blob that are generated via scripts.
The K64F and KL46Z were generated directly from packs, while the
KL46Z, F429, F439 and odin were generated from code checked into
the FlashAlgo repo.
2017-02-21 14:09:06 -06:00
Martin Kojtal
ff41cc97ae
Merge pull request #3806 from 0xc0170/fix_issue#2989
...
NXP KL43Z/KL27Z: fix spi format bits check
2017-02-21 17:13:07 +00:00
Sam Grove
14bc2338eb
Merge pull request #3812 from anangl/rework_i2c
...
TARGET_NRF5: reworked i2c_api.c
2017-02-21 11:03:27 -06:00
Sam Grove
d14aa74b8c
Merge pull request #3798 from c1728p9/fix_st_vtor
...
Fix vector table bug when using bootloader on ST
2017-02-21 11:02:17 -06:00
Sam Grove
09a0ff3b3f
Merge pull request #3779 from geky/ncs36510-timing
...
NCS36510: Fix the sporadic semaphore timing issue
2017-02-21 10:50:14 -06:00
Sam Grove
1ee18b4ecb
Merge pull request #3767 from OpenNuvoton/nuvoton
...
[NUC472] Support no-XRAM configuration
2017-02-21 10:49:13 -06:00