Archives
-
Copy External Flash to External Ram, then Execute
Here is the problem.
Code is located in 0x1000_0000 (Chip select 0), it is an external flash. The program can boot off there and run. I need to be able to write to the flash.
I tried appending the keyword “__ramfunc” and it just jumps to the area 0×4 (Not sure what error that is). I am a computer scientist, with no formal computer engineering training. And i am the sole person working on this project. So i am a bit out of my league.
I have a flash driver written, and i am able to get the Manufacturer ID and Device ID from the flash device successfully, but writing to the flash is the hard part.
I have an external SRAM that is located at 0x5000_0000. How do i map the code from flash to SRAM then execute from SRAM.
I have been looking at cstartup.s79 files and cannot figure out WHERE to put the code
My linker file works fine because i am able to boot from FLASH or from SRAM, i just need to be able to map FLASH to SRAM and boot from SRAM.
Any suggestsions?
Related Forum Messages
- Flash vs Sram
- How to run application from the external FLASH/SRAM board?
- Help with Xmega
- Running executable from external SRAM
- How to execute AT91RM9200 based code from flash
- Running boot code by embedded sram.
- SRAM vs FLASH
- AT91SAM7S64 Flash programming
- Execute from External Flash and how to flash program to external flash.
- Copying AT91Bootstrap to NAND Flash
- OK to run app from flash?
- Run u-boot 1.1.5 on at91rm9200-cj
- Booting of AT91SAM9260-Ek Board
- Not able to boot from NAND
- Is SAM BA is copy itself in flash or sram?
- RCM5700 external sram
- Question about memory and how code is stored.
- Intel 386EX embedded processor
- Internal SRAM and External SPI flash download using ULINK2 for LPC4330
- Arm7 atmel vs others
Hi, Can someone please expalin to me how the Arduino decides on flash or Sram? e.g. I have written a 4k program to the atmel328P which has 32k flash, 2k Sram amp 1k EEprom. The IDE shows the amount of flash available but the code runs in Sram. I need some clarification on this isue. Thanks.Hello: How to setup the Bootloader and JTAG to run from the external FLASH/SRAM board? Do you have setup demo that download app image into external FLASH (x8 by 1Mbit) and using SRAM (x8 - 8Mbit)? ---------------- Short descriptions ----------------- I have the application that is getting larger. I need to download the app image into the external FLASH (external board), and run from external flash. I am looking at the TI forum, and see some people have success running their application from the external flash/sram board. If so, can you please give me some technical notes that ...Hi, We are trying to re-design an application that uses old H8 and we want to consider Xmega. Existing device has flash and SRAM connected on 16 bit address line and 8 bit data line. I would like to know if this is possible with Xmega device. I only see an example in the datasheet about connecting SRAM on the DMA. Unfortunately I haven't used DMA/Bus architecture before and not clear exactly how it works. Is it possible to connect external flash on the bus along with external RAM. Also can some body help me if it is possible to ...I 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.Hi! I have AT91RM9200-EK, which I am using as protoboard for my development. As per datasheet one can uset internal boot loader or External memory as per BMS pin. At present I have downloaded u-boot in flash(NCS0) and kept as boot option from external memory. When uBootgt command prompts arrive I use Loadb command to download my application code in SDRAM connected at (NCS1). Now if I download my application code in flash in place of u-boot, can i run my application at boot from flash? As per data sheet, it has been written that code from NPCS0(SPI)/TWI/NCS0 is taken ...Hello everybody. I modify a flash.sct file in SAM3U-EK example code for running boot code that is stored in embedded flash memory(128KB) by sram(32KB) Base concept is 'copy the codes from Flash to SRAM and jump to the SRAM and excute it' Before Code: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 !Hi, I need to develop a boot loader for AT91SAM7S64 using the UART. 1. Is it possible to run the boot loader in flash and yet program other flash sections. E.g. assume I have allocated the first 4KB FLASH to my boot loader, now is it required for me to copy this 4KB into SRAM before flashing any other FLASH area. 2. I did not understand the concept of Internal ROM that contains the SAM-BA boot loader. I have seen some CAN boot loaders for AT91SAM7S64 which copies the SAM-BA to SRAM before execution. Why? 3. For the application SW, I plan to have one ...Dear Sir/Madam, I'm using At89C51Ed2 controller based controller board. In that board has the following interfaces 1. External Flash of 64Kb 2. External SRAM of 64Kb 3. Digital I/O 4. ADC 6. Display (LCD display) Platform: Windows Xp3. Tools: Keil and Flash Programmer Flip. My question is, Is there any potability to flash external Flash memory by using Flip software? Can i execute code from external flash? is there any setting as per data sheet EA have to configure. Regards , Thiru NHi all, With the help of the wisdom of blue_z, I have managed to load AT91Bootstrap and U-boot into the SRAM and SDRAM of the custom 9G20 board I'm working on. I've also been able to load a second copy of U-boot into SDRAM, and then copy that to NAND Flash. At present, I can load AT91Bootstrap via JTAG, and it will pull U-boot out of NAND Flash and execute it. This is great progress. Here's where I'm stuck: AT91Bootstrap is in SRAM, which means I need to reload it after every reset. Strangely, the method I used to copy U-boot to ...I am considering using something like AT91SAM7S64 or S128 as a possible alternative to Cortex M3. Most Cortex M3 have very small RAM and fast flash so you typically would run your app out of flash. The AT92SAM7S64/128 has 64K/128K flash and 16K/32K of SRAM. I am not sure whether you should copy the app from flash to RAM and run there or if most user just run the app from flash. (The 16K/32K of SRAM would be too small to run my app without some sort of swapping scheme between flash and ram.) What is typically done in this ...Hello, I am working on a custom board based on at91rm9200-cj. I have a requirement to boot the system from micro-sd card. So I have patched the u-boot for this. But I don't know how to run u-boot on the system. I am using Lauterbach to load the u-boot binary in the SDRAM at address 0x20000000. Then I set the PC to this address, and press Go to execute the u-boot. But u-boot crashes somewhere, and it goes to address 0x10 (abort handler). Does anyone know how to run u-boot on this system? The size of u-boot image is 129 ...Dear All, The AT91SAM9260-Ek board has Data flash, nand flash internal ROM for SAM-BA. Now the SAM-BA checks for a valid boot image first in Data Flash, if present loads it. If not present then it checks with the NAND Flash and repeats the same procedure.If fails over here it checks for any interaction on the USB or serial port.I have a some doubts as follows: 1gt Is it possible to bypass the Data Flash and use only Nand / Nor Flash. If yes then will I have to modify the SAM-BA and burn it again into the internal ROM.? If yes what ...We are not able to boot from NAND flash on our custom board with the following hardware. AT91SAM9263 64 MB NAND flash (Page size: 512 byte + 16 byte). (Company: ST/numynox) 64 MB SDRAM 2. The Bootstrap and U-Boot is located in the NAND flash at the offsets 0x0 and 0x4000 respectively. 3. However, if the Bootstrap is loaded/placed/burnt in SRAM (at 0x00300000) and U-Boot is placed in the NAND flash at the same offset as above (0x4000), using SAM-ICE and go command is executed "go 0x00300000" in TCL shell. The Bootstrap boot and loads U-Boot to SDRAM and U-Boot also boots by giving ...hi,i read in the olimex site that: "When the TST pin is set during power-up and PGMEN0, PGMEN1 and PGMEN2 are set, the device is entering is a specific test mode and performs a SAM-BA? Boot System Recovery which consists in copying the SAM Boot Assistant (SAM-BA?) in the first two sectors of the on-chip Flash memory. The system recovery procedure takes 10s." but in datasheet i read that it copy it self in sram amp only 8k bytes left for user. can some one explain it for me?which one is right? thanks.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 ...Hello, I recently attempted to start learning the AT91SAM series. I know there is a separate site for the AT91SAM but learning about them brought me to some questions about AVR. When I download my program code to Flash, does the code reside in the AVR flash memory while instructions are fetched from it? Is the only function of the RAM to hold arrays/variables? I ask this because I was looking at the AT91SAM9261. It has some ROM (I think this is only to hold the boot assistant program) and SRAM. It sounded like you would download code to an ...Hi, I am working on a small design using Intel 386EXTC processor. The design has a 512KB Flash and a 512KB SRAM. The processor user manual says "The chip-selects generated by this unit can simplify external "glue logic" by providing signals that can be connected directly to the chip-enable inputs of external memory and I/O devices." My question is if I am using 8bit memories, is it possible that I can take UCS and connect it directly to Flash that has startup information and CS0 to SRAM? Is there a necessity of glue logic? If yeah, how can I do that using A15:A25 address lines and get the CE for ...Hi, I am new to LPC4330. I am using LPC4330 in my project and is in developing stage. I am using LPC4330 of 144 pin which doesnot contain any on-chip memory and am using M25P40 external SPI Flash device of ST Electronics for storing the application. I am also having a Keil ULINK2 JTAG through which I can download the application program into external SPI flash device. 1. I want to know the procedure for downloading the application program(.hex file) into M25P40 device using ULINK2 JTAG and mainly the settings for Keil IDE to download into M25P40 device and also the Memory regions ...In my new arm7 design I was biased toward the atmel AT91 seriesbecause I like the AVR chips so much, but after some research and pointers by nice foks such as rickman and Leon, I decided to look toward other manufacturer's offerings. One thing I discovered is that the flash in the atmel chips (which have it) is slow! Thus using a ball grid type package such as the AT91FR40162 with 2Meg of flash does not give you high program execution speed. I guess you can just run from the 256k of on chip sram, but that should be taken into account when comparing this ...
