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.

Serial Bootloader in ZStack 2.5.1

Other Parts Discussed in Thread: CC2530

Dear colleagues! I have downloaded latest ZStack 2.5.1 and have found out that the Serial Bootloader application for CC2530 is not able to download images. The application had no any reaction on serial port activity with SBDemo.exe. Under debugger I've seen that interruptions remain disabled globally. In earlier ZStack 2.5.0 there is a macro HAL_ENABLE_INTERRUPT() close to the entry of function sblExec() (file sb_main.c). In ZStack 2.5.1 this macro is disappeared. Would you, please, explain me reason(s) of this disappearence?

P.S. After insertion HAL_ENABLE_INTERRUPT() everything's OK.

Best regards. Nikolay A. Neudobnov. Technical director of "Systems, modules and components LTD". Russia. Moscow

  • Great catch, Nikolay - and good attempt to work around it! But your workaround is not good, note the warning that you must be getting:

    Linking
    Warning[w52]: More than one definition for the byte at address 0x13 in common segment INTVEC. It is defined in module "sb_main" as well as in module 
    "interrupt_stubs"
     
    Total number of errors: 0
    Total number of warnings: 1

    The boot loader was re-worked a little so that it would not intercept any interrupts besides the reset interrupt. Thus, it must work only by polling the UART registers and not depending on the UART ISR's. The installer is missing the attached file in the following two locations:

    C:\Texas Instruments\ZStack-CC2530-2.5.1\Projects\zstack\Utilities\BootLoad\CC2530\source\_hal_uart_isr.c

    C:\Texas Instruments\ZStack-CC2530-2.5.1\Projects\zstack\Utilities\BootLoad\CC2530ZNP\source\_hal_uart_isr.c

     

     

    _hal_uart_isr_c.zip