Hi Raphael, Le vendredi 24 février 2012 07:49:27, Raphael Neider a écrit : > 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.
I checked the svn repository and you right ;-) SPBRGH was introduced in rev 5938. How could I do a such error? I probably download the latest sources to parse the libraries code and forgot there were not the installed libraries. > > 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 ... No, thanks ;-) > 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 ;-) This is a really good idea, why didn't I think of that before? I won't do it now as you point me the real "problem", but I retain the idea for future use. Thanks for your help! Regards, Alain PS: I spent many time to find how to use the pic16 usart library because the lack of documentation. As I'm now near to well understand how it works, I would like to write some words to document that library and make that documentation available in sdcc for future users, but how can I do? Add the doc in header files? A chapter in sdcc manual? Something else? Let me know. ------------------------------------------------------------------------------ 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