DEFINE RESET_ORG and DT Instant Interrupt


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: DEFINE RESET_ORG and DT Instant Interrupt

    Not good solution at all. Because you need to erase FLASH before writing.
    That code need to be in bootloader, as I explained in few post above.
    GOTO need to be placed in while assembling, not at runtime.
    EDIT:
    Try this in bootloader
    Code:
    DEFINE RESET_ORG 80h
    @ ORG 0
    	@ GOTO 80h
    @ ORG 8
    	@ GOTO 3008h
    @ ORG 4
    	@ GOTO 3004h
    Last edited by pedja089; - 3rd February 2021 at 14:05.

  2. #2
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    84


    Did you find this post helpful? Yes | No

    Default Re: DEFINE RESET_ORG and DT Instant Interrupt

    Yes, I have to erase just a 128 byte block before.
    Well, you are right, but I have not enough resources to use your method. My main program is around 80K, I have not enough space in the external EEprom so I have to manage FTP communication to download the new HEX in the bootloader code. Get a block, flash, Get a block, flash .... no crc controll at all.
    I agree there is much risk something goes wrong this way, but if it works I can try remotely update a firmware without having the device back to my lab from the customer as I'm doing now.

    Anyway I have space in the GSM module to save a copy of the actual firmware before starting update and manage a restore if some check fails during the update process. It is a heavy bootloader, I know.....

Similar Threads

  1. DEFINE RESET_ORG and DEC modifier issue
    By Marcick in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 5th February 2021, 07:21
  2. DT Instant Interrupt and Bootloader
    By mikebar in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd September 2014, 08:26
  3. Define Interrupt Label Problem
    By Junkman55 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 14th June 2011, 17:41
  4. Instant Interrupt and USART
    By sirvo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd July 2008, 03:08
  5. DT Instant Interrupt counting
    By jderson in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 9th March 2008, 22:47

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts