These limits depend on the exact device. Increasing a number does not create RAM. Check the compiler's finished memory map.
|
Setting |
Meaning |
|
USB_RAM_BASE |
PIC18's fixed USB buffer-descriptor/pool address. On PIC16F/LF145x it is fixed at linear $2000. On PIC24/dsPIC, zero selects compiler-allocated storage with automatic 512-byte alignment. Keep the exact target's setting. |
|
USB_RAM_BYTES |
Maximum permitted USB backing storage, not the amount currently reserved. On 16-bit devices it occupies shared unpaged RAM and includes alignment allowance. |
|
USB_APP_RAM_BYTES |
PIC18 ordinary-variable allocation budget. On PIC16F/LF145x it is the ordinary budget remaining after the actual USB reservation: 1024 - USB_RAM_USED. On PIC24/dsPIC, the shared unpaged-RAM planning budget also includes USB backing storage. Stack variables, compiler storage and application variables consume this budget. |
|
USB_EXTRA_RAM_BYTES |
PIC18-only optional USB_ExtraRAM byte array after actual USB allocation; default 0, disabled. Maximum depends on the verified remaining RAM for your current configuration. The tool checks overlap and capacity. |
Use Summary to distinguish allocation from capacity. On 16-bit targets, USB and variables share the same RAM. Count that RAM once, rather than adding the two budgets together.
Created with the Personal Edition of HelpNDoc: Free CHM Help documentation generator