Hi,
I'm using a C5515 usb stick for my prototype development, and I can no longer fit all the bios memory sections in the "DARAM" segment (0x00c0 to 0xff00). How do rearrange the memory so it all fits?
I was trying to add usb support to my code trough the chip support libreary (csl_usb.c, csl_dma.c, csl_audioClass - don't know if I need the dma, but I like to change my code to use the chip support library instead for the dma).
I originally created a standard bios 5 project for my project and modified the memory a bit so I got the following memory segments from the Configuration tool (the reason for all these SARAM segments was that I originally wasn't sure how to allocate DMA buffers correctly, so I'm probably going to change that back).
/* MODULE MEM */
-stack 0x800
-sysstack 0x200
MEMORY {
PAGE 0: VECT: origin = 0xff00, len = 0x100
PAGE 0: DARAM: origin = 0xc0, len = 0xfe40
PAGE 0: SARAM9: origin = 0x20000, len = 0x30000
PAGE 0: SARAM0: origin = 0x10000, len = 0x4000
PAGE 0: SARAM1: origin = 0x14000, len = 0x4000
PAGE 0: SARAM2: origin = 0x18000, len = 0x4000
PAGE 0: SARAM3: origin = 0x1c000, len = 0x4000
}
I have moved all the buffers for my own code to another sections with using the SECTION_DATA pragma and a cmd file:
SECTIONS {
Data_Section: {} > SARAM9 PAGE 0
}
Thanks,
Stefan Gram