Re: Using Keil C with DS80C390?????
"Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <003101c438f7$850d5ea0$764000b4@kardis> |
Make sure you 'org' your code at 10000h in order to load into bank 1. Also make sure you have Keil configured to build a 'HEX-386' file. You should not need to give JavaKit any '-flash' argument, it defaults to thinking that banks 0-7 are flash. I would not mess around with moving banks around or disabling bank 0 protection or you might be left with a loaderless TINI. Kris ----- Original Message ----- From: "Сергеев Василий" <[email protected]> To: <tini-6tN4nzCoH/[email protected]> Sent: Wednesday, May 12, 2004 9:34 AM Subject: [TINI]Using Keil C with DS80C390????? > Hello everybody! > I can't make program to work! > As I understand the only way for comfortable loading program > to TINI is using TINI Loader in bank0. So I decide to load my > program to Bank1. Am I right? > But I can't do that directly: when I use Javakit option > '-flash 1' and then "load Hex file As TBIN", MessageBox > appears and tells that I'm trying to write to Bank0! Why???? > So I use '-movebank0 1'. So my program is in Bank1, but it > doesn't work. > I'm new at Keil C. I read "Application Note 606 Configuring > Keil PK51 Tools to Support 24-Bit Contiguous Addressing Mode > Application Note 606 Configuring Keil PK51 Tools to Support". > I make the same project settings as in that AppNote, use > start390.a51,init.a51 with some changes as said in Note, but > programm doesn't work. My program is very simple: > > void main(void) > { > for(;;){ > #pragma ASM > anl P5, #11111110B > orl P5, #00000001B > #pragma ENDASM > } > } > Can you help me with start390.a51 and init.a51 files. I think > the problem is here? > What project settings should I set especially memory settings, > because I want to write to the Bank 1? And what is the > relation between Bank number and start390 and project > settings? > > Regards, > Vasiliy Sergeev > _______________________________________________ > TINI mailing list > TINI-6tN4nzCoH/[email protected] > To UNSUBSCRIBE, edit your profile, or see list archives: > http://lists.dalsemi.com/mailman/listinfo/tini > _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini