Strange WRITECODE behaviour


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: Strange WRITECODE behaviour

    I noticed the variable "x" missing I hope will help.

    Code:
        for x = programStart to $1767F step 64
           Flash = x
           ERASECODE Flash
        next x
    Louie

  2. #2
    Join Date
    Aug 2006
    Location
    Italy
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: Strange WRITECODE behaviour

    Quote Originally Posted by LinkMTech View Post
    I noticed the variable "x" missing I hope will help.

    Code:
        for x = programStart to $1767F step 64
           Flash = x
           ERASECODE Flash
        next x
    Thank you for the answer.
    Unfortunately is not that the problem...

    I've found that for some reasons, the device showing-up that behaviour (the one I've under test), had the configuration bits named BBSIZ - set to 4K words of the Boot record AND the config bit WRTB (boot block write protection set too!!!)
    Seems that this prevent ERASECODE / WRITECODE to deal with the first 4K of code words.

    The only one lifesaver is: how to change the configuration bits programmatically?
    This topic maybe deserve a different thread...

    BTW, thank you for taking time to look at it.

Similar Threads

  1. Strange IT behaviour
    By MikeBZH in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th February 2012, 09:00
  2. Strange behaviour
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th October 2009, 22:35
  3. Strange ADC behaviour
    By ruijc in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 12th December 2007, 20:03
  4. Strange HSEROUT behaviour
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th July 2006, 23:37
  5. strange int behaviour
    By tom in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2005, 15:41

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