From aed9a79c6f63d0b4675e3e4c3f8dbb0b12086835 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 24 Feb 2021 08:22:54 -0800 Subject: [PATCH] [skip changelog] Update links to troubleshooting guides in sketch overmem error messages When the compiled size of a sketch exceeds the available flash or RAM on the board, the error message includes a link to a troubleshooting guide: Sketch uses 16110 bytes (112%) of program storage space. Maximum is 14336 bytes. Global variables use 685 bytes (66%) of dynamic memory, leaving 339 bytes for local variables. Maximum is 1024 bytes. Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it. http://www.arduino.cc/en/Guide/Troubleshooting was recently replaced with the Arduino Help Center. Even though that URL redirects to the Help Center, it only goes to the home page, leaving the user to hunt for the relevant article. --- legacy/builder/constants/constants.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/builder/constants/constants.go b/legacy/builder/constants/constants.go index bb1c60bb483..dd9e9c39edb 100644 --- a/legacy/builder/constants/constants.go +++ b/legacy/builder/constants/constants.go @@ -110,8 +110,8 @@ const MSG_SETTING_BUILD_PATH = "Setting build path to {0}" const MSG_SIZER_TEXT_FULL = "Sketch uses {0} bytes ({2}%%) of program storage space. Maximum is {1} bytes." const MSG_SIZER_DATA_FULL = "Global variables use {0} bytes ({2}%%) of dynamic memory, leaving {3} bytes for local variables. Maximum is {1} bytes." const MSG_SIZER_DATA = "Global variables use {0} bytes of dynamic memory." -const MSG_SIZER_TEXT_TOO_BIG = "Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it." -const MSG_SIZER_DATA_TOO_BIG = "Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint." +const MSG_SIZER_TEXT_TOO_BIG = "Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it." +const MSG_SIZER_DATA_TOO_BIG = "Not enough memory; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing your footprint." const MSG_SIZER_LOW_MEMORY = "Low memory available, stability problems may occur." const MSG_SIZER_ERROR_NO_RULE = "Couldn't determine program size" const MSG_SKETCH_CANT_BE_IN_BUILDPATH = "Sketch cannot be located in build path. Please specify a different build path"