I’m currently attempting to move a program from the online IDE to mbed cli to use with a custom target (Using QSPIF on a NUCLEO-F746ZG derived custom board). After following the installation instructions for Mbed Studio and mbed CLI it appears that ARM6 can’t locate the Mbed Studio license file.
mbed config --list [mbed] Working path "E:\Mbed Dev\A4461_DEV" (program) [mbed] Global config: ARMLMD_LICENSE_FILE=C:\Users\thomas\AppData\Local\Programs\Mbed Studio\tools-config\ac6-license.dat CACHE=on TOOLCHAIN=GCC_ARM ARMC6_PATH=C:\Users\thomas\AppData\Local\Mbed Studio\mbed-studio-tools\ac6\bin [mbed] Local config (E:\Mbed Dev\A4461_DEV): ARMLMD_LICENSE_FILE=C:\Users\thomas\AppData\Local\Programs\Mbed Studio\tools-config\ac6-license.dat ARMC6_PATH=C:\Users\thomas\AppData\Local\Mbed Studio\mbed-studio-tools\ac6\bin
mbed compiler -v -m A4461 -t ARMC6
fails, including the following in the output:
ToolException: armclang: error: Failed to check out a license. The license file could not be found. Check that ARMLMD_LICENSE_FILE is set correctly. armclang: note: ARMLMD_LICENSE_FILE is not set. You must set this to the path to your license. armclang: note: Information about this error is available at: http://ds.arm.com/support/lic87/m1 General licensing information is available at: http://ds.arm.com/support/licensing/ If you need further help, provide this complete error report to your supplier or email@example.com. - ARMLMD_LICENSE_FILE: unset - LM_LICENSE_FILE: unset - ARM_TOOL_VARIANT: unset - ARM_PRODUCT_PATH: unset - Product location: C:\Users\thomas\AppData\Local\Mbed Studio\mbed-studio-tools\ac6\sw\mappings - Toolchain location: C:\Users\thomas\AppData\Local\Mbed Studio\mbed-studio-tools\ac6\bin - Selected tool variant: product armclang: note: - Checkout feature: mbed_armcompiler - Feature version: 5.0201810 - Flex error code: -1 Product: ARM Compiler 6.11 for Mbed Studio Component: ARM Compiler 6.11 Tool: armclang [5d3b3c00]
I can’t find a record of someone else running into this specific error, which leads me to believe I’ve missed something obvious. If it’s obvious to someone what’s going on here I’d appreciate it.
As an aside, is it possible to add QSPIF functionality to a board (NUCLEO-F746ZG) using the online compiler purely through mbed_app.json? The DISCO-F746NG supports QSPIF and uses the same HAL package, so everything is implemented and you just need to add the pin defines to PinName.h. However from what I’ve seen, while it’s possible to modify entries which have configurable values (eg STDIO_UART_TX), it’s not possible to add new entries, and there’s no alternative way to do it.