This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP432P401R: UART receive/transmit

Part Number: MSP432P401R
Other Parts Discussed in Thread: BOOSTXL-EDUMKII

Tool/software: Code Composer Studio

I have a MSP432P401R and BOOSTXL-EDUMKII. I am having trouble sending an image from the PC to the MSP432 through the UART to be displayed on MKII. The MKII has a 128x128 display. I have a bitmap image that has a color depth of 256K colors represented in a 128x128 array. I am having trouble sending that image in array form in DriverLib and Register Level to the board. Is this possible?

  • Hi Kristopher,

    Yes it is possible. We recommend that you consult the many resources at dev.ti.com, including SDK user’s guides, libraries, utilities, software examples and SimpleLink Academy training modules.

    Here are demo projects using the MSP432 and the BOOSTXL-EDUMKII: http://dev.ti.com/tirex/explore/node?node=APxIJQJwn4jim9wefowLvw__z-lQYNj__LATEST

    Thank you for your time and consideration.

    BR,

    Alexis

  • Thank you. I can't find any example using an image to be displayed, I've only found examples using text, or lines.

  • What trouble are you having?

    There probably is no cookbook answer to this, you will have to roll your own.

    Since the MSP432P401R does not filter out binary data, it is probably safe to send the bytes as is. i.e., you probably don't need uuencode.

    So, send a command to the MSP432P401R to put it in a "receive graphics state" and let the rx interrupt store all the data in a buffer and then signal when the buffer is full

  • Interesting. What command would put it in a "receive graphics state"?

    After the MSP432P401R receives the data in the rxbuffer, it seems like I would use:

    void Graphics_drawImage ( const Graphics_Context * context,
    const Graphics_Image * bitmap,
    int16_t x,
    int16_t y
    )

    or?

    void Graphics_drawMultiplePixelsOnDisplay ( const Graphics_Display * display,
    uint16_t x,
    uint16_t y,
    uint16_t x0,
    uint16_t count,
    uint16_t bPP,
    const uint8_t * data,
    const uint32_t * palette
    )

    The rxbuffer wouldn't be able to hold all of the data a once, a 128x128 array (bitmap image), right? How would I point the rxbuffer data in the _drawMultiplePixelsOnDisplay function? And I can't find much info about the pallete

  • Whatever command you want. I usually use a simple command parser, so I might send the string "bitmap" and then set a flag to know that the next xxx bytes go into the graphics buffer.

    Again, you have to roll your own.

**Attention** This is a public forum