• AVR Freaks

USB application library - #pragma unknown to XC8

Author
Jorgen
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2013/01/26 04:15:29
  • Location: 0
  • Status: offline
2013/01/29 09:38:24 (permalink)
0

USB application library - #pragma unknown to XC8

I want to use the USB library with the XC8 compiler and linker. I have copied files to a new project such that I do not modify the original files. When I run the XC8 compiler I get error messages saying the following pragmas are not known:
#pragma udata
#pragma romdata
#pragma code
#pragma USB_VARIABLES = 0x260
I have read the XC8 Users's Guide, in particular the information on #pragma psect, but I can't find the equivalent to udata, romdata and code. Nor can I find anything on a linker script as for the C18. The USB library assumes that some tables and buffers are loaded into certain locations in the memory.
My question is: What should I write in the code in place of these #pragmas?
 
#1

4 Replies Related Threads

    Jump to:
    © 2020 APG vNext Commercial Version 4.5