Hi Alain, > sdcc is 2.9.0 #5416 (Aug 6 2010) (UNIX) [...] > It seems to me that SPBRGH never get the right value (seems to stay 0x00). > Can somebody confirm this behaviour ?
Up to Aug 20, 2010, SPBRGH was never assigned in usart_open(). Please update your SDCC installation and try again. > Then, I should like to debug, step by step, my code using piklab and icd2. > If I don't use library functions, I can progress step-by-step in the cof file > with all the asm code. But if I use sdcc library function, I don't get the > underlying asm code. > What I need to do to get this asm code in which I want to cross? The .c code for the libraries is in the SDCC source package. IIRC, the .asm files are deleted after the build. You can try to disassemble the relevant libraries (libio18f.lib?) and inspect them ... Or you include the usart library sources into your project and avoid linking against the io libraries, which allows you to step through the library code as if it were your own ;-) Raphael ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user