From 3274794908d8ad4238079c9e2f251ea18a728a42 Mon Sep 17 00:00:00 2001 From: cimoalpacino <41801135+cimoalpacino@users.noreply.github.com> Date: Sun, 21 Apr 2019 21:40:09 +0200 Subject: [PATCH 1/3] Add filepath to platform.txt for windows users --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f8575e3a6..f2176a544 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,9 @@ _(after installation, the item is labeled as `"INSTALLED"` and can then be used c. 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"` +`"compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections"` +For Windows users, the file can be found at: +"C:\Users\(user)\AppData\Local\Arduino15\packages\arduino\hardware\avr\(version)" #### 2. Source code compilation From a8e62007ca29b67980b916f730156a4daeb766f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20B=C4=9Bl?= <35807926+mkbel@users.noreply.github.com> Date: Thu, 25 Apr 2019 07:25:11 +0200 Subject: [PATCH 2/3] Make platform.txt location more clear. Do not mention Windows, as it is already in Windows section. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2176a544..8c37ff7c2 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,9 @@ _(after installation, the item is labeled as `"INSTALLED"` and can then be used 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"` -For Windows users, the file can be found at: +The file can be found in Arduino instalation directory, or after Arduino has been updated at: "C:\Users\(user)\AppData\Local\Arduino15\packages\arduino\hardware\avr\(version)" +If you can locate the file in both places, file from user profile is probably used. #### 2. Source code compilation From f17af8c7bfb0ca0065a04a5d134dcf2e88321797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20B=C4=9Bl?= <35807926+mkbel@users.noreply.github.com> Date: Thu, 25 Apr 2019 07:48:24 +0200 Subject: [PATCH 3/3] Update README.md Remove spaces in the end of line. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c37ff7c2..ea649fe42 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ _(after installation, the item is labeled as `"INSTALLED"` and can then be used c. 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"` +`"compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections"` The file can be found in Arduino instalation directory, or after Arduino has been updated at: "C:\Users\(user)\AppData\Local\Arduino15\packages\arduino\hardware\avr\(version)" If you can locate the file in both places, file from user profile is probably used.