AnsweredAssumed Answered

about MQX interrupt uart

Question asked by HAOYUAN CAI on Apr 14, 2015
Latest reply on May 30, 2019 by Manuel Malagon

Hey ,every one I find a problem about interrupt uart in MQX .I use K60 microcontroller.


Now I can receive data from ISR. but when I send bytes to Computer. I just receive one byte in Computer. even if I send one byte follow one byte .I also just can receive only the first byte. Someone can help me?


After I install my uart ISR . I can not disable it . I have try use _int_disable(); But it does not work.


Below is my code:


void world_task
      uint_32 initial_data
   MY_ISR_STRUCT_PTR  uart_isr_ptr;
    unsigned char return1s;

   _task_id hello_task_id;
   upload_dev  = fopen( "ittyd:", BSP_DEFAULT_IO_OPEN_MODE );  //BSP_DEFAULT_IO_OPEN_MODE  IO_SERIAL_RAW_IO
       uint_32 baud=9600;

  // _kuart_int_enable();
if(return1s == MQX_OK)





/* EOF */
uint32_t g_UART_ISR_buffer[40]; //

void UART4_RX_ISR( pointer user_isr_ptr)
    unsigned char Redata;              
    int itemp;                  
    UART_MemMapPtr  sci_ptr = UART3_BASE_PTR; 


    if ((sci_ptr->S1 & UART_S1_RDRF_MASK)==0) goto UART4_RX_ISR_End;


       Redata    = sci_ptr->D;    //?????????
    UART4_RX_ISR_End: ;