From: Fabio G. <fg...@ti...> - 2002-03-22 17:43:52
|
Sorry for my many mails, but I don't understand. if I compile sh-ipl+g-2001-06-04 following the http://linuxsh.sourceforge.net/docs/gdb.php3 instructions, main.c fails because sti is not declared. If I move the "io.h" include on top of main.c everything works good. If I compile main.c case 'g': case '#': /* GDB Stub */ // sti (); putString ("g\n"); breakpoint (); break; when I execute the sh-ipl+g restart; this is the minicom output: SH IPL+g version 0.9, Copyright (C) 2000 Free Software Foundation, Inc. This software comes with ABSOLUTELY NO WARRANTY; for details type `w'. This is free software, and you are welcome to redistribute it under certain conditions; type `l' for details. > l SH IPL+g is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundatin; either version 2.1 of the License, or (at your option) any later version. > g SH IPL+g version 0.9, Copyright (C) 2000 Free Software Foundation, Inc. This software comes with ABSOLUTELY NO WARRANTY; for details type `w'. This is free software, and you are welcome to redistribute it under certain conditions; type `l' for details. > If I compile main.c case 'g': case '#': /* GDB Stub */ // sti (); putString ("g\n"); breakpoint (); break; the board stop to run. This is the output: SH IPL+g version 0.9, Copyright (C) 2000 Free Software Foundation, Inc. This software comes with ABSOLUTELY NO WARRANTY; for details type `w'. This is free software, and you are welcome to redistribute it under certain conditions; type `l' for details. > l SH IPL+g is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundatin; either version 2.1 of the License, or (at your option) any later version. > ---------------> here I press g but I can't read the echo. > Where am I in error? Thanks and regards. P.S. config.h #define CONFIG_LITTLE_ENDIAN 1 #define CONFIG_SCI 1 #define CONFIG_SHCARD7709A 1 config.mk CONFIG_LITTLE_ENDIAN=y CONFIG_CPU_SH3=y CONFIG_MYSHCARD=y .mem MEMORY { ROM (rx): ORIGIN = 0x80000000, LENGTH = 16384 RAM (rw): ORIGIN = 0x8c000000, LENGTH = 2560 STACK (rw): ORIGIN = 0x8c000a00, LENGTH = 1536 } |