Easy Bootloader Forwarding interrupts

Author
Grobatt
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2012/04/20 09:17:54
  • Location: 0
  • Status: offline
2017/11/14 10:09:01 (permalink)
0

Easy Bootloader Forwarding interrupts

Hello,
 
I'm trying to implement EZBL for my application.
So far I've been able to compile EZBL and configure it for my pic24fj128da206, and it's seems to upload my application just fine.
 
But... my application use same UART port as the bootloader.
 
So when I configure my application with EZBL  I'm not able to use UART interrupts...
 
I've tried to play with interrupts forwarding but without success.... either the bootloader works or my uart works but I can have both :(..
 
In the bootloader code, in main.c I uncommented this lines:
EZBL_RAMSet((void*)&IEC0, 0x00, (unsigned int)&IPC0 - (unsigned int)&IEC0);
EZBL_ForwardBootloaderISR = 0xFFFFFFFF; // Forward all Interrupts to the Application
NOW_EndAllTasks();

 
This should forward the interrupts to my application.
Well this seems to work as when i do this, I can use the uart...
so when I receive a special command from the UART i do this:
 EZBL_RAMSet((void*)&IEC0, 0x00, (unsigned int)&IPC0 - (unsigned int)&IEC0); 
 EZBL_ForwardBootloaderISR = 0x0;

 
Once this is done... I can no longer send/received characters throught the UART so I guess the interrupts have been forwarded, but the bootloader does not respond anymore :(....
 
I guess I miss something... but what ? 
 
Thanks for your help.
post edited by Grobatt - 2017/11/14 10:14:02
#1

2 Replies Related Threads

    Grobatt
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2012/04/20 09:17:54
    • Location: 0
    • Status: offline
    Re: Easy Bootloader Forwarding interrupts 2017/11/14 11:18:39 (permalink)
    0
    Well, I found a workaround for now, but not very satifying...
     
    Instead of forwarding back the interrupts to the bootloader I just soft reset my application, therefore it restart in bootloader,  and I send the new firmware before the bootloader timeout...
     
    It does work, but I would prefer to forward the interrupts back to the bootloader ...
    #2
    RISC
    Super Member
    • Total Posts : 4582
    • Reward points : 0
    • Status: offline
    Re: Easy Bootloader Forwarding interrupts 2017/11/19 16:00:17 (permalink)
    0
    Hi,
    Are you using the new version of EZBL (v2.04) ?
    Regards
     
    #3
    Jump to:
    © 2017 APG vNext Commercial Version 4.5