summaryrefslogtreecommitdiff
path: root/demos/host/src
diff options
context:
space:
mode:
Diffstat (limited to 'demos/host/src')
-rw-r--r--demos/host/src/tusb_config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/host/src/tusb_config.h b/demos/host/src/tusb_config.h
index ab5a9fe4c..0e889825e 100644
--- a/demos/host/src/tusb_config.h
+++ b/demos/host/src/tusb_config.h
@@ -95,7 +95,8 @@
#elif defined __ICCARM__ // compiled with IAR
#if (TUSB_CFG_MCU == MCU_LPC175X_6X)
- #define TUSB_CFG_ATTR_USBRAM
+ // LP175x_6x can access all but CMSIS-RTX causes overflow in 32KB SRAM --> move to AHB ram
+ #define TUSB_CFG_ATTR_USBRAM _Pragma("location=\".sram\"")
#elif (TUSB_CFG_MCU == MCU_LPC43XX)
#define TUSB_CFG_ATTR_USBRAM _Pragma("location=\".ahb_sram1\"")
#endif