We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi!
Is there a capability to compile and load all of a program into RAM (not only some functions with __ram keyword)? Can such a program be loaded with the help of JTAG emulator? We also intend to write a loader for loading programs into RAM through UART. This loader will be stored in FLASH memory. Is this intention realizable? Can someone advice us?
We use ADuC207x controllers and Keil uVision3 with C ARM compiler V2.42.
Thanks, Dr. Yury Tychinsky.
How this program can be loaded into RAM?
Basically three methods: - Use the JTAG interface to download and then jump to the start address. - Use the built-in (if existing) ISP monitor to download and then jump to the start address. - Write your own boot loader that listens on a communications device and downloads and then jumps to the start address.
Make sure that the boot loader - or your application startup code - preconfigures the chip for running a RAM-based application, potentially reconfiguring memory mappings of memory controller.
We have linked a program for RAM. Now we try to download the program into RAM with the help of JTAG. But uVision3 doesn't download. It say: No algorithm found for programming. There are only FLASH-programming algorithms in the uVision3, no one for RAM.
Does special algorithm required for RAM programming or uVision3 can download a program directly? Where we can obtain such algorithm?
Thanks.
No flash download algorithm should be needed if your project is correctly configured. The download algorithm is a little program that is downloaded into RAM and uses IAP to program blocks of RAM data to the flash. With a correctly configured project, there will be no need for a flash algorithm, since no data needs to be programmed using IAP.
We have loaded the program into RAM and started it!
The mistake was in using "Load" button of uVision3 toolbar. It requires programming algorithm.
When we run "LOAD file.hex" from uVision3 command line, then JTAG has loaded the program correctly.
Thank you very mutch!