| ??? 07/05/99 06:32 Read: times |
#546 - RE: How to locate the Program Code at specific add |
Hi Andreas,
this is often used to download programs to RAM and also described in the C-manual. I use the Keil-C51 but I think you can adapt it to Franklin: 1. you must first redirect all interrupt vectors in the EPROM at 0000h to the RAM, e.g. org 3 ljmp 8003h org 0bh ljmp 800bh org 13h ljmp 8013h .... org 0fbh ljmp 80fbh 2. you must change in the file "startup.a51" the line: "cseg at 0" to "cseg at 8000h". My hint: copy the original to a different name e.g. "startup8.a51" and alter this. Then you must assemble it to an object file. 3. All C files with interrupts must be compiled is this way: c51.exe xxx.c INTVECTOR (0X8000) 4. All C files must located by the linker in this way: l51.exe xxx.obj, startup8.obj CODE (8000h) xxx mean the name of your c file. Peter |
| Topic | Author | Date |
| How to locate the Program Code at specific address | 01/01/70 00:00 | |
RE: How to locate the Program Code at specific add | 01/01/70 00:00 |



