Embedded Strings in your Code Space


Closed Thread
Results 1 to 40 of 50

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    California
    Posts
    33


    Did you find this post helpful? Yes | No

    Default

    This was a new one on me. I was trying to work DT’s "STRINGS.PBP" code for the first time and ran across an error from MPASM, the likes of which I had never seen before.

    “The Microchip assembler (MPASM) only allows up to 62 characters for path and file name. Current length is 72 characters”

    AHHHH ??Now, I am not 100% efficient on doing a forum search, but I could not find anything like this. Stumped big time and no where to go.

    Contacted the author and low and behold I had my code buried 5 levels deep into subdirectories on my C:\ drive. Each subdirectory had long names, hence 72 characters by the time I got to the directory where I placed my "STRINGS.PBP" code. Changed the subdirectory names to shorter lengths and bingo, works fine. Even though all my projects have worked fine over the years, one needs to think how and where they store their projects,

    Thought I would share this little “tidbit” just incase someone else runs into it.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by DavidK View Post
    “The Microchip assembler (MPASM) only allows up to 62 characters for path and file name. Current length is 72 characters”
    You aren't the 1st one to get bitten by that one. That used to bite me every once in awhile for no particular reason...and would stump me for literally hours each time.
    To cure it, awhile back I started a completely separate partition just for MPLAB, PBP, MCS, PICKIT2, all my programming stuff and keep it all in the root directory.
    Even if I do have to type something out at the command line, the line ends up being relatively short. Not to mention, I can 'dynamically' adjust the partition size with Partition Magic since the partition is so small. And I backup the whole thing at PC startup with a simple ZIP batch file straight to a thumbdrive. Practically bullet proof...and transportable...

Similar Threads

  1. Minimizing code space
    By Tobias in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th May 2009, 08:25
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 22:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th December 2008, 00:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  5. Please help with storing strings in codespace
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th May 2008, 02:02

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