From 59882e4c0b8daa58c6ba8603bc64e4c467448dfa Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 10 Aug 2018 00:18:37 +0200 Subject: [PATCH 1/4] Update README.md. --- README.md | 7 ++++--- README_cz.md | 7 +++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 72598ee0e..53eda62c3 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ 1. install `"Arduino Software IDE"` for your preferred operating system `https://www.arduino.cc -> Software->Downloads` -it is strongly recommended to use older version `"1.6.9"`, by which we can assure correct compilation results -_note: in versions `1.7.x` and `1.8.x` there are known some C/C++ compilator disasters, which disallow correct source code compilation (you can obtain `"... internal compiler error: in extract_insn, at ..."` error message, for example); we are not able to affect this situation afraid_ +it is recommended to use older version `"1.6.9"`, as it is used on out build server to produce offitial builds. _note: in the case of persistent compilation problems, check the version of the currently used C/C++ compiler (GCC) - should be `4.8.1`; version can be verified by entering the command `avr-gcc --version` if you are not sure where the file is placed (depends on how `"Arduino Software IDE"` was installed), you can use the search feature within the file system_ @@ -27,7 +26,9 @@ _note: select this item for any variant of board used in printers `'Prusa i3 MKx _(after installation, the item is labeled as `"INSTALLED"` and can then be used for target board selection)_ 3. modify platform.txt to enable float printf support: - `"compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections"` +add "-Wl,-u,vfprintf -lprintf_flt -lm" to "compiler.c.elf.flags=" +example: +`"compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections"` # 2. Source code compilation diff --git a/README_cz.md b/README_cz.md index 5c6499634..24df12fa4 100644 --- a/README_cz.md +++ b/README_cz.md @@ -2,8 +2,7 @@ 1. nainstalujte vývojové prostředí `"Arduino Software IDE"` pro operační prostředí, které jste zvyklí používat `https://www.arduino.cc -> Software->Downloads` -důrazně doporučujeme použít starší verzi `"1.6.8"`, u které jsme schopni garantovat bezproblémový překlad a správné výsledky -_pozn.: ve verzích `1.7.x` a `1.8.x` jsou k datu vydání tohoto dokumentu evidovány chyby v překladači jazyka C/C++, které znemožňují překlad zdrojového kódu (můžete např. obdržet chybové hlášení `"... internal compiler error: in extract_insn, at ..."`); tuto nepříjemnou situaci bohužel nedokážeme nijak ovlivnit_ +doporučujeme použít starší verzi `"1.6.9"`, kterou používáme na našem build serveru pro překlad oficiálních buildů _pozn.: v případě přetrvávajících potíží s překladem zkontrolujte verzi aktuálně použitého překladače jazyka C/C++ (GCC) - měla by být `4.8.1`; verzi ověříte zadáním příkazu `avr-gcc --version` pokud si nejste jisti umístěním souboru (závisí na způsobu, jakým bylo `"Arduino Software IDE"` nainstalováno), použijte funkci vyhledání v rámci systému souborů_ @@ -26,6 +25,10 @@ _pozn.: tuto položku zvolte pro všechny varianty desek použitých v tiskárn 'kliknutím' na položku se zobrazí tlačítko pro instalaci; ve výběrovém seznamu zvolte verzi `"1.0.1"` (poslední známá verze k datu vydání tohoto dokumentu) _(po provedení instalace je položka označena poznámkou `"INSTALLED"` a lze ji následně použít při výběru cílové desky)_ + 3. modify platform.txt to enable float printf support: +add "-Wl,-u,vfprintf -lprintf_flt -lm" to "compiler.c.elf.flags=" +example: +`"compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections"` # 2. Překlad zdrojoveho kódu From 4f190c010e1a446b27936e14b62868825ff175d8 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 10 Aug 2018 00:34:17 +0200 Subject: [PATCH 2/4] Update README.md. --- README.md | 4 +++- README_cz.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 53eda62c3..cdc8f06d9 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,9 @@ _note: select this item for any variant of board used in printers `'Prusa i3 MKx _(after installation, the item is labeled as `"INSTALLED"` and can then be used for target board selection)_ 3. modify platform.txt to enable float printf support: -add "-Wl,-u,vfprintf -lprintf_flt -lm" to "compiler.c.elf.flags=" + +add "-Wl,-u,vfprintf -lprintf_flt -lm" to "compiler.c.elf.flags=" before existing flag "-Wl,--gc-sections" + example: `"compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections"` diff --git a/README_cz.md b/README_cz.md index 24df12fa4..80216325e 100644 --- a/README_cz.md +++ b/README_cz.md @@ -26,7 +26,9 @@ _pozn.: tuto položku zvolte pro všechny varianty desek použitých v tiskárn _(po provedení instalace je položka označena poznámkou `"INSTALLED"` a lze ji následně použít při výběru cílové desky)_ 3. modify platform.txt to enable float printf support: -add "-Wl,-u,vfprintf -lprintf_flt -lm" to "compiler.c.elf.flags=" + +add "-Wl,-u,vfprintf -lprintf_flt -lm" to "compiler.c.elf.flags=" before existing flag "-Wl,--gc-sections" + example: `"compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections"` From ecb2a6e02cc4c501ea85fe67d0224e668518c599 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 10 Aug 2018 01:00:02 +0200 Subject: [PATCH 3/4] Update README.md. --- README.md | 8 +++----- README_cz.md | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index cdc8f06d9..e8e9e7c1d 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,9 @@ _note: select this item for any variant of board used in printers `'Prusa i3 MKx 'clicking' the item will display the installation button; select choice `"1.0.1"` from the list(last known version as of the date of issue of this document) _(after installation, the item is labeled as `"INSTALLED"` and can then be used for target board selection)_ - 3. modify platform.txt to enable float printf support: - -add "-Wl,-u,vfprintf -lprintf_flt -lm" to "compiler.c.elf.flags=" before existing flag "-Wl,--gc-sections" - -example: + 3. modify platform.txt to enable float printf support: +add "-Wl,-u,vfprintf -lprintf_flt -lm" to "compiler.c.elf.flags=" before existing flag "-Wl,--gc-sections" +example: `"compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections"` # 2. Source code compilation diff --git a/README_cz.md b/README_cz.md index 80216325e..282babdcf 100644 --- a/README_cz.md +++ b/README_cz.md @@ -25,11 +25,9 @@ _pozn.: tuto položku zvolte pro všechny varianty desek použitých v tiskárn 'kliknutím' na položku se zobrazí tlačítko pro instalaci; ve výběrovém seznamu zvolte verzi `"1.0.1"` (poslední známá verze k datu vydání tohoto dokumentu) _(po provedení instalace je položka označena poznámkou `"INSTALLED"` a lze ji následně použít při výběru cílové desky)_ - 3. modify platform.txt to enable float printf support: - -add "-Wl,-u,vfprintf -lprintf_flt -lm" to "compiler.c.elf.flags=" before existing flag "-Wl,--gc-sections" - -example: + 3. modify platform.txt to enable float printf support: +add "-Wl,-u,vfprintf -lprintf_flt -lm" to "compiler.c.elf.flags=" before existing flag "-Wl,--gc-sections" +example: `"compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections"` # 2. Překlad zdrojoveho kódu From 34a4443170a02bb047724afd564e6ad4d8ef6c51 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Wed, 15 Aug 2018 17:34:29 +0200 Subject: [PATCH 4/4] Fix typo. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e8e9e7c1d..4de43b930 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 1. install `"Arduino Software IDE"` for your preferred operating system `https://www.arduino.cc -> Software->Downloads` -it is recommended to use older version `"1.6.9"`, as it is used on out build server to produce offitial builds. +it is recommended to use older version `"1.6.9"`, as it is used on out build server to produce official builds. _note: in the case of persistent compilation problems, check the version of the currently used C/C++ compiler (GCC) - should be `4.8.1`; version can be verified by entering the command `avr-gcc --version` if you are not sure where the file is placed (depends on how `"Arduino Software IDE"` was installed), you can use the search feature within the file system_