Post Go back to editing

Need help on Update File Path for maxim.mk in no-OS

Thread Summary

The user encountered an error while building a project for the AD-PQMON-SL using the Maxim SDK October 2024 release. The error was due to a missing `arm-none-eabi-gcc` compiler. The final solution was to revert changes made to `maxim.mk` as these are not necessary for the October 2024 release. The user can verify the SDK version by checking for updates via the Maintenance Tool or by cloning the MSDK repository and switching to the `v2024_10` tag.
AI Generated Content
Category: Hardware
Product Number: AD-PQMON-SL

Hardware: AD-PQMON-SL

 

Software: Maxim SDK October Release 2024

 

Error Message in Git Bash:

YongYH@YongYH-Laptop MINGW64 ~
$ cd /c/Users/YongYH/no-OS/projects/eval-pqmon && ./build_hex.sh
[INFO] Cleaning previous build...
Using USB as interface for IIO communication
find: ‘C:/MaximSDK/Libraries/../../../Tools/gcc/arm-none-eabi’: No such file or directory
which: no arm-none-eabi-gcc in (/c/Users/YongYH/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/usr/bin:/mingw64/bin:/usr/bin:/c/Users/YongYH/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/Users/ChooYC/AppData/Local/Programs/Python/Python311/Scripts:/c/Program Files/PuTTY:/cmd:/c/Program Files/MongoDB/Server/6.0/bin:/c/Program Files/mongosh-1.8.0-win32-x64/bin:/c/Python27:/c/MinGW/bin:/c/ProgramData/chocolatey/bin:/c/Python/Python311/Scripts:/c/Program Files/PowerShell/7-preview/preview:/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/c/Program Files/PowerShell/7:/c/Program Files/PVsyst8.0.17:/c/Users/YongYH/AppData/Local/Programs/Python/Python310/Scripts:/c/Users/YongYH/AppData/Local/Programs/Python/Python310:/c/Users/YongYH/AppData/Local/Microsoft/WindowsApps:/c/Users/ChooYC/AppData/Local/Programs/Python/Python311:/c/Users/ChooYC/AppData/Local/Programs/Python/Python311/Scripts:/usr/bin/vendor_perl:/usr/bin/core_perl)
which: no arm-none-eabi-gcc in (/c/Users/YongYH/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/usr/bin:/mingw64/bin:/usr/bin:/c/Users/YongYH/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/Users/ChooYC/AppData/Local/Programs/Python/Python311/Scripts:/c/Program Files/PuTTY:/cmd:/c/Program Files/MongoDB/Server/6.0/bin:/c/Program Files/mongosh-1.8.0-win32-x64/bin:/c/Python27:/c/MinGW/bin:/c/ProgramData/chocolatey/bin:/c/Python/Python311/Scripts:/c/Program Files/PowerShell/7-preview/preview:/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/c/Program Files/PowerShell/7:/c/Program Files/PVsyst8.0.17:/c/Users/YongYH/AppData/Local/Programs/Python/Python310/Scripts:/c/Users/YongYH/AppData/Local/Programs/Python/Python310:/c/Users/YongYH/AppData/Local/Microsoft/WindowsApps:/c/Users/ChooYC/AppData/Local/Programs/Python/Python311:/c/Users/ChooYC/AppData/Local/Programs/Python/Python311/Scripts:/usr/bin/vendor_perl:/usr/bin/core_perl)
which: no arm-none-eabi-gcc in (/c/Users/YongYH/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/usr/bin:/mingw64/bin:/usr/bin:/c/Users/YongYH/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/Users/ChooYC/AppData/Local/Programs/Python/Python311/Scripts:/c/Program Files/PuTTY:/cmd:/c/Program Files/MongoDB/Server/6.0/bin:/c/Program Files/mongosh-1.8.0-win32-x64/bin:/c/Python27:/c/MinGW/bin:/c/ProgramData/chocolatey/bin:/c/Python/Python311/Scripts:/c/Program Files/PowerShell/7-preview/preview:/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/c/Program Files/PowerShell/7:/c/Program Files/PVsyst8.0.17:/c/Users/YongYH/AppData/Local/Programs/Python/Python310/Scripts:/c/Users/YongYH/AppData/Local/Programs/Python/Python310:/c/Users/YongYH/AppData/Local/Microsoft/WindowsApps:/c/Users/ChooYC/AppData/Local/Programs/Python/Python311:/c/Users/ChooYC/AppData/Local/Programs/Python/Python311/Scripts:/usr/bin/vendor_perl:/usr/bin/core_perl)

