Jump to content
Sign in to follow this  
seedy1812

#pragma Data Error

Recommended Posts

OS: WinXP, SP2

SourceBoostIDE: 6.50 Pre release

Compiler: BoostC 6.50 Pre release

Target: PIC16F877A

 

 

I have a data table defined by

 

#pragma DATA 0xc100 , 0x01,0x02,0x03,0x04,0x05,0x06

#pragma DATA 0xc110 , 0x11,0x12,0x13,0x14,0x15,0x16

#pragma DATA 0xc120 , 0x21,0x22,0x23,0x24,0x25,0x26

 

now I want to create a series of pointers to these arrays so i tried

 

#pragma DATA 0xc300, (0xc100)>>8,(0xc100)&0xff,

(0xc110)>>8,(0xc110)&0xff,

(0xc120)>>8,(0xc120)&0xff

 

This produces

<filename>(33): error: failue

 

but if i use

 

#pragma DATA 0xc300, 0xc1,0x00,

0xc1,0x10,

0xc1,0x20

 

It works a treat

Edited by seedy1812

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.

Guest
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.

Loading...
Sign in to follow this  

×
×
  • Create New...