[ECOS] Philips LPC2294

Xavier xavier@localhost.localdomain
Tue Sep 7 04:07:00 GMT 2004


Why would set_debug_comm() not return?  From packages/hal/common/v2_0/src/hal_if.c:

        // Set accessor functions
        CYGACC_CALL_IF_SET_DEBUG_COMM_SET(set_debug_comm);
        CYGACC_CALL_IF_SET_CONSOLE_COMM_SET(set_console_comm);

        // Initialize console/debug procs. Note that these _must_
        // be set to empty before the comms init call.

        hal_diag_led(2);
        set_debug_comm(CYGNUM_CALL_IF_SET_COMM_ID_EMPTY);
        hal_diag_led(3);
        set_console_comm(CYGNUM_CALL_IF_SET_COMM_ID_EMPTY);
        hal_diag_led(4);

        // Initialize channels. This used to be done in
        // hal_diag_init() and the stub initHardware() functions, but
        // it makes more sense to have here.
        cyg_hal_plf_comms_init();

I added the hal_diag_led() calls to help figure out what is happening.  I used hal_diag_led()
to determine that set_debug_comm() reaches:

        CYGARC_HAL_RESTORE_GP();
        hal_diag_led(1);
        return res;

CYGARC_HAL_RESTORE_GP() is defined packages/hal/arm/arch/v2_0/include/hal_arch.h:

        // Macros for switching context between two eCos instances (jump from
        // code in ROM to code in RAM or vice versa).
        #define CYGARC_HAL_SAVE_GP()
        #define CYGARC_HAL_RESTORE_GP()

Any suggestions?

xavier


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list