Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  serial port on h120
« previous next »
  • Print
Pages: [1]

Author Topic: serial port on h120  (Read 1614 times)

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
serial port on h120
« on: November 19, 2006, 04:50:49 PM »
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

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

Logged

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: serial port on h120
« Reply #1 on: November 19, 2006, 07:16:48 PM »
You need to define the HAVE_SERIAL macro in firmware/export/config-h120.h

It is currently commented out:

Code: [Select]
/* Define this if you have a serial port */
/*#define HAVE_SERIAL*/
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: serial port on h120
« Reply #2 on: November 19, 2006, 08:34:46 PM »
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

Thank you! It is working perfectly now. :)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  serial port on h120
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.063 seconds with 15 queries.