[rtems commit] Milkymist - Increase SOFTUSB_PMEM_SIZE to 8 KB

Joel Sherrill joel at rtems.org
Tue Mar 6 14:37:07 UTC 2012


Module:    rtems
Branch:    master
Commit:    47a45e5cd868b41770b6369e33474cf33e1c2ddc
Changeset: http://git.rtems.org/rtems/commit/?id=47a45e5cd868b41770b6369e33474cf33e1c2ddc

Author:    Werner Almesberger <werner at almesberger.net>
Date:      Tue Mar  6 08:25:39 2012 -0600

Milkymist - Increase SOFTUSB_PMEM_SIZE to 8 KB

We increased PMEM to 8 kB but never updated SOFTUSB_PMEM_SIZE.
This didn't have much of an effect because all we used it for was
to zero unused program memory - which we should never touch
anyway.

But now that "usb load" in FN uses SOFTUSB_PMEM_SIZE, this caused
it to silently truncate the firmware, producing rather puzzling
effects.

Signed-off-by: Joel Sherrill <joel.sherrill at oarcorp.com>

---

 .../libbsp/lm32/milkymist/include/system_conf.h    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/lm32/milkymist/include/system_conf.h b/c/src/lib/libbsp/lm32/milkymist/include/system_conf.h
index 17728c7..022e855 100644
--- a/c/src/lib/libbsp/lm32/milkymist/include/system_conf.h
+++ b/c/src/lib/libbsp/lm32/milkymist/include/system_conf.h
@@ -155,7 +155,7 @@
 #define MM_SOFTUSB_PMEM_BASE    (0xa0000000)
 #define MM_SOFTUSB_DMEM_BASE    (0xa0020000)
 
-#define SOFTUSB_PMEM_SIZE       (1 << 12)
+#define SOFTUSB_PMEM_SIZE       (1 << 13)
 #define SOFTUSB_DMEM_SIZE       (1 << 13)
 
 /* PFPU */




More information about the vc mailing list