Support and General Use > Hardware

serial port on h120

(1/1)

roolku:
I have built an adapter as described here: http://www.rockbox.org/twiki/bin/view/Main/Rs232Converter

When using it with the original iriver firmware it works as described here:
http://www.rockbox.org/twiki/bin/view/Main/IriverHardwareComponents#TXD_RXD_connectors

However I would like to use it with Rockbox - initially to display the logf output:


--- Quote ---12 Oct 20:22   Linus Nielsen Feltzing   
firmware/drivers/serial.c 1.25
firmware/export/config-h120.h 1.46
firmware/export/serial.h 1.2
firmware/logf.c 1.9
firmware/system.c 1.124    
Logf output on the serial port for h100 targets

--- End quote ---

Unfortunately it doesn't display anything in my terminal program. I changed the baud rate to 57600  (as suggested by #define BAUD_RATE 57600) and use 8n1 no hand shake. Is this correct?

Has anybody else got it to work? Any suggestions how I should go about debugging this?

Cheers
  Roolku

LinusN:
You need to define the HAVE_SERIAL macro in firmware/export/config-h120.h

It is currently commented out:


--- Code: ---/* Define this if you have a serial port */
/*#define HAVE_SERIAL*/

--- End code ---

roolku:

--- Quote from: LinusN on November 19, 2006, 07:16:48 PM ---You need to define the HAVE_SERIAL macro in firmware/export/config-h120.h

--- End quote ---

Thank you! It is working perfectly now. :)

Navigation

[0] Message Index

Go to full version