AnsweredAssumed Answered

Bootloader and app using same Vector, App don't work properly

Question asked by Cristobal CAMPOY on Feb 21, 2014
Latest reply on Feb 25, 2014 by Cristobal CAMPOY
Branched from an earlier discussion

I'm Using K60 with CW10.2 and MQX 3.8, based in example bootloader AN4368SW rev2.


After some tests I've discovered that all interrupts are working except USB(59h vector) used by the Bootloader. What can I do?


vectors.c from bootloader:


(tIsrFunc)USB_ISR, /*  0x59 0x00000164 - ivINT_USB0         This dont go */


(tIsrFunc)Cpu_Interrupt, /*  0x43 0x0000010C - ivINT_UART3_RX_TX        This perfect */

I have discovered that if I coment this lines in bsp_platform_init(void) in bootloader code, the app runs with usb interruption OK, but the bootloader don't.



    SIM_CLKDIV2=0x02;                               // USB Freq Divider  


    // weak pulldowns



Someone can explain me why if this lines are executed the usb driver not initialize in the app, using MQX.