Maxim.mk:

Updated based on (+) Fail to use the function max31343_reg_read_time_stamp() - Q&A - Energy - EngineerZone

diff --git a/tools/scripts/maxim.mk b/tools/scripts/maxim.mk
index 434ac812..5199a93a 100644
--- a/tools/scripts/maxim.mk
+++ b/tools/scripts/maxim.mk
@@ -15,7 +15,7 @@ OC=arm-none-eabi-objcopy
 SIZE=arm-none-eabi-size
 
 PYTHON = python
-ARM_COMPILER_PATH = $(realpath $(dir $(shell find $(MAXIM_LIBRARIES)/../Tools/GNUTools -wholename "*bin/$(CC)" -o -name "$(CC).exe")))
+ARM_COMPILER_PATH = $(realpath $(dir $(shell find $(MAXIM_LIBRARIES)/../../../Tools/gcc/arm-none-eabi -wholename "*bin/$(CC)" -o -name "$(CC).exe")))
 
 # Use the user provided compiler if the SDK doesn't contain it.
 ifeq ($(ARM_COMPILER_PATH),)
@@ -51,6 +51,11 @@ include $(MAXIM_LIBRARIES)/CMSIS/Device/Maxim/$(TARGET_UCASE)/Source/GCC/$(TARGE
 endif
 include $(MAXIM_LIBRARIES)/PeriphDrivers/$(TARGET_LCASE)_files.mk
 
+PERIPH_DRIVER_C_FILES += $(SOURCE_DIR)/SYS/mxc_assert.c
+PERIPH_DRIVER_C_FILES += $(SOURCE_DIR)/SYS/mxc_delay.c
+PERIPH_DRIVER_C_FILES += $(SOURCE_DIR)/SYS/nvic_table.c
+PERIPH_DRIVER_C_FILES += $(SOURCE_DIR)/SYS/mxc_lock.c
+
 HEX=$(basename $(BINARY)).hex
 TARGET_REV=0x4131
 

Troubleshooting Step that I have taken:

  • File path in Windows: C:\MaximSDK\Tools\GNUTools\10.3\lib\gcc\arm-none-eabi
  • Update to ARM_COMPILER_PATH = $(MAXIM_LIBRARIES)/Tools/GNUTools/10.3/lib/gcc/arm-none-eabi
  • But there's new error message

YongYH@YongYH-Laptop MINGW64 ~
$ cd /c/Users/YongYH/no-OS/projects/eval-pqmon && ./build_hex.sh
[INFO] Cleaning previous build...
Using USB as interface for IIO communication
[14:09:53] [Delete] C:/Users/YongYH/no-OS/projects/eval-pqmon/build
[INFO] Building new HEX...
Using USB as interface for IIO communication
[14:09:55] Building for maxim
Using USB as interface for IIO communication
[14:09:58] Building for target max32650
[14:09:58] Creating IDE project
Using USB as interface for IIO communication
Using USB as interface for IIO communication
[14:11:37] Generating build flags
[14:11:45] Creating symlinks to source files
Using USB as interface for IIO communication
[14:11:49] [CC] heap.c
process_begin: CreateProcess(NULL, arm-none-eabi-gcc -c @C:/Users/YongYH/no-OS/projects/eval-pqmon/build/eval-pqmon-cflags.txt C:/Users/YongYH/no-OS/projects/eval-pqmon/build/app/root/MaximSDK/Libraries/CMSIS/Device/Maxim/MAX32650/Source/heap.c -o C:/Users/YongYH/no-OS/projects/eval-pqmon/build/objs/eval-pqmon/build/app/root/MaximSDK/Libraries/CMSIS/Device/Maxim/MAX32650/Source/heap.o, ...) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [../../tools/scripts/generic.mk:289: C:/Users/YongYH/no-OS/projects/eval-pqmon/build/objs/eval-pqmon/build/app/root/MaximSDK/Libraries/CMSIS/Device/Maxim/MAX32650/Source/heap.o] Error 2
make: *** [../../tools/scripts/generic.mk:268: all] Error 2
[ERROR] HEX file not found: /c/Users/YongYH/no-OS/projects/eval-pqmon/build/eval-pqmon.hex

Parents Reply Children
No Data

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.