This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530 download with uart

Other Parts Discussed in Thread: CC2530

cc2530 download  with uart, which uart is user.uart0 or uart1.

  • If you don't change anything,it would be uart0.

    just  pls take a look at the bootload source code. the macro definition, HAL_UART_ISR == 1.

    option->c/c++ cmplier->preprocessor->Defined symbols

  • Can  I  use uart1 to download?

  • of course.

    pls see _hal_uart_isr.c

    #if (HAL_UART_ISR == 1)
    #define PxOUT                      P0
    #define PxDIR                      P0DIR
    #define PxSEL                      P0SEL
    #define UxCSR                      U0CSR
    #define UxUCR                      U0UCR
    #define UxDBUF                     U0DBUF
    #define UxBAUD                     U0BAUD
    #define UxGCR                      U0GCR
    #define URXxIE                     URX0IE
    #define URXxIF                     URX0IF
    #define UTXxIE                     UTX0IE
    #define UTXxIF                     UTX0IF
    #else
    #define PxOUT                      P1
    #define PxDIR                      P1DIR
    #define PxSEL                      P1SEL
    #define UxCSR                      U1CSR
    #define UxUCR                      U1UCR
    #define UxDBUF                     U1DBUF
    #define UxBAUD                     U1BAUD
    #define UxGCR                      U1GCR
    #define URXxIE                     URX1IE
    #define URXxIF                     URX1IF
    #define UTXxIE                     UTX1IE
    #define UTXxIF                     UTX1IF
    #endif