diff --git a/boards/ngx/board_ngx4330.h b/boards/ngx/board_ngx4330.h
index 3ac30ecb..7d913231 100644
--- a/boards/ngx/board_ngx4330.h
+++ b/boards/ngx/board_ngx4330.h
@@ -57,6 +57,7 @@
#endif
#define CFG_PRINTF_TARGET PRINTF_TARGET_UART
+//#define CFG_PRINTF_TARGET PRINTF_TARGET_SWO
#ifdef __cplusplus
}
diff --git a/demos/host/host_freertos/host_freertos.uvopt b/demos/host/host_freertos/host_freertos.uvopt
index ea04b496..c72b1b5f 100644
--- a/demos/host/host_freertos/host_freertos.uvopt
+++ b/demos/host/host_freertos/host_freertos.uvopt
@@ -706,7 +706,7 @@
0
9
0
- 5
+ 6
11
0
..\src\main.c
@@ -1168,10 +1168,10 @@
1
0
0
- 0
+ 19
0
- 41
- 49
+ 42
+ 51
0
..\..\..\vendor\freertos\freertoslpc\FreeRTOSCommonHooks.c
FreeRTOSCommonHooks.c
diff --git a/demos/host/host_os_none/host_os_none.uvopt b/demos/host/host_os_none/host_os_none.uvopt
index 5b7d1826..fb45378e 100644
--- a/demos/host/host_os_none/host_os_none.uvopt
+++ b/demos/host/host_os_none/host_os_none.uvopt
@@ -918,7 +918,7 @@
0
1
0
- 106
+ 107
114
0
..\src\main.c
@@ -998,7 +998,7 @@
0
0
0
- 139
+ 140
149
0
..\src\msc_app.c
@@ -1014,7 +1014,7 @@
0
40
0
- 228
+ 229
238
0
..\src\cli.c
@@ -1462,7 +1462,7 @@
0
43
0
- 5
+ 6
15
0
..\..\..\vendor\fatfs\diskio.c
diff --git a/demos/host/src/keyboard_app.c b/demos/host/src/keyboard_app.c
index c004059e..07e65ce7 100644
--- a/demos/host/src/keyboard_app.c
+++ b/demos/host/src/keyboard_app.c
@@ -115,12 +115,13 @@ void keyboard_app_init(void)
//------------- main task -------------//
OSAL_TASK_FUNCTION( keyboard_app_task ) (void* p_task_para)
{
- tusb_error_t error;
hid_keyboard_report_t kbd_report;
+ tusb_error_t error;
OSAL_TASK_LOOP_BEGIN
osal_queue_receive(queue_kbd_hdl, &kbd_report, OSAL_TIMEOUT_WAIT_FOREVER, &error);
+ (void) error; // suppress compiler warning
process_kbd_report(&kbd_report);
diff --git a/demos/host/src/tusb_config.h b/demos/host/src/tusb_config.h
index 82e8124a..13362054 100644
--- a/demos/host/src/tusb_config.h
+++ b/demos/host/src/tusb_config.h
@@ -102,7 +102,7 @@
#elif defined __ICCARM__ // compiled with IAR
#if (TUSB_CFG_MCU == MCU_LPC43XX)
- #define TUSB_CFG_ATTR_USBRAM _Pragma("location=\".ahb_sram2\"") // some mcu like 4330 ahb_sram1 is used for heap/stack in IAR
+ #define TUSB_CFG_ATTR_USBRAM _Pragma("location=\".ahb_sram1\"")
#elif (TUSB_CFG_MCU == MCU_LPC175X_6X)
#define TUSB_CFG_ATTR_USBRAM
#endif