-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avr-gcc 4.6.2 compilation problem #4
Comments
Here are those compilation problems (before code modification): avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=100 -I/home/as/Pobrane/toDelete2/arduino-1.0/hardware/arduino/cores/arduino -I/home/as/Pobrane/toDelete2/arduino-1.0/hardware/arduino/variants/standard /tmp/build5303070477758921458.tmp/optiLoader.cpp -o/tmp/build5303070477758921458.tmp/optiLoader.cpp.o |
4.6.2 rather changes ("clarifies") the handling of PROGMEM as well, and may require some additional attention in that area. |
hello im having a problem compiling or loading optiloader: Arduino: 1.5.8 (Linux), Board: "Arduino Uno" /home/#########/arduino-1.5.8/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/home/#########/arduino-1.5.8/hardware/arduino/avr/cores/arduino -I/home/#########/arduino-1.5.8/hardware/arduino/avr/variants/standard /tmp/build7387986693628357267.tmp/optiLoader.cpp -o /tmp/build7387986693628357267.tmp/optiLoader.cpp.o |
Arduino 1.0
avr-gcc (Fedora 4.6.2-1.fc16) 4.6.2
Compiling causes a lot of problems about missing "const" words.
Those are my changes that fix this.
OPTILOADER.H
1)
// Forward decl
extern const image_t PROGMEM image_328, image_328p, image_168, image_8;
OPTILOADER.PDE
1)
void read_image(const image_t *ip);
/*
*/
const image_t *images[] = {
&image_328, &image_328p, &image_168, &image_8, 0
};
image_t const target_flashptr; / pointer to target info in flash */
/*
*
*/
void read_image (const image_t *ip)
{
uint16_t len, totlen=0, addr;
const char *hextext = &ip->image_hexcode[0];
target_startaddr = 0;
/*
*
*/
boolean target_findimage ()
{
// tutaj skasowalem linie image_t *ip;
fp("Searching for image...\n");
for (uint8_t i=0; i < sizeof(images)/sizeof(images[0]); i++) {
//target_flashptr = images[i];
}
fp(" Not Found\n");
return(false);
}
Thanks,
Arthur.
The text was updated successfully, but these errors were encountered: