Jump to content
Sign in to follow this  

Arrays Inside Struct With -idx 2

Recommended Posts

Can anybody point me to a more in depth explanation of "-idx 2"?

Obviously, the new two byte index does not work in all cases:


reduced example, BoostC 7.02, PIC18:

typedef struct
 unsigned char doesntwork[300];
} tester;


This gives a

"No remaining memory block (on target) with suitable start address"



Obviously, a structure is still limited to one bank?

What else should I know


At least, I already figured out that libc needs to be recompiled with "-idx 2"

to make use of it ;-)

Share this post

Link to post
Share on other sites

Hmmm... I've been using large arrays including structs > 256 bytes and -idx 2 without getting this error. Is the error produced when you declare an array of 300 bytes or just when you use a struct that contains a 300b array?


It would be nice to have more in-depth explanation of -idx 2. I've encountered problems with it but never seen this error.

Share this post

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...