Problems with emulator.

[email protected] Fri, 11 Jun 2004 13:52:38 +0200
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Hello list.

I am coding in C and assembly. I have started with a Metalink emulator.
I load the software in the emulator without target. The code starts but I
have some problems with the ROM's functions.

     - I've compile with Keil the code
          ........
          #define RAM_START             0x14000
          #define RAM_END               0x5FFFF
          void main()
          {
              unsigned long contador;
               TR2 = 0;

          #if 1                    //(A)
               init_rom(RAM_START, RAM_END);
          #else                    //(B)
               init_copyivt();
               init_redirect();
               init_clearSystemRAM();        **loop****
               init_clearXSEG();
               init_mm(RAM_START, RAM_END);
               init_km();                     **loop****
               init_network();
               init_eth();                   **loop****
               init_sockets();               **loop****
               init_tick();
               task_genesis(ROM_SAVESIZE);   **loop****

            #endif
               contador = 0;
            }

     and I've mapped code (from 100000H to 180000H) and Ram (from 10000H to
 60000H)
but inside the function init_rom the code's loop is infinite. I try with
the functions (B),
but it happends the same with some of them (**loop****).

I would be grateful is someone could help me.
Thanks and best regards.
R. León.




_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini