summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-02 02:13:48 +0700
committerhathach <[email protected]>2018-12-02 02:13:48 +0700
commit5848dd28954a39384d54c4c1662267172925413d (patch)
tree370b451b5ef2054071fd7337d198fecd49252a32 /examples
parentfb842bb8041054c20d53cef2da2d47c4d44d2936 (diff)
lpc11u use USBSRAM, able to response with 1st request
Diffstat (limited to 'examples')
-rw-r--r--examples/device/cdc_msc_hid/ses/lpc11u6x/LPC11U68_MemoryMap.xml1
-rw-r--r--examples/device/cdc_msc_hid/ses/lpc11u6x/flash_placement.xml4
-rw-r--r--examples/device/cdc_msc_hid/ses/lpc11u6x/lpc11u6x.emProject2
3 files changed, 6 insertions, 1 deletions
diff --git a/examples/device/cdc_msc_hid/ses/lpc11u6x/LPC11U68_MemoryMap.xml b/examples/device/cdc_msc_hid/ses/lpc11u6x/LPC11U68_MemoryMap.xml
index 81cf6a33d..2913af3a0 100644
--- a/examples/device/cdc_msc_hid/ses/lpc11u6x/LPC11U68_MemoryMap.xml
+++ b/examples/device/cdc_msc_hid/ses/lpc11u6x/LPC11U68_MemoryMap.xml
@@ -3,4 +3,5 @@
<MemorySegment name="FLASH" start="0x00000000" size="0x00040000" access="ReadOnly" />
<MemorySegment name="RAM" start="0x10000000" size="0x00008000" access="Read/Write" />
<MemorySegment name="RAM2" start="0x20000000" size="0x00000800" access="Read/Write" />
+ <MemorySegment name="RAM3" start="0x20004000" size="0x00000800" access="Read/Write" />
</root>
diff --git a/examples/device/cdc_msc_hid/ses/lpc11u6x/flash_placement.xml b/examples/device/cdc_msc_hid/ses/lpc11u6x/flash_placement.xml
index 79bedc537..27a63d5be 100644
--- a/examples/device/cdc_msc_hid/ses/lpc11u6x/flash_placement.xml
+++ b/examples/device/cdc_msc_hid/ses/lpc11u6x/flash_placement.xml
@@ -34,4 +34,8 @@
<ProgramSection alignment="4" load="No" name=".data2_run" />
<ProgramSection alignment="4" load="No" name=".bss2" />
</MemorySegment>
+ <MemorySegment name="$(RAM3_NAME:RAM3)">
+ <ProgramSection alignment="4" load="No" name=".data3_run" />
+ <ProgramSection alignment="4" load="No" name=".bss3" />
+ </MemorySegment>
</Root>
diff --git a/examples/device/cdc_msc_hid/ses/lpc11u6x/lpc11u6x.emProject b/examples/device/cdc_msc_hid/ses/lpc11u6x/lpc11u6x.emProject
index 876a48114..c7b8c49aa 100644
--- a/examples/device/cdc_msc_hid/ses/lpc11u6x/lpc11u6x.emProject
+++ b/examples/device/cdc_msc_hid/ses/lpc11u6x/lpc11u6x.emProject
@@ -18,7 +18,7 @@
arm_target_debug_interface_type="ADIv5"
arm_target_device_name="LPC11U68"
arm_target_interface_type="SWD"
- c_preprocessor_definitions="__LPC11U68__;__LPC1100_FAMILY;__LPC11U00_SUBFAMILY;ARM_MATH_CM0PLUS;FLASH_PLACEMENT=1;CORE_M0PLUS;BOARD_LPCXPRESSO11U68;CFG_TUSB_MCU=OPT_MCU_LPC11UXX"
+ c_preprocessor_definitions="__LPC11U68__;__LPC1100_FAMILY;__LPC11U00_SUBFAMILY;ARM_MATH_CM0PLUS;FLASH_PLACEMENT=1;CORE_M0PLUS;BOARD_LPCXPRESSO11U68;CFG_TUSB_MCU=OPT_MCU_LPC11UXX;CFG_TUSB_MEM_SECTION= __attribute__((section(&quot;.bss3&quot;)));CFG_TUSB_MEM_ALIGN=__attribute__ ((aligned(64)))"
c_user_include_directories="../../src;$(rootDir)/hw;$(rootDir)/src;$(lpcDir)/inc"
debug_register_definition_file="$(ProjectDir)/LPC11U6x_Registers.xml"
debug_target_connection="J-Link"