Little Issue Report

  1. Pin Name

I am going through mbed os five documents/tutorial, Platform https://os.mbed.com/docs/v5.9/reference/callback.html The example program has the following object RawSerial declaration:

RawSerial dev(D1, D0);

Pin name D1 and D0 were ok for NUCLEO-L476RG and LPC1768 but error for DISCO-F429ZI. Ha Ha.

I am guessing now that DISCO-F429ZI board does not have Arduino compatible header. What am I thinking!

Now I changed as

#if defined(TARGET_DISCO_F429ZI)
RawSerial dev(SERIAL_TX, SERIAL_RX)
#else
RawSerial dev(D1, D0);
#endif

We all know we can declare the object RawSerial as with SERIAL_TX/_RX, then we shouldn't have the problem at all, but I changed as above to keep the test code as much like as the original mbed document.

[resolved]


Please log in to post comments.