Hi Eric, I am using your tp-freeforall repository for running some code on the 5438a experimenter board. I wanted to debug my code using printf statements. I'm using an almost new version of the int branch (612dc52906c).
The printf examnple in the TOS tutorials seems to compile and run properly (I've added a blinking LED to the loop to ensure it runs periodically). However, I observe no ouputs on any serial terminal. It might be the case that this can be a linux driver problem for the USB, but I've exhausted my possible options 1. Tried using java net.tinyos.tools.Listen. I get an error java.io.IOException: Could not open /dev/ttyUSB0: TOSComm JNI library runtime error: get_modem_status: Invalid argument This is strange since the /dev/ttyUSB0 exists and other terminals are able to connect to it 2. Tried using support/python/misc/serlook.py. It connects to the port but produces no output. 3. Tried cutecom to observe raw serial packets. Connects but produces no output 4. Tried windows based putty to observe raw packets. No output! I tried the default experimenter board program (user experience) from TI which has the usb-uart test option. That works fine with putty, however no output in linux. It seems that the printf is not working (since I should have observed something in putty atleast) and there's something wrong with the linux driver. It would be ok if I have to use putty, as long as I am able to observe some output to printf calls. The USB connection on linux seems fine as well. The dmesg produces [58050.708145] usb 1-2: new full speed USB device number 46 using ohci_hcd [58051.214958] usbserial_generic 1-2:2.0: generic converter detected [58051.215193] usb 1-2: generic converter now attached to ttyUSB0 This was not auto detected. Had to manually load the usbserial driver using the product and vender flags. It doesn't use the ti_3410 kernel driver even after manually loading it (despite it having 3410 chip for the USB interface). Can you help? I should mention that my code is not based in TinyOS yet. I'm in the process to port it to TinyOS. If you are aware of printf support for this board in raw C that compiles with msp-gcc , then that would work for me as well. I did see the TI standard examples ported to freeRTOS by Peter Bigot. However, since I am finally going to be using TOS, I would prefer to not to use freeRTOS for temporary debugging. Thanks Shalabh
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
