Mezzanine Board Serial not working


#1

Hi guys,

I have a mezzanine board (B96B_F446VE) connected to the DB410c and am trying to run some of the mbed examples using the mbed online compiler.

I can run a simple blink demo without issues and I see the led blinking.

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1; // LED is ON
        wait(0.2); // 200 ms
        myled = 0; // LED is OFF
        wait(1.0); // 1 sec
    }
}

But as soon as I add a Serial object as shown here:

#include "mbed.h"

DigitalOut myled(LED1);
Serial pc(SERIAL_TX, SERIAL_RX);

int main() {
    while(1) {
        myled = 1; // LED is ON
        wait(0.2); // 200 ms
        myled = 0; // LED is OFF
        wait(1.0); // 1 sec
    }
}

the mezzanine board stops blinking.

Does anyone had similar issues? Any ideas on how to debug this?

Thanks,
Gary


#2

Have you checked to see if perhaps either the TX or RX is on the same pin as LED1? Maybe try a different LED position to see if that works?