-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Mk3 new lang #767
Mk3 new lang #767
Conversation
…port files (backup)
all variants verified according to lang_en.txt (release only) config.h updated (enabled ML support)
make_lang_en.sh - english dictionary generator script make_lang - english dictionary generator script (new) lang_en.txt - english dictionary (format changed) lang_en_cz.txt - czech dictionary (new file)
… with '_T(MSG_xx)') + output + fixed source
lang_en.txt - fix missing empty line progmem.sh, postbuild.sh - improved textaddr.sh, update_lang.sh - new files
+some cosmetics in progmem.sh
postbuild.sh, make_lang.sh - fixed (id and offset calculation) language.c, language.h - fixed (==||==) config.h - reserved space for _SEC_LANG changed Marlin_main.cpp - debug output + hardcoded lang_select(1) //means cz
+dictionaries (de, es, it, pl)
… word) +enabled for XYZ axes
#define _i(s) _I(s) | ||
#define _T(s) s | ||
#else //(LANG_MODE == 0) | ||
#define _I(s) (__extension__({static const char __c[] PROGMEM_I1 = "\xff\xff"s; &__c[0];})) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, try to compile the firmware but get allways:
language.h:37: error: unable to find string literal operator 'operator"" s'
and
exit status 1
unable to find string literal operator 'operator"" s'
What do i miss? Using Arduino IDe 1.6.8 portable with Arduino AVR Boards 1.6.11 (because later updates 1.6.12-1.6.21 give more errors) as the Arduino IDE 1.8.5
@3d-gussner recommended version is 1.6.8, GCC version 4.8.1, please follow build instructions. We want upgrade to latest AVR GCC (without Arduino IDE), but it needs some time. |
I am having the same issue when attempting to compile. I am using 1.6.8 downloaded from the link in the instructions. |
@hhoffman23 you installed clear installation of Arduino ide or you have previously installed other version? One known issue is Arduino installer that keeps newer version of avr-gcc (must be manualy removed). Please verify avr-gcc version, should be 4.8.1. |
@XPila Have you seen my bugreport on compiling on recent gcc-avr. It seems that one variable is declared volatile in one file and non volatile in another which is sort of violation of C/C++ in my opintion. If I make it volatile in both files, the firmware compiles fine on latest avr-gcc |
@maximlevitsky thank you, I will take a look at that. |
@XPila As said i use a Arduino IDE 1.6.8 portable (too separate my Arduino IDE versions) and I double checked the arv-gcc.exe:
Still getting compiling error:
and more of these |
@maximlevitsky Hi, saw a video that there might be some issues with IDE 1.8.x vs 1.6.8 https://www.youtube.com/watch?v=ev-Di5GVQ3Y I never had issues compiling and running Prusa firmware with Arduino IDE 1.8.x on my MK2. |
@PavelSindler Thanks, it compiles now. Hoped that the code get smaller but compared to 3.2.1 it uses few more bytes. Here my results:
Arduino IDE 1.6.8 + fw.3.2.1 with pulled request
BTW: Compiling with IDE 1.6.8 vs 1.8.5 uses much more program space. Just tried to compile my MK2_privatebuild with both versions (both are in portal mode to separate the libs, boards, etc) Arduino IDE 1.6.8 + MK2_privatebuild
Arduino IDE 1.8.5 + MK2_privatebuild
I had in the past strange things happening when the used hex file program space was above 96-97%. That's why i released serveral Hyperfine Bed Leveling firmware hex files with less languages. |
@3d-gussner the spared flash space with 1.8.5 is unbelieveable! Its high time to upgrade our buildsystem... |
Hell freezes over!;-) |
@stahlfabrik :) I always preferred build-system upgrade and code optimization/redesign, but have not time to solve. Now we are totally out of resources, so it is necessary. |
@3d-gusner you can disable secondary languages (config.h, #define LANG_MODE 0) for debugging and other purposes. It will spare ~11kb of flash. |
@XPila another comparison between 1.6.8 vs. 1.8.5 (portable versions) with newest MK3 branch code Exactly the same source code on Windows 10:
and a hex files size of 693 KB (709.661 bytes) Arduino 1.8.5 + add violate fix with no changes to used language results to:
and a hex file size of 670 KB (686.666 bytes) Also with Arduino IDE 1.8.x library updates and board updates weren't never an issue if the code was ok. Don't know if you watched the 13 min YouTube video I linked above Updating Arduino Broke my Code!! FAIL thought it is interesting and quite good investigated. |
No description provided.