Hi, According to LPC17xx user manual the LPC1768 has a total of 64kB of SRAM. I understand that there is a 32kB bank of SRAM connected to the CPU's instruction and data busses, which is readily accessible. There are two more 16kB banks of SRAM which are stated as typically being used for peripheral data but can supposedly still be used for general purpose instruction and data storage. In my project I have to use 40kb to 45kb SRAM. Could you please anybody tell me how to use USBRAM? If any body can help on this, that will be very appreciated. -Prakash 9886545216
Prakash Rajolli wrote: >... > There are two more 16kB banks of SRAM which are stated as typically > being used for peripheral data but can supposedly still be used for > general purpose instruction and data storage. Fist of all make sure if the two additional regions can be freely used by the core. There may be limitations to use this RAM. > In my project I have to use 40kb to 45kb SRAM. Could you please anybody > tell me how to use USBRAM? If any body can help on this, that will be > very appreciated. a possibility: - define the memory-region of the USB-RAM in the linker-script (additional line in the MEMORY block) - use the section variable attribute (see GCC manual) to assign the variables which should be stored in the USB-RAM - define additional output-section which places the input-sections given with the attribute into the USB-RAM. - you may have to copy initial values and/or write zero-values for the variables in the addtional section. You may look into startup-codes, linker-scripts and examples for GBA.
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.