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.

MSP430FR2311 MSP-EXP430FR2311 Display / printf / uartprintf / ... Need to print ADC output

Other Parts Discussed in Thread: MSP-EXP430FR2311, ENERGIA, MSP430G2231, MSP430FR2311, BOOSTXL-EDUMKII

The MSP-EXP430FR2311 has very few standalone program examples. None of them writes out anything. In Resource Explorer some marketing wizard has written:

"Rapid prototyping is a snap thanks to 20-pin headers and a wide range of BoosterPack plug-in modules enabling technologies such as wireless connectivity, graphical displays, environmental sensing, and much more."

The truth is that  MSP-EXP430FR2311 is not even recognized in the TI BoosterPack Checker and has no GrLib code or ANY other code for writing to display or  PC screen on the web. The HelloWorld single line printf example from Resource Explorer doesn't even work (.out-file error - I see from the web that this is a somewhat common problem). 

Furthermore - the board can not be used with Energia, so there is no hope of porting some Arduino display library.

Could anyone please give me a code snippet or a tip on how to get more data out of this "First_in_the_World_MicroController_with_TIA_Op_Amp" board than the somewhat coarse photo diode light intensity tracking LED1 in the OutOfBox example.

This board has taught me that a microcontroller development board without at least one standalone program  that prints at least characters 0-9 and decimal point for at least one common display driver or on-board display is useless for me. I have some 5-6 other launchpads and they either have GrLib or another display example. Next time I buy one I will start by looking at available code. No display code = No buy.

Thank in advance.

Roy

  • Hi,

    Here is a handy bit of code to act as printf for memory limited MSPs. It comes from 'opossum'; from the '43oh' MSP forum.
    I see that the FR2311 has an eUSCI, so you'll be able to write your own UART character drivers for the tiny printf.

    forum.43oh.com/.../

    Additionally, the MSP IDE 'CCS' allows easy view of the register values for the FR2311. This would allow you to have a peek at the ADC register upon hitting a breakpoint. As you've probably seen, there are code examples in slac708b.

    good luck!
  • Hello Otto, and thank you very much.

    I did manage to get tiny printf to compile in its original msp430g2231 version. However, when I copy code and relevant files and includes into a new empty msp430fr2311 project, I get errors on DCOCTL and BCSCTL1.

    I have after looking around found that the clock code (after // Use 1 MHz DCO factory calibration) must be changed:

    // MSP430FR2311 uses Clock System (CS) Module, not Basic Clock Module, nor Basic Clock Module+
    // CS does not have "BCSCTL1" and "DCOCTL". Read Chapter 3 Clock System (CS) Module

    This will be my next task. As you see, I have only put in the comments for now.

    I have also decided to try to use the BOOSTXL-EDUMKII_SoftwareI2C_MSP430FR2311 as a basis for code where the fr2311 is sending ADC readings by I2C to another LP or uC that has LCD. Not very elegant for just printing 10 bit ADC codes (or volages), but I am only concerned with the results.

    eUSCI is new ground to me. I will look into it.

    Thanks again.

    Roy

**Attention** This is a public forum