IWPengineering / IWP_Firmware_2.0_Beta

Rewrite of IWP Firmware for PIC24F32KA302 (3.3V version of previous micro)
0 stars 1 forks source link

UART Isn't Working #1

Closed Ken-Kok closed 8 years ago

Ken-Kok commented 8 years ago

UART driver doesn't appear to be working.

It puts out unspecified characters, which appear to be skipping random items in the char array or string that I sent it.

Sometimes it also pauses and sends ~10 0x00 characters (I think this is some type of error condition).

I put a hardware breakpoint on the UART Error Interrupt, it is never being hit - just the TX interrupt.

Ken-Kok commented 8 years ago

Attempted to roll my own UART driver using my own Queue system. Still using the interrupt based UART control, so its slightly different than 1.0, but it allows an async approach to be used if desired.

Will test tonight either at Collab or at home.

Ken-Kok commented 8 years ago

Tested UART software, for some reason it is never entering the ISR for TX, which is causing it to never send anything. I believe that once that works, it will be willing to transmit messages.

Ken-Kok commented 8 years ago

The TX ISR wasn't working as intended. I will do more research into figuring this out, but for now, I wrote a non-interrupt based UART routine, which works as intended.