From 7b62ca71ac0e3ca2c133be8a7d8e07264f5efea8 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 9 Nov 2011 23:59:46 +0000 Subject: More PIC32 debug updates git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4083 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/pic32-starterkit/ostest/defconfig | 2 +- nuttx/configs/pic32-starterkit/ostest/ld.script | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'nuttx/configs/pic32-starterkit') diff --git a/nuttx/configs/pic32-starterkit/ostest/defconfig b/nuttx/configs/pic32-starterkit/ostest/defconfig index 64eaf5fe2..2aa62e73c 100644 --- a/nuttx/configs/pic32-starterkit/ostest/defconfig +++ b/nuttx/configs/pic32-starterkit/ostest/defconfig @@ -902,7 +902,7 @@ CONFIG_BOOT_RUNFROMFLASH=n CONFIG_BOOT_COPYTORAM=n CONFIG_CUSTOM_STACK=n CONFIG_STACK_POINTER= -CONFIG_IDLETHREAD_STACKSIZE=1024 +CONFIG_IDLETHREAD_STACKSIZE=2048 CONFIG_USERMAIN_STACKSIZE=2048 CONFIG_PTHREAD_STACK_MIN=256 CONFIG_PTHREAD_STACK_DEFAULT=2048 diff --git a/nuttx/configs/pic32-starterkit/ostest/ld.script b/nuttx/configs/pic32-starterkit/ostest/ld.script index 4f6b00cd4..aa888440c 100644 --- a/nuttx/configs/pic32-starterkit/ostest/ld.script +++ b/nuttx/configs/pic32-starterkit/ostest/ld.script @@ -60,7 +60,7 @@ MEMORY * Debug code 0x1fc02000 KSEG1 4096-16 12272 * DEVCFG3-0 0x1fc02ff0 KSEG1 16 12288 (12Kb) * - * Exceptions assme: + * Exceptions assume: * * STATUS: BEV=1 and EXL=0 * CAUSE: IV=1 @@ -79,9 +79,12 @@ MEMORY /* The PIC32MX795F512L has 128Kb of data memory at physical address * 0x00000000. Since the PIC32MX has no data cache, this memory is * always accessed through KSEG1. + * + * When used with MPLAB, we need to set aside 512 bytes of memory + * for use by MPLAB. */ - kseg1_datamem (w!x) : ORIGIN = 0xa0000000, LENGTH = 128K + kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 128K - 512 } OUTPUT_FORMAT("elf32-tradlittlemips") -- cgit v1.2.3