I used the v1.0.0 ToolchainInstaller that mumblepins made and have spent several hours trying to get everything working. I can’t get past the error below while trying to build a fresh copy of the firmware. Does anyone know why MODULE_FUNCTION is coming up as not defined?
Thanks.
make.exe[1]: Entering directory /c/Particle/firmware/hal' Building c file: src/photon/core_hal.c Invoking: ARM GCC C Compiler mkdir -p ../build/target/hal/platform-6/./src/photon/ arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=6 -DPLATFORM_NAME=photon -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD006 -DUSBD_PID_CDC=0xC006 -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DPARTICLE_NO_ARDUINO_COMPATIBILITY=0 -DPRODUCT_ID=6 -DPRODUCT_FIRMWARE_VERSION=65535 -DSYSTEM_VERSION_STRING=0.6.1 -DRELEASE_BUILD -Werror -I./inc -I./shared -I./src/photon -I./src/stm32f2xx -I./src/stm32 -I./src/photon/api -I../platform/shared/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../services/inc -I../dynalib/inc -I../bootloader/src/photon -I../bootloader/src/stm32f2xx -I../wiring/inc -I../communication/src -I./src/photon/include -I./src/photon/libraries/daemons/DNS_redirect -I./src/photon/libraries/daemons/HTTP_server -I./src/photon/libraries/protocols/DNS -I./src/photon/libraries/utilities/ring_buffer -I./src/photon/platforms/BCM9WCDUSI09 -I./src/photon/wiced -I./src/photon/wiced/RTOS/FreeRTOS -I./src/photon/wiced/RTOS/FreeRTOS/WICED -I./src/photon/wiced/RTOS/FreeRTOS/WWD -I./src/photon/wiced/RTOS/FreeRTOS/WWD/ARM_CM3 -I./src/photon/wiced/RTOS/FreeRTOS/ver7.5.2/Source/include -I./src/photon/wiced/RTOS/FreeRTOS/ver7.5.2/Source/portable/GCC/ARM_CM3 -I./src/photon/wiced/WWD -I./src/photon/wiced/internal -I./src/photon/wiced/network/LwIP -I./src/photon/wiced/network/LwIP/WICED -I./src/photon/wiced/network/LwIP/WWD -I./src/photon/wiced/network/LwIP/WWD/FreeRTOS -I./src/photon/wiced/network/LwIP/ver1.4.0.rc1/src/include -I./src/photon/wiced/network/LwIP/ver1.4.0.rc1/src/include/ipv4 -I./src/photon/wiced/platform/ARM_CM3 -I./src/photon/wiced/platform/ARM_CM3/CMSIS -I./src/photon/wiced/platform/GCC -I./src/photon/wiced/platform/MCU -I./src/photon/wiced/platform/MCU/STM32F2xx -I./src/photon/wiced/platform/MCU/STM32F2xx/WAF -I./src/photon/wiced/platform/MCU/STM32F2xx/peripherals -I./src/photon/wiced/platform/include -I./src/photon/wiced/security/BESL/P2P/ -I./src/photon/wiced/security/BESL/P2P/ -I./src/photon/wiced/security/BESL/TLS/ -I./src/photon/wiced/security/BESL/WPS/ -I./src/photon/wiced/security/BESL/WPS/ -I./src/photon/wiced/security/BESL/WPS/ -I./src/photon/wiced/security/BESL/crypto/ -I./src/photon/wiced/security/BESL/crypto/ -I./src/photon/wiced/security/BESL/host/WICED/ -I./src/photon/wiced/security/BESL/host/WICED/ -I./src/photon/wiced/security/BESL/host/WICED/ -I./src/photon/wiced/security/BESL/host/WICED/ -I./src/photon/wiced/security/BESL/host/WICED/ -I./src/photon/wiced/security/BESL/host/WICED/ -I./src/photon/wiced/security/BESL/host/WICED/ -I./src/photon/wiced/security/BESL/include/ -I./src/photon/wiced/security/BESL/include/ -I./src/photon/wiced/security/BESL/include/ -I./src/photon/wiced/security/BESL/include/ -I./src/photon/wiced/security/BESL/include/ -I./src/photon/wiced/security/BESL/include/ -I./src/photon/wiced/WWD/include/ -I./src/photon/wiced/WWD/include/ -I./src/photon/wiced/WWD/include/ -I./src/photon/wiced/WWD/include/ -I./src/photon/wiced/WWD/include/ -I./src/photon/wiced/WWD/include/ -I./src/photon/wiced/WWD/include/ -I./src/photon/wiced/WWD/include/ -I./src/photon/wiced/WWD/include/ -I./src/photon/wiced/WWD/include/ -I./src/photon/wiced/WWD/include/RTOS/ -I./src/photon/wiced/WWD/include/network/ -I./src/photon/wiced/WWD/include/network/ -I./src/photon/wiced/WWD/include/network/ -I./src/photon/wiced/WWD/include/platform/ -I./src/photon/wiced/WWD/include/platform/ -I./src/photon/wiced/WWD/include/platform/ -I./src/photon/wiced/WWD/include/platform/ -I./src/photon/wiced/WWD/include/platform/ -I./src/photon/wiced/WWD/internal/ -I./src/photon/wiced/WWD/internal/ -I./src/photon/wiced/WWD/internal/ -I./src/photon/wiced/WWD/internal/ -I./src/photon/wiced/WWD/internal/ -I./src/photon/wiced/WWD/internal/ -I./src/photon/wiced/WWD/internal/bus_protocols/ -I./src/photon/wiced/WWD/internal/bus_protocols/SDIO/ -I./src/photon/wiced/WWD/internal/chips/43362A2/ -I./src/stm32f2xx -I./src/stm32 -I. -MD -MP -MF ../build/target/hal/platform-6/./src/photon/core_hal.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSFLASH_APPS_HEADER_LOC=0x0000 -DUSE_STDPERIPH_DRIVER -D_STM32F215RGT6_ -D_STM3x_ -D_STM32x_ -DMAX_WATCHDOG_TIMEOUT_SECONDS=22 -DFIRMWARE_WITH_PMK_CALC_SUPPORT -DADD_LWIP_EAPOL_SUPPORT -DNXD_EXTENDED_BSD_SOCKET_SUPPORT -DOPENSSL -DSTDC_HEADERS -DUSE_SRP_SHA_512 -DADD_NETX_EAPOL_SUPPORT -DUSE_MICRORNG -DWWD_STARTUP_DELAY=10 -DBOOTLOADER_MAGIC_NUMBER=0x4d435242 -DNETWORK_NetX=1 -DNetX_VERSION=\"v5.5_sp1\" -DNX_INCLUDE_USER_DEFINE_FILE -D__fd_set_defined -DSYS_TIME_H_AVAILABLE -DRTOS_ThreadX=1 -DThreadX_VERSION=\"v5.6\" -DTX_INCLUDE_USER_DEFINE_FILE -DWWD_DIRECT_RESOURCES -D_WINSOCK_H -D_POSIX_C_SOURCE=200809 -DLOG_MODULE_CATEGORY="\"hal\"" -Wno-pointer-sign -std=gnu99 -c -o ../build/target/hal/platform-6/./src/photon/core_hal.o src/photon/core_hal.c In file included from ./src/stm32f2xx/core_hal_stm32f2xx.h:3:0, from src/photon/core_hal.c:27: ../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc/hw_config.h:87:5: error: "MODULE_FUNCTION" is not defined [-Werror=undef] #if MODULE_FUNCTION != MOD_FUNC_BOOTLOADER ^ cc1.exe: all warnings being treated as errors make.exe[1]: *** [../build/target/hal/platform-6/./src/photon/core_hal.o] Error 1 make.exe[1]: Leaving directory
/c/Particle/firmware/hal’
make.exe": *** [hal] Error 2