This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

load program at address 10000h on TINI DS80C390

Hello everyone!
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.
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????

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".
(http://pdfserv.maxim-c.com/en/an/app606.pdf)
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(;;){
P5 &= 0xFE;
P5 |= 0x01;
}
}

1.Can you help me with start390.a51 and init.a51 files?
2!!!!.What project settings should I set especially memory settings, because I want to write to the Bank 1?
3.And what is the relation between Bank number and start390 and project settings?

Regards,
Vasiliy Sergeev

0