diff options
| author | hathach <[email protected]> | 2014-04-18 16:47:56 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-04-18 16:47:56 +0700 |
| commit | fe0dafc73fc8e284de3f56cd4d34d35f63e0eafc (patch) | |
| tree | 99555f05c819da1940ecbc29ebf739d6ef54dc56 /demos/host/src | |
| parent | 8dff4d454b81d61e94c4d92bbc87ef5dd2d909de (diff) | |
fix IAR CMSIS rtx build for lpc175 6x --> build all ok
Diffstat (limited to 'demos/host/src')
| -rw-r--r-- | demos/host/src/tusb_config.h | 3 |
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
|
