Martin Kojtal
b895bf6349
Merge pull request #10401 from OpenNuvoton/nuvoton_nuc472_fix_crash_capture
...
NUC472: Support crash capture for no-XRAM configuration
2019-04-30 14:54:05 +01:00
ccli8
61271d0df6
[NUC472] Get around unknown error with power-down
...
On NUC472, on wake-up from power-down mode, we may meet hard fault or some other
unknown error. Before its cause is found, we enter idle mode instead for a workaround.
To simulate power-down mode with idle mode, we also disable us_ticker during
power-down period.
2019-04-17 16:47:22 +08:00
ccli8
faa28b5280
[NUC472] Support crash capture for no-XRAM configuration
2019-04-15 13:32:53 +08:00
Martin Kojtal
4d56b94686
Merge pull request #10349 from studavekar/fix-nuvonton-crash-data
...
Fix crash capture feature for nuvoton
2019-04-12 14:13:58 +01:00
Shrikant Tudavekar
53ae5fea87
removed the redundant RW_IRAM1 region
2019-04-10 10:59:17 -05:00
Shrikant Tudavekar
3ee1498b57
crash data support for NUC472 with gcc_arm
2019-04-10 10:31:39 -05:00
Shrikant Tudavekar
9d5617c54a
crash data support for NUC472 with armcc
2019-04-10 10:30:22 -05:00
Cruz Monrreal
73f1edd6db
Merge pull request #10004 from OpenNuvoton/nuvoton_m2351_fix-memory-partition
...
M2351: Support memory custom partition
2019-04-09 14:03:18 -05:00
Shrikant Tudavekar
3769ec4acc
place crash data region at end of IRAM
2019-04-09 13:34:18 -05:00
Shrikant Tudavekar
4b182b92f1
enable crash capture for NUMAKER_PFM_NUC472
2019-04-08 15:36:28 -05:00
Shrikant Tudavekar
197b85e2fe
create a region instead of a block for crash data
2019-04-08 15:22:59 -05:00
ccli8
be96ade527
[Nuvoton] Add button names BUTTON1/BUTTON2
2019-03-26 17:05:43 +08:00
ccli8
8ca16c4c85
[M2351] Add license header
2019-03-12 09:34:07 +08:00
ccli8
14775cb123
[M2351] Refactor for memory partittion support
...
Add partition_M2351_mem.h/partition_M2351_mem.icf to centralize memory partition
2019-03-08 09:48:49 +08:00
ccli8
894f71e855
[M2351] Fix preprocessor command line in ARMC6 .sct file
2019-03-07 16:28:38 +08:00
ccli8
c0bba7475f
[M2351] Rename TOOLCHAIN_ARM_STD TOOLCHAIN_ARMC6
...
This is to express ARMC6 toolchain support more explicitly.
2019-03-07 16:28:36 +08:00
ccli8
26ff0677dc
[M2351] Remove unnecessary toolchain directory TOOLCHAIN_ARM_MICRO
2019-03-07 16:28:33 +08:00
deepikabhavnani
75040535ed
Addressed review comments to correct size values
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
2a192509c3
Target_NUVOTON: 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:38 -06:00
Cruz Monrreal
e6caa122cb
Merge pull request #9812 from kjbracey-arm/wait_ns
...
Add wait_ns API
2019-02-28 18:21:46 -06:00
Kevin Bracey
66dea08c0f
M2351: include core_cm23.h
...
Nuvoton M2351 was including generic core_armv8mbl.h from CMSIS - we
need it to be more specific to identify the specific core for
wait_ns. Change to core_cm23.h.
2019-02-26 17:30:51 +02:00
Deepika
b2e189f453
Target_Nuvoton: Remove target specific implementation of _sbrk
2019-02-19 15:49:49 -06:00
Przemyslaw Stekiel
e60a0f46e4
Remove duplicated _mbed_user_setup_stackheap, __rt_lib_init definitions.
...
Few targets already used 2-region memory model.
2019-02-19 15:46:32 -06:00
Cruz Monrreal
1712a2b76c
Merge pull request #9656 from OpenNuvoton/nuvoton_m2351_fix-crypto-ac-mgmt
...
M2351: Fix crypto AC management
2019-02-11 18:46:48 -06:00
ccli8
99dd189177
[Nuvoton] Remove unnecessary header files in crypto-misc.cpp
2019-02-11 18:10:51 +08:00
ccli8
8988b6e9db
[M2351] Hook crypto interrupt handler without NVIC_SetVector
2019-02-11 14:21:41 +08:00
ccli8
267f62e928
[M2351] Fix crypto AC mgmt
...
Port of NUC472/M487 crypto AC mgmt work to M2351:
1. Choose mutex to synchronize access to crypto non-SHA AC
2. Choose atomic flag to synchronize access to crypto SHA AC
2019-02-11 13:36:15 +08: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
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
Deepika
80f6b0e002
M2351: Update code to support IAR 8.x builds
2019-01-31 16:19:24 -06:00
Cruz Monrreal
d425ec5860
Merge pull request #9197 from OpenNuvoton/nuvoton_fix_uart-flow-control
...
Nuvoton: Fix UART flow control CTS/RTS
2019-01-03 10:34:58 -06:00
ccli8
ad1e57bdef
[Nuvoton] Refine MBED_CONF_RTOS_PRESENT check in crypto_misc.cpp
2019-01-03 09:21:05 +08:00
ccli8
39f705e033
[Nuvoton] Fix crypto_misc.cpp compile error with RTOS-absent
...
Replace Mutex with PlatformMutex which supports RTOS-absent
2019-01-02 15:53:31 +08:00
ccli8
388076d36d
[Nuvoton] Remove unnecessary mbed_rtos_storage.h in crypto_misc.cpp
2019-01-02 14:06:03 +08:00
ccli8
17fb5b7ff2
[Nuvoton] Fix UART flow control CTS/RTS
...
Configure RTS pin outout to active low when RTS is disabled. This allows the peer to be able
to send data if its CTS is still enabled.
2018-12-25 18:21:11 +08:00
cyliangtw
d5e643fd41
[Nuvoton] Fix NUC472 hard fault in SMCC tests
2018-12-20 19:42:42 +08:00
Cruz Monrreal
9edbcd77df
Merge pull request #9081 from OpenNuvoton/nuvoton_refine_crypto_ac
...
Nuvoton: Fix crypto AC management
2018-12-19 13:09:47 -06:00
ccli8
ca44675086
[Nuvoton] Fix crypto AC management
...
1. For SHA AC, use atomic flag to manage its ownership.
(1) Nuvoton SHA AC doesn't support SHA context save & restore, so S/W
SHA fallback has been supported before. To make non-blocking 'acquire'
semantics clearer, introduce 'try_acquire' to substitute for 'acquire'.
(2) No biting CPU due to mechanism above.
(3) No deadlock due to mechanism above.
2. For AES/DES/ECC AC, change to mutex to manage their ownership.
(1) Change crypto-misc.c to crypto-misc.cpp to utilize C++ SingletonPtr
which guarantees thread-safe mutex construct-on-first-use.
(2) With change to crypto-misc.cpp, add 'extern "C"' modifier to CRYPTO_IRQHandler()
to avoid name mangling in C++.
(3) No priority inversion because mutex has osMutexPrioInherit attribute
bit set.
(4) No deadlock because these AC are all locked for a short sequence
of operations rather than the whole lifetime of mbedtls context.
(5) For double mbedtls_internal_ecp_init() issue, it has been fixed in upper
mbedtls layer. So no need to change ecc init/free flow.
2018-12-19 10:17:39 +08:00
ccli8
28b820fbf0
[NANO130] Change main thread stack size to default for stack size unification
...
NANO130 just has 16 KiB SRAM. User application may change it through "rtos.main-thread-stack-size"
configuration option.
2018-12-18 11:11:43 +08:00
ccli8
244d4b6405
[Nuvoton] Support boot stack size configuration option
2018-12-14 17:29:55 +08:00
Cruz Monrreal
0f0e63aaac
Merge pull request #8900 from OpenNuvoton/nuvoton_refine_uart
...
Nuvoton: Refine UART init/deinit
2018-12-04 11:51:16 -06:00
Martin Kojtal
179098d0f1
Merge pull request #8828 from OpenNuvoton/nuvoton_analogout
...
Nuvoton: Support DAC HAL
2018-12-03 13:18:57 +01:00
ccli8
a2c70f2ca4
[Nuvoton] Fix time to init/deinit stdio_uart
...
With support for checking H/W UART initialized or not, we can simplify stdio management:
1. When serial_init(&stdio_uart) calls in, just set the 'stdio_uart_inited' flag.
2. When serial_free(&stdio_uart) calls in, just clear the 'stdio_uart_inited' flag.
Except above, we needn't make special handling with 'stdio_uart'.
2018-11-29 10:23:22 +08:00
ccli8
a937a62bff
[Nuvoton] Check configuration option for default UART baudrate setting
2018-11-28 16:59:15 +08:00