[ECOS] printf in Redboot/GDB

Scott Dattalo scott@dattalo.com
Thu Oct 10 16:40:00 GMT 2002


The question is which option in the ecos.ecc config file enables printf 
output?

I've built redboot for my custom hardware - something like an EB40a, but 
not. (I'm not using Thomas' or Tim's patches at the moment, but look 
forward to doing so soon [meanwhile I've hacked the eb40 port to remove 
the hardcoded memory constants]). I've selected the redboot_ROM target; 
i.e. redboot runs in flash. I've got gdb talking to the board and I can 
debug just fine - except that printf's don't print.

>From what I've read, it would seem that

CYGDBG_HAL_DIAG_TO_DEBUG_CHAN

is the cdl component that needs to be enabled.


One more observation: when I run redboot out of RAM and not ROM, the 
printfs do work. Is there some kind of issue with CYG_HAL_STARTUP being 
set to ROM instead of RAM that affects the printf's?

------ 

Another issue that I suspect involves configuration is "Control-C". I
cannot interrupt my code with control-C.


Scott



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



More information about the Ecos-discuss mailing list