Shop OBEX P1 Docs P2 Docs Learn Events
GDB Baud rate? — Parallax Forums

GDB Baud rate?

DavidZemonDavidZemon Posts: 2,973
edited 2015-03-01 19:16 in Propeller 1
I'm just now discovering PropGCC's GDB and am wondering if baudrate configuration is supported. I tried passing the "-b" flag but it didn't seem to change anything.

Congrats to those that got this working though! Once I get in the hang of it, this should make life a lot easier :D

Currently using propellergcc-alpha_v1_9_0_2408

Comments

  • ersmithersmith Posts: 6,053
    edited 2015-03-01 04:03
    I'm just now discovering PropGCC's GDB and am wondering if baudrate configuration is supported. I tried passing the "-b" flag but it didn't seem to change anything.
    No, if I recall correctly the baudrate on the propeller side is hard-coded to 115200. It was pretty hard to cram everything we needed for debug support into the COG. So at the moment changing the speed requires modifying the debug LMM kernel code (in gcc/gcc/config/propeller/cogdebug.ext) and recompiling. TBH I don't think we really looked hard at the baud rate stuff. Do you often use something other than 115200?
  • DavidZemonDavidZemon Posts: 2,973
    edited 2015-03-01 06:06
    Too bad, but definitely understandable. GDB at all on the Propeller is pretty darned amazing.

    I always use 460,800 now that I discovered I can. PropWare's default print utility gets its default baud rate from the load script, so I'm enjoying lightning fast loads as I test PropWare's new SD classes.
  • DavidZemonDavidZemon Posts: 2,973
    edited 2015-03-01 19:16
    How hard would it be to add an optional flag to propeller-load that overrides the configuration file's baud rate? If that existed, then my GDB run config could pass the override flag to propeller-load and all other configs could use whatever baud rate is set by the file. If GDB won't be able to support configurable baud rates (which sounds like a perfectly reasonable restriction considering the hardware that it has to run on), an baud rate override flag for propeller-load sounds like a great compromise.
Sign In or Register to comment.