8 years, 9 months ago.

BufferedSerial library works with FRDM-KL46Z but not the FRDM-KL25Z

I'm trying to port my working code from the FRDM-KL46Z to the FRDM-KL25Z but this line "BufferedSerial rs232 (PTA2, PTA1);" now causes the software to hang. The Serial library works OK but I need the buffer feature of BufferedSerial for reception. Don't know if it's significant but I'm also using the USBSerial and MODSERIAL libraries as I have a number of serial ports and found the software "wouldn't work" if I used the same library for all. Any suggestions really most welcome.

Question relating to:

Inherit from Serial and use software buffers for TX and RX. This allows the UART peripherals to operate in a IRQ driven mode. Overrides most (but not all) stdio functions … buffer, BufferedSerial, BufferSerial, Serial
Be the first to answer this question.