Shop OBEX P1 Docs P2 Docs Learn Events
fdserial rxChar works with CMM but not XMM — Parallax Forums

fdserial rxChar works with CMM but not XMM

jkg0jkg0 Posts: 2
edited 2014-09-07 19:41 in Propeller 1
I have a simple program to read serial from a GPS board with fdserial.h.

It works fine when I compile for the CMM memory model but when I switch to XMM I never get any characters from fdserial_rxChar(int fd).
What should I check?

Comments

  • jazzedjazzed Posts: 11,803
    edited 2014-09-07 15:51
    Simple Libraries do not fully support XMM modes. If you have some specific needs that require XMM modes we can get you through them. The main issue is to make sure that the libraries are built with the XMM mode you want to use.

    XMM modes are hardware dependent. What board are you using?
  • jkg0jkg0 Posts: 2
    edited 2014-09-07 17:35
    I am using the activity board:
    http://www.parallax.com/product/32910

    To clarify, I am trying to use the XMMC External Flash Code Main Ram Data memory model.
    The libfdserial folder has an xmmc folder so I assumed it was available.
    It does build in XMMC mode but no characters are received from the rxChar command.
  • jazzedjazzed Posts: 11,803
    edited 2014-09-07 19:41
    Hi.

    First I recommend opening the libsimpletext.side project and running that in CMM, LMM, and XMMC modes to verify they all work. Then try something else.

    XMM-SINGLE and XMM-SPLIT modes will not work on the ActivityBot because only EEPROM (or maybe SDCard not recommended) is available on the board unless you have another device.

    The libsimpletext.side is typically in: Documents\SimpleIDE\Learn\Simple Libraries\TextDevices\libsimpletext
Sign In or Register to comment.