From 786b04e19d52a904a4faf2bc9a7b022e9cd0237c Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 3 Dec 2018 16:23:38 +0700 Subject: [PATCH] correct memory placement for lpc13. CDC work well --- .../device/cdc_msc_hid/ses/lpc13xx/LPC1347FBD64_MemoryMap.xml | 1 + examples/device/cdc_msc_hid/ses/lpc13xx/flash_placement.xml | 4 ++++ examples/device/cdc_msc_hid/ses/lpc13xx/lpc13xx.emProject | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/device/cdc_msc_hid/ses/lpc13xx/LPC1347FBD64_MemoryMap.xml b/examples/device/cdc_msc_hid/ses/lpc13xx/LPC1347FBD64_MemoryMap.xml index bdc880272..298645289 100644 --- a/examples/device/cdc_msc_hid/ses/lpc13xx/LPC1347FBD64_MemoryMap.xml +++ b/examples/device/cdc_msc_hid/ses/lpc13xx/LPC1347FBD64_MemoryMap.xml @@ -3,4 +3,5 @@ + diff --git a/examples/device/cdc_msc_hid/ses/lpc13xx/flash_placement.xml b/examples/device/cdc_msc_hid/ses/lpc13xx/flash_placement.xml index 79bedc537..27a63d5be 100644 --- a/examples/device/cdc_msc_hid/ses/lpc13xx/flash_placement.xml +++ b/examples/device/cdc_msc_hid/ses/lpc13xx/flash_placement.xml @@ -34,4 +34,8 @@ + + + + diff --git a/examples/device/cdc_msc_hid/ses/lpc13xx/lpc13xx.emProject b/examples/device/cdc_msc_hid/ses/lpc13xx/lpc13xx.emProject index ce50e791c..6a579d7c4 100644 --- a/examples/device/cdc_msc_hid/ses/lpc13xx/lpc13xx.emProject +++ b/examples/device/cdc_msc_hid/ses/lpc13xx/lpc13xx.emProject @@ -17,7 +17,7 @@ arm_target_debug_interface_type="ADIv5" arm_target_device_name="LPC1347" arm_target_interface_type="SWD" - c_preprocessor_definitions="__LPC1347FBD64__;__LPC1300_FAMILY;__LPC134x_SUBFAMILY;ARM_MATH_CM3;FLASH_PLACEMENT=1;CORE_M3;BOARD_LPCXPRESSO1347;CFG_TUSB_MCU=OPT_MCU_LPC13XX" + c_preprocessor_definitions="__LPC1347FBD64__;__LPC1300_FAMILY;__LPC134x_SUBFAMILY;ARM_MATH_CM3;FLASH_PLACEMENT=1;CORE_M3;BOARD_LPCXPRESSO1347;CFG_TUSB_MCU=OPT_MCU_LPC13XX;CFG_TUSB_MEM_SECTION= __attribute__((section(".bss3")));CFG_TUSB_MEM_ALIGN=__attribute__ ((aligned(64)))" c_user_include_directories="../../src;$(rootDir)/hw;$(rootDir)/src;$(lpcDir)/lpc_chip_13xx/inc" debug_register_definition_file="$(ProjectDir)/LPC13Uxx_Registers.xml" debug_target_connection="J-Link"