Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

Few queries PIC18F4550, MPLABX

$
0
0
I am using PIC18F4550 with MPBALX IDE V2.26, Xc8 V1.32.


1. Putting string in ROM/flash: I have lots of strings in my code. I want to put those in flash.
When I use this "rom" keyword, error appears, but if I remove this keyword there is no error. But it places string in data ram, which I dont want. What is solution.

Error:
Code (Text):
  1.  
  2. rom const char table[] = "fggx";
  3.  
  4.  
  5. source/global.c:14: warning: (374) missing basic type; int assumed
  6. source/global.c:14: error: (314) ";" expected...
Few queries PIC18F4550, MPLABX

Viewing all articles
Browse latest Browse all 4923

Trending Articles