File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 25
25
#define EXC_NUM_PENDSV (14)
26
26
#define EXC_NUM_SYSTICK (15)
27
27
28
- #define printf (...)
29
-
30
28
/* Disable NS exceptions by setting NS PRIMASK to 1 */
31
29
#define TFM_NS_EXC_DISABLE () __TZ_set_PRIMASK_NS(1)
32
30
/* Enable NS exceptions by setting NS PRIMASK to 0 */
Original file line number Diff line number Diff line change 6
6
*/
7
7
8
8
#include <stdio.h>
9
+ #include "hal/serial_api.h"
9
10
#include "region_defs.h"
10
11
#include "tfm_core.h"
11
12
#include "tfm_internal.h"
@@ -76,6 +77,11 @@ void configure_ns_code(void)
76
77
ns_entry = (nsfptr_t ) cmse_nsfptr_create (entry_ptr );
77
78
}
78
79
80
+ #if DEVICE_SERIAL
81
+ extern int stdio_uart_inited ;
82
+ extern serial_t stdio_uart ;
83
+ #endif
84
+
79
85
int32_t tfm_core_init (void )
80
86
{
81
87
/* Enables fault handlers */
@@ -89,7 +95,12 @@ int32_t tfm_core_init(void)
89
95
90
96
__enable_irq ();
91
97
92
- LOG_MSG ("Secure image initializing!" );
98
+ #if DEVICE_SERIAL
99
+ serial_init (& stdio_uart , STDIO_UART_TX , STDIO_UART_RX );
100
+ serial_baud (& stdio_uart , MBED_CONF_PLATFORM_STDIO_BAUD_RATE );
101
+ #endif
102
+
103
+ LOG_MSG ("Secure image initializing!\r\n" );
93
104
94
105
#ifdef TFM_CORE_DEBUG
95
106
printf ("TFM level is: %d\r\n" , TFM_LVL );
Original file line number Diff line number Diff line change 2144
2144
],
2145
2145
"device_has_add" : [
2146
2146
" FLASH" ,
2147
+ " SERIAL" ,
2147
2148
" TRNG"
2148
2149
],
2149
2150
"deliver_to_target" : " LPC55S69_NS" ,
You can’t perform that action at this time.
0 commit comments