Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) PROGMEM F() macro warning (Read 23091 times)
Serenifly
Junior Member
**
Offline


Posts: 20
Joined: Jun 20th, 2013
Re: PROGMEM F() macro warning
Reply #20 - Feb 12th, 2015 at 7:39pm
Print Post  
Have you tried what a I posted in #16 ?

Quote:

#ifdef PROGMEM
#undef PROGMEM
#define PROGMEM __attribute__((section(".progmem.data")))
#endif


As said, no idea if it works for you, but it's worth a try.
  
Back to top
 
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: PROGMEM F() macro warning
Reply #21 - Feb 13th, 2015 at 6:19am
Print Post  
I haven't tried that, but my code will now compile uncer 1.5.8. 

It's just a matter of time until the compiler decides to put a jump too far and I'll try your suggestion and report back.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: PROGMEM F() macro warning
Reply #22 - Feb 15th, 2015 at 6:43pm
Print Post  
There is a new beta of visual micro on the downloads page which is the v1502.14 Release Candidate. The version contains a few minor things that might help.

release notes
download
« Last Edit: Feb 15th, 2015 at 6:45pm by Tim@Visual Micro »  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: PROGMEM F() macro warning
Reply #23 - Feb 16th, 2015 at 4:15am
Print Post  
When I try to compile on 1.5+ I still get:
Quote:
(.text.avr-libc+0x2)*:relocation truncated to fit: R_AVR_13_PCREL against symbol `__ctype_isfalse' defined in .text.avr-libc section in vr6\libc.a(cty_isfalse.o)
collect2*:error: ld returned 1 exit status
Error creating .elf


Tried Serenifly's code, but it didn't seem to have any effect.

When I change from 1.5+ to 1.0.x VM changes my board from Mega2650 to Uno. When I go the other way it changes from Mega to Yun.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: PROGMEM F() macro warning
Reply #24 - Feb 16th, 2015 at 11:33am
Print Post  
Yun is the first board in the list for arduino 1.5 and Uno is the first board for 1.0

If the board names and descriptions are different between the ide's then Visual Micro can't work out which board relates to which so positions the list to the first board.

Hopefully you are using the latest Visual Micro beta which has a specific Ide location entry for Arduino 1.6. This will avoid future confusion

Visual Micro allows both Arduino versions to be registered at the same time. So you can simply unzip the Arduino 1.6 system into a folder on your pc and register with vm. No need to use the arduino windows installer.

Thanks
« Last Edit: Feb 16th, 2015 at 11:34am by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: PROGMEM F() macro warning
Reply #25 - Feb 18th, 2015 at 6:59pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint