Memory Mapping 1Mb SRAM to LM3S3748
Here i have some doubt please help me.
I am interfacing 1Mb SRAM to LM3S3748 processor using SPI protocol. For this i used 4 GPIO pin and configured as SPI protocol. I can able to write and read data from memory location of SRAM separately. My doubt is that in LM3S3748 limited in built RAM is there so i cant store all my data in that so i want to store to external SRAM. For example if i declare int a it should store in external SRAM. To store like this how i can configure my code?how i can call my read and write function of SPI driver? is there any changes in startup code ? if it is there please explain me how i can do this.
Related Forum Messages
Hi, I would like to store data in a 16kByte SRAM. When the memory of the SRAM has for example reached 10kByte it must send it to a FLASH sd- memorycard of 1GB. Meanwhile the SRAM is still storing new data in the SRAM cells. Does someone knows if reading and writing simultaneously in SRAM is possible ? And is there a maximum write/erase cycle for SRAM? (not mentionned in ATmega datasheet) Thank you !I had written a basic program to STORE data in SRAM and compiled it with the data memory window open. The result was as expected. The data from a register was STORED into the SRAM location. The program was as below.... rogram to store data into SRAM location 0x60 .include "m32def.inc" .org 0x000 rjmp STORE STORE: ldi r16,10 sts 0x60,r16 ;store direct into SRAM rjmp STOREI have an STM32 dev board with some external SRAM. I would like to execute my code from that external SRAM, but my processor only supports booting from the Flash, internal SRAM or System memory (a part of the internal SRAM). What is the easiest way to run code from an external SRAM? Notes: I load code with OpenOCD through JTAG, and I use GDB.I am testing a board that has external SRAM. Apparently the SRAM is relatively sensitive to the soldering heat from the manufacturing process, and so careful testing must be done to check integrity of SRAM for newly manufactured boards. What is the best (bare-metal) way to test SRAM? I have a driver that initialises the SRAM for read/write access. My first thought is to run tests such as: 1) Set all bits in SRAM to 1, and check that the SRAM was properly written. 2) Write the digits of Pi in SRAM, and check that the write was done properly. ...Very cool that a AtMega8 can handle 8K of program code. But the data that can be stored is limited to 1K. The only solution that I can think of is to proceed to an AtMega 328, which can store 2K of Data. As I am only using only 4K of program code, this seems inefficient. Is there a workaround to use the Flash/EEPROM/SRAM to store more data? I need to store almost 2K of data in the uC. It bugs me that I am using half of the Flash, but the SRAM is full. This is the bottleneck for ...Hi ,All ,i am a beginner of AVR. Now I am doing a project. Part of them is about communicating data betwwen PC and microcontroller AVRmega 8515: I want to give two number ,for example ,A=0x001122, B=0x223333 to microcontroller.In microcontroller ,I have already write the algorithm "multiplication",Now I want to send A and B to SRAM (memory of Microcontroller)from PC, and store A and B in SRAM .then I load A and B to register using the algorithm"multiplication" to compute the result of A*B. After that I store the result to SRAM, and then I want give the result stored ...Hi, A install a extra sram AS7C34096 into the RCM5700 board. The external ram works fine. It can store data, or running code in it. The external sram uses CS1 OE1. I am sure the external sram is OK, if I force the CS_RAM to CS1 OE1 WE1 for "store program in flash", MB2CR is 0xC5 which mean it point to the external sram. But if I change BOARDTYPES.LIB: #if _BOARD_TYPE_ == RCM5700 //the RCM5700 has only 128k of internal RAM available #ifdef _RAM_ #if __SEPARATE_INST_DATA__ #error "The RCM5700 does not support compiling to" #error " RAM when Separate IampD space is enabled." #fatal " Turn off Separate IampD or compile to ...I'm using the Keil MCBSTM32F400 development board and I'd like to start using the external SRAM. From the user's guide the SRAM uses the following pins and is at the following location: SRAM FSMC_NE3 / PG10 0x68000000 - 0x681FFFFF I'm having trouble accessing the memory. When trying to write, nothing happens and when reading back I always get 0xFF. Does anyone have an example of setting up the FSMC for the Keil development board to use its external SRAM? Is there a Keil example application that shows how to use the memory? What I've tried so far: In the standard system_stm32f4xx.c ...Hello all, I am looking to expand the memory I have available in an AT Mega 1281. I understand the datasheet offers considerable information regarding this (which I've read) but I was hoping to get some recommendations for a 64K SRAM chip and an octal latch that people have used. Over at Mouser and Digikey, I found it difficult to find 64KB SRAM. It was either more or less than I needed. And some was arranged in 16-bits instead of 8-bits, which I think is what is needed with an AVR. I have one further question - once the compilar ...I am using 18F97J60 w/ MPLAB-IDE v8.15a amp RealICE (in Debug mode). I am attempting to enable external SRAM support and have properly modified the .lkr script to support it. I am able to successfully read/write to the SRAM (using executable code) which starts @ 0x20000, however, I cannot inspect it's contents in a watch window. The watch window paints a green 'P' in the left column (which I assumes means PGM memory ... or something) I also cannot inspect this ext SRAM contents in the program memory window. Can MPLAB paint the ext ...I use a Atmega88 as a power controller in a larger system with another processor. I have some state information in SRAM that I'd like preserved on the AVR side. What I've observed is that if the other processor uses the serial programming interface (SPI) of the AVR to simply read Flash or EEPROM data of the AVR, when the AVR runs again, the SRAM contents are not affected. (when I disable clearing of SRAM at init in CV-AVR). But when the other processor reprograms that AVR (uses chip erase/write program memory/write EEPROM memory commands) then it looks like the ...I have an ARM Cortex 3M (reference manual here) connected through the FSMC (Flexible Static Memory Controller) to a Spartan 6 FPGA. In turn, the Spartan 6 is connected to some external SRAM. I need to production test the SRAM. As I see it, I have two options: - Write an SRAM driver directly from the FPGA (without involving the Cortex). - Route the Cortex memory pins through the FPGA to the memory. Reading through the specs of the SRAM, it seems that writing an SRAM driver for the FPGA is a relatively difficult task. I am therefore inclined to ...Hi All, I am working on a program that captures an image form a camera and displays it on a screen. The data received from the camera is too big to fit into an array so I am storing it on an external SRAM IC. So I want to take a picture, store it in the SRAM IC, retrieve it from the SRAM IC, and display it to the screen. The screen, camera and SRAM IC all have separate libraries but how can I get them working together? If I create an SRAM object in main() how do I pass ...Hello All, I need an urgent help. I wish to write real time data in to the SRAM of PIC24FJ128GA010. It is having 8KB data memory. So i can save maximum 64000bits in to the memory. So i need to start writing data in to that from the 1st location (memory location) to the last memory location. I wish to know that how can i do that using the c30 compiler. RaviNot enough ram. How easy is it to add external SRAM? I have built a single color 4x4x4 LED cube and I'm learning RGB control using some led drivers. My ultimate goal would be to get a 8x8x8 RGB LED cube going and I'm trying to figure out if it will be possible using AVR control. The main stumbling block I've come across so far is memory. To have individual control of 512 RGB LEDs, I need 1536 10 bit values (for the led drivers I have). It would probably be nice to also have a 2nd buffer that size ...Hello all. I'm working on a rather software-intensive application (video encoder) at the moment, and am trying everything possible to optimise my code. I have discovered that the on-board 32kB SRAM does not seem to be as fast as it should be: After writing some simple data-copying benchmarks, I have the following results: DDR to DDR copy = 40.8 MB/s (copyback mode) DDR to DDR copy = 79.2 MB/s (write-through mode) SRAM to SRAM copy = 129.6 MB/s Cache to cache copy = 399.2 MB/s (Platform is MCF54450 at 240MHz with mobile-DDR ...Hi I need to WRITE and READ some data to and from a single SRAM using an p89v51rd2 micro-controller. i had used the xdata initialization to the variable for the particular address like unsigned char xdata var _at_ 0xD200 hear i want to read and write the data which is stored from sram of (128K*8) memory, that data has need to shown on hyper terminal by using serial communication, and i am having the hardware which is working perfectly by some other previous old code which is not implemented by me. and this is communicating with the hyper terminal cos it ...Hi, I am using BL1800 and I am trying to store data of two different data-type into SRAM - each with its own block of allocated memory. Mainly, 1000bytes for char and 1000bytes for unsigned long. Can I do that? For the past 2 or 4 days, I have been very unsuccessful. Although my program compiles successfully and uploads into the rabbit without any problem, when it runs, it doesn't read the unsigned long data in the SRAM. At that point, program fails or halts. Any ideas or help will be greatly appreciated. Thank you in advance.Hello, I currently have a program that collects samples with an ADC and stores the data to SRAM. I would like to be able to store a lot more data. Since the AT90USB1287 comes with two flash chips (of the at45db642d type), I would like to store the data in this flash memory. I can't seem to figure out how to address this memory or write to it. I am writing code in asm. Would someone be kind enough to give me some example code and/or direct me to resources that explain how to access and use flash memory? Thanks.Hi guys! I have one (maybe stupid) question. Is it possible to connect to atmega 128 external 128kb sram memory? Can I use not all address lines(in that case I could address only 60k but still use 128k sram module)? Problem is that it's quite hard to find (I couldn't find) in Lithuania 3,3V external SRAM chips and the only one I have is 128k
- SRAM vs FLASH
- Is this a BUG??…avrstudio help…
- Running executable from external SRAM
- Testing the integrity of SRAM
- ATmega Data Storage
- I Need Your HELP! Communicating bewwen PC and SRAM of AVR
- RCM5700 external sram
- MCBSTM32F400 external ram
- Recommendations for 64K SRAM IC and Octal Latch?
- External Memory Support
- SRAM cleared from serial programming ?
- Microprocessor controlling SRAM through an FPGA
- Passing Objects Around
- PIC24F SRAM read and write Data
- Not enough ram. How easy is it to add external SRAM?
- MCF54450 V4e SRAM performance
- Coding problem for external SRAM interfacing with p89v51rd2
- XMEM, SRAM and Datatype
- Writing to external flash (on the AT90USB1287)
- Atmega128 external SRAM