SdFat not working in Visual Micro ide

Jimbo13
Mon Oct 09, 2017 12:28 pm
I cannot build the SD card example:
https://github.com/greiman/SdFat/tree/m … les/SdInfo
for Stm32F103
https://github.com/rogerclarkmelbourne/Arduino_STM32
in Visual Studio with Visual Micro.
It builds OK in the Arduino 1.8.4 environment but produces the attached verbose in VM:

Board Properties
name=Generic STM32F103C series
vid.0=0x1EAF
pid.0=0x0004
build.variant=generic_stm32f103c
build.vect=VECT_TAB_ADDR=0x8000000
build.core=maple
build.board=GENERIC_STM32F103C
upload.use_1200bps_touch=false
upload.file_type=bin
upload.auto_reset=true
upload.tool=stlink_upload
upload.protocol=STLink
menu.device_variant.STM32F103C8=STM32F103C8 (20k RAM. 64k Flash)
menu.device_variant.STM32F103C8.build.cpu_flags=-DMCU_STM32F103C8
menu.device_variant.STM32F103C8.build.ldscript=ld/jtag_c8.ld
menu.device_variant.STM32F103C8.upload.maximum_size=65536
menu.device_variant.STM32F103C8.upload.maximum_data_size=20480
menu.device_variant.STM32F103CB=STM32F103CB (20k RAM. 128k Flash)
menu.device_variant.STM32F103CB.build.cpu_flags=-DMCU_STM32F103CB
menu.device_variant.STM32F103CB.build.ldscript=ld/jtag.ld
menu.device_variant.STM32F103CB.upload.maximum_size=131072
menu.device_variant.STM32F103CB.upload.maximum_data_size=20480
menu.upload_method.DFUUploadMethod=STM32duino bootloader
menu.upload_method.DFUUploadMethod.upload.protocol=maple_dfu
menu.upload_method.DFUUploadMethod.upload.tool=maple_upload
menu.upload_method.DFUUploadMethod.build.upload_flags=-DSERIAL_USB -DGENERIC_BOOTLOADER
menu.upload_method.DFUUploadMethod.build.vect=VECT_TAB_ADDR=0x8002000
menu.upload_method.DFUUploadMethod.build.ldscript=ld/bootloader_20.ld
menu.upload_method.DFUUploadMethod.upload.usbID=1EAF:0003
menu.upload_method.DFUUploadMethod.upload.altID=2
menu.upload_method.serialMethod=Serial
menu.upload_method.serialMethod.upload.protocol=maple_serial
menu.upload_method.serialMethod.upload.tool=serial_upload
menu.upload_method.serialMethod.build.upload_flags=-DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG
menu.upload_method.STLinkMethod=STLink
menu.upload_method.STLinkMethod.upload.protocol=STLink
menu.upload_method.STLinkMethod.upload.tool=stlink_upload
menu.upload_method.STLinkMethod.build.upload_flags=-DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DSERIAL_USB -DGENERIC_BOOTLOADER
menu.upload_method.BMPMethod=BMP (Black Magic Probe)
menu.upload_method.BMPMethod.upload.protocol=gdb_bmp
menu.upload_method.BMPMethod.upload.tool=bmp_upload
menu.upload_method.BMPMethod.build.upload_flags=-DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG
menu.upload_method.jlinkMethod=JLink
menu.upload_method.jlinkMethod.upload.protocol=jlink
menu.upload_method.jlinkMethod.upload.tool=jlink_upload
menu.upload_method.jlinkMethod.build.upload_flags=-DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DSERIAL_USB -DGENERIC_BOOTLOADER
menu.cpu_speed.speed_72mhz=72Mhz (Normal)
menu.cpu_speed.speed_72mhz.build.f_cpu=72000000L
menu.cpu_speed.speed_48mhz=48Mhz (Slow - with USB)
menu.cpu_speed.speed_48mhz.build.f_cpu=48000000L
menu.cpu_speed.speed_128mhz=Overclocked 128Mhz NO USB SERIAL. MANUAL RESET NEEDED TO UPLOAD
menu.cpu_speed.speed_128mhz.build.f_cpu=128000000L
menu.opt.osstd=Smallest (default)
menu.opt.osstd.build.flags.optimize=-Os
menu.opt.osstd.build.flags.ldspecs=
menu.opt.oslto=Smallest Code with LTO
menu.opt.oslto.build.flags.optimize=-Os -flto
menu.opt.oslto.build.flags.ldspecs=-flto
menu.opt.o1std=Fast (-O1)
menu.opt.o1std.build.flags.optimize=-O1
menu.opt.o1std.build.flags.ldspecs=
menu.opt.o1lto=Fast (-O1) with LTO
menu.opt.o1lto.build.flags.optimize=-O1 -flto
menu.opt.o1lto.build.flags.ldspecs=-flto
menu.opt.o2std=Faster (-O2)
menu.opt.o2std.build.flags.optimize=-O2
menu.opt.o2std.build.flags.ldspecs=
menu.opt.o2lto=Faster (-O2) with LTO
menu.opt.o2lto.build.flags.optimize=-O2 -flto
menu.opt.o2lto.build.flags.ldspecs=-flto
menu.opt.o3std=Fastest (-O3)
menu.opt.o3std.build.flags.optimize=-O3
menu.opt.o3std.build.flags.ldspecs=
menu.opt.o3lto=Fastest (-O3) with LTO
menu.opt.o3lto.build.flags.optimize=-O3 -flto
menu.opt.ogstd=Debug (-g)
menu.opt.o3lto.build.flags.ldspecs=-flto
menu.opt.ogstd.build.flags.optimize=-Og
menu.opt.ogstd.build.flags.ldspecs=
runtime.ide.path=C:\Program Files (x86)\Arduino
runtime.os=windows
build.system.path=C:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system
runtime.ide.version=10804
target_package=Arduino_STM32-master
target_platform=STM32F1
runtime.hardware.path=C:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master
originalid=genericSTM32F103C
debug.tool=gdb
tools.gdb.pre_init.tool=openocd
tools.gdb.cmd=arm-none-eabi-gdb.exe
tools.gdb.path={runtime.tools.arm-none-eabi-gcc.path}/bin
tools.gdb.pattern="{path}/{cmd}" -interpreter=mi -d "{build.project_path}"
tools.gdb.openocd.cmd=bin/openocd.exe
tools.gdb.openocd.path={runtime.vm.ide.platforms.path}/default/tools/openocd-0.9.0
tools.gdb.openocd.params.verbose=-d2
tools.gdb.openocd.params.quiet=-d0
tools.gdb.openocd.pattern="{path}/{cmd}" -s "{path}/scripts/" -f "{path}/scripts/{build.openocdscript}"
version=0.1.2
compiler.warning_flags=-w -DDEBUG_LEVEL=DEBUG_NONE
compiler.warning_flags.none=-w -DDEBUG_LEVEL=DEBUG_NONE
compiler.warning_flags.default=-DDEBUG_LEVEL=DEBUG_NONE
compiler.warning_flags.more=-Wall -DDEBUG_LEVEL=DEBUG_FAULT
compiler.warning_flags.all=-Wall -Wextra -DDEBUG_LEVEL=DEBUG_ALL
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
compiler.c.cmd=arm-none-eabi-gcc
compiler.c.flags=-c -g {build.flags.optimize} {compiler.warning_flags} -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
compiler.c.elf.cmd=arm-none-eabi-g++
compiler.c.elf.flags={build.flags.optimize} -Wl,--gc-sections {build.flags.ldspecs}
compiler.S.cmd=arm-none-eabi-gcc
compiler.S.flags=-c -g -x assembler-with-cpp -MMD
compiler.cpp.cmd=arm-none-eabi-g++
compiler.cpp.flags=-c -g {build.flags.optimize} {compiler.warning_flags} -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
compiler.ar.cmd=arm-none-eabi-ar
compiler.ar.flags=rcs
compiler.objcopy.cmd=arm-none-eabi-objcopy
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.flags=-O binary
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags={build.flags.ldspecs}
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
build.f_cpu=72000000L
build.mcu=cortex-m3
build.common_flags=-mthumb -march=armv7-m -D__STM32F1__
build.variant_system_lib=libmaple.a
build.error_led_port=GPIOB
build.error_led_pin=1
build.cpu_flags=-DMCU_STM32F103C8
build.hs_flag=
build.upload_flags=-DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DSERIAL_USB -DGENERIC_BOOTLOADER
build.extra_flags={build.upload_flags} {build.cpu_flags} {build.hs_flag} {build.common_flags}
compiler.c.extra_flags=
compiler.c.elf.extra_flags="-L{build.variant.path}/ld"
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
compiler.libs.c.flags="-I{build.system.path}/libmaple" "-I{build.system.path}/libmaple/include" "-I{build.system.path}/libmaple/stm32f1/include" "-I{build.system.path}/libmaple/usb/stm32f1" "-I{build.system.path}/libmaple/usb/usb_lib"
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {compiler.libs.c.flags} {includes} "{source_file}" -o "{object_file}"
recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {build.cpu_flags} {build.hs_flag} {build.common_flags} {compiler.libs.c.flags} {includes} "{source_file}" -o "{object_file}"
recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {build.cpu_flags} {build.hs_flag} {build.common_flags} {compiler.libs.c.flags} {includes} "{source_file}" -o "{object_file}"
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} "{build.path}/{archive_file}" -Wl,--end-group
recipe.objcopy.eep.pattern=
recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
recipe.size.regex=^(?:\.text|\.data|\.rodata|\.text.align|\.ARM.exidx)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).*
recipe.output.tmp_file={build.project_name}.bin
recipe.output.save_file={build.project_name}.{build.variant}.bin
tools.maple_upload.cmd=maple_upload.bat
tools.maple_upload.cmd.windows=maple_upload.bat
tools.maple_upload.path={runtime.hardware.path}/tools/win
tools.maple_upload.path.macosx={runtime.hardware.path}/tools/macosx
tools.maple_upload.path.linux={runtime.hardware.path}/tools/linux
tools.maple_upload.path.linux64={runtime.hardware.path}/tools/linux64
tools.maple_upload.upload.params.verbose=-d
tools.maple_upload.upload.params.quiet=
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
tools.serial_upload.cmd=serial_upload.bat
tools.serial_upload.cmd.windows=serial_upload.bat
tools.serial_upload.cmd.macosx=serial_upload
tools.serial_upload.path={runtime.hardware.path}/tools/win
tools.serial_upload.path.macosx={runtime.hardware.path}/tools/macosx
tools.serial_upload.path.linux={runtime.hardware.path}/tools/linux
tools.serial_upload.path.linux64={runtime.hardware.path}/tools/linux64
tools.serial_upload.upload.params.verbose=-d
tools.serial_upload.upload.params.quiet=n
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
tools.stlink_upload.cmd=stlink_upload.bat
tools.stlink_upload.cmd.windows=stlink_upload.bat
tools.stlink_upload.path.windows={runtime.hardware.path}/tools/win
tools.stlink_upload.path.macosx={runtime.hardware.path}/tools/macosx
tools.stlink_upload.path.linux={runtime.hardware.path}/tools/linux
tools.stlink_upload.path.linux64={runtime.hardware.path}/tools/linux64
tools.stlink_upload.upload.params.verbose=-d
tools.stlink_upload.upload.params.quiet=
tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
tools.bmp_upload.cmd=arm-none-eabi-gdb
tools.bmp_upload.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
tools.bmp_upload.upload.speed=230400
tools.bmp_upload.upload.params.verbose=
tools.bmp_upload.upload.params.quiet=-q --batch-silent
tools.bmp_upload.upload.pattern="{path}{cmd}" -cd "{build.path}" -b {upload.speed} {upload.verbose} -ex "set debug remote 0" -ex "set target-async off" -ex "set remotetimeout 60" -ex "set mem inaccessible-by-default off" -ex "set confirm off" -ex "set height 0" -ex "target extended-remote {serial.port}" -ex "monitor swdp_scan" -ex "attach 1" -ex "x/wx 0x8000004" -ex "monitor erase_mass" -ex "echo 0x8000004 expect 0xffffffff after erase\n" -ex "x/wx 0x8000004" -ex "file {build.project_name}.elf" -ex "load" -ex "x/wx 0x08000004" -ex "tbreak main" -ex "run" -ex "echo \n\n\nUpload finished!" -ex "quit"
tools.jlink_upload.cmd=jlink_upload.bat
tools.jlink_upload.cmd.windows=jlink_upload.bat
tools.jlink_upload.cmd.macosx=jlink_upload
tools.jlink_upload.path={runtime.hardware.path}/tools/win
tools.jlink_upload.path.macosx={runtime.hardware.path}/tools/macosx
tools.jlink_upload.path.linux={runtime.hardware.path}/tools/linux
tools.jlink_upload.path.linux64={runtime.hardware.path}/tools/linux64
tools.jlink_upload.upload.params.verbose=-d
tools.jlink_upload.upload.params.quiet=n
tools.jlink_upload.upload.pattern="{path}/{cmd}" "{build.path}/{build.project_name}.bin"
tools.stlink_upload.path={runtime.hardware.path}/tools/win
vm.platform.root.path=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\stj04ghu.5oy\Micro Platforms\arduino16x
runtime.tools.arduinoOTA.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\arduinoOTA\1.2.0
runtime.tools.arduinoOTA-1.1.1.path=C:\Program Files (x86)\Arduino\hardware\tools\avr
runtime.tools.arduinoOTA-1.2.0.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\arduinoOTA\1.2.0
runtime.tools.arm-none-eabi-gcc.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1
runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1
runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr
runtime.tools.avrdude-6.3.0-arduino9.path=C:\Program Files (x86)\Arduino\hardware\tools\avr
runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr
runtime.tools.avr-gcc-4.9.2-atmel3.5.4-arduino2.path=C:\Program Files (x86)\Arduino\hardware\tools\avr
runtime.tools.bossac.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\bossac\1.7.0
runtime.tools.bossac-1.7.0.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\bossac\1.7.0
runtime.tools.CMSIS.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\CMSIS\4.5.0
runtime.tools.CMSIS-4.5.0.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\CMSIS\4.5.0
runtime.tools.CMSIS-Atmel.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0
runtime.tools.CMSIS-Atmel-1.1.0.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0
runtime.tools.openocd.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\openocd\0.9.0-arduino6-static
runtime.tools.openocd-0.9.0-arduino6-static.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\openocd\0.9.0-arduino6-static
runtime.tools.tools-avr.path=C:\Program Files (x86)\Arduino\hardware\tools\avr
runtime.vm.boardinfo.id=Arduino_STM32-master_genericSTM32F103C
runtime.vm.boardinfo.name=Arduino_STM32-master_genericSTM32F103C
runtime.vm.boardinfo.desc=Generic STM32F103C series
runtime.vm.boardinfo.src_location=C:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1
ide.hint=Use installed IDE. Provides built-in hardware, reference/help and libraries.
ide.location.key=Arduino16x
ide.location.ide.winreg=Arduino 1.6.x Application
ide.location.sketchbook.winreg=Arduino 1.6.x Sketchbook
ide.location.sketchbook.preferences=sketchbook.path
ide.default.revision_name=1.8.0
ide.default.version=10800
ide.default.package=arduino
ide.default.platform=avr
ide.multiplatform=true
ide.includes=Arduino.h
ide.exe_name=arduino
ide.platformswithoutpackage=false
ide.includes.fallback=wprogram.h
ide.extension=ino
ide.extension.fallback=pde
ide.versionGTEQ=160
ide.exe=arduino.exe
ide.builder.exe=arduinobuilder.exe
ide.builder.name=Arduino Builder
ide.hosts=atmel
ide.url=http://arduino.cc/en/Main/Software
ide.help.reference.path=reference
ide.help.reference.path2=reference\www.arduino.cc\en\Reference
ide.help.reference.serial=reference\www.arduino.cc\en\Serial
ide.location.preferences.portable={runtime.ide.path}\portable
ide.location.preferences.arduinoData={runtime.sketchbook.path}\ArduinoData
ide.location.preferences=%VM_APPDATA_LOCAL%\arduino15\preferences.txt
ide.location.preferences_fallback=%VM_APPDATA_ROAMING%\arduino15\preferences.txt
ide.location.contributions=%VM_APPDATA_LOCAL%\arduino15
ide.location.contributions_fallback=%VM_APPDATA_ROAMING%\arduino15
ide.contributions.boards.allow=true
ide.contributions.boards.ignore_unless_rewrite_found=true
ide.contributions.libraries.allow=true
ide.contributions.boards.support.urls.wiki=https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls
ide.create_platforms_from_boardsTXT.teensy=build.core
vm.debug=true
software=ARDUINO
ssh.user.name=root
ssh.user.default.password=arduino
ssh.host.wwwfiles.path=/www/sd
build.working_directory={runtime.ide.path}\java\bin
ide.appid=arduino16x
location.sketchbook=C:\Users\james\Documents\Arduino
build.core.path=C:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\cores\maple
vm.core.include=wprogram.h
vm.boardsource.path=C:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1
runtime.platform.path=C:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1
vm.platformname.name=STM32F1
build.arch=STM32F1
build.ldscript=ld/jtag_c8.ld
upload.maximum_size=65536
upload.maximum_data_size=20480
build.flags.optimize=-Os -flto
build.flags.ldspecs=-flto
builder.noino=false
intellisense.include.paths={runtime.hardware.path}
build.architecture=4.8.3-2014q1
vmresolved.compiler.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\bin\
vmresolved.tools.path=C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1
vm.runtime.compiler.showwarnings=true
vm.runtime.upload.verbose=true
vm.runtime.upload.verify=false
serial.port.file=COM5
serial.port=COM5
serial.port.num=5
build.path=C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release
build.project_name=JimsSdInfo.ino
build.project_path=C:\Users\james\Documents\Arduino\JimsSTM32Programmes\JimsSdInfo
ProjectDir=C:\Users\james\Documents\Arduino\JimsSTM32Programmes\JimsSdInfo\
vm.runtime.compiler.auto_discover_includes=false
vm.runtime.compiler.auto_discover_includes_cache=true
build.vm.build.vmdebug=0
build.vm.build.isgdb=0
build.vm.build.optimised=1
vm.last.buildpath=C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release

Compiling 'JimsSdInfo' for 'Generic STM32F103C series'
Build Folder: file:///C:/Users/james/AppData/Local/Temp/VMBuilds/JimsSdInfo/Arduino_STM32-master_genericSTM32F103C/Release
Summary: Header=1 Prototypes=7 Imports=2
Additional Defines:
Architecture Tools: file:///C:/Users/james/AppData/Local/arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/
Api: 1.1706.25-9.061
Sketch Book: file:///C:/Users/james/Documents/Arduino
Sketch Include Paths
Core Include Paths
Include Path file:///C:/Users/james/Documents/Arduino/hardware/Arduino_STM32-master/STM32F1/cores/maple
Include Path file:///C:/Users/james/Documents/Arduino/hardware/Arduino_STM32-master/STM32F1/variants/generic_stm32f103c
Library Include Paths (2)
Include Path 'C:\Users\james\Documents\Arduino\libraries\SdFat\src'
Include Path 'C:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\SPI\src'

Building variant ...

Using previously compiled variant

Building core ...

Building libraries ...

Using library SdFat version 1.0.3 in folder file:///C:/Users/james/Documents/Arduino/libraries/SdFat
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\MinimumSerial.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\FatLib\FatFile.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\FatLib\FatFileLFN.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\FatLib\FatFilePrint.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\FatLib\FatFileSFN.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\FatLib\FatVolume.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\FatLib\FmtNumber.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\FatLib\fstream.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\FatLib\istream.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\FatLib\ostream.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\FatLib\StdioStream.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\SdCard\SdioCardEX.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\SdCard\SdioTeensy.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\SdCard\SdSpiCard.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\SdCard\SdSpiCardEX.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\SpiDriver\SdSpiESP8266.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\SpiDriver\SdSpiSAM3X.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\SpiDriver\SdSpiSTM32.cpp.o
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SdFat\SpiDriver\SdSpiTeensy3.cpp.o

Using library SPI version 1.0 in folder file:///C:/Users/james/Documents/Arduino/hardware/Arduino_STM32-master/STM32F1/libraries/SPI
Using previously compiled file: C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\SPI\SPI.cpp.o

Building project code ...
"C:\Users\james\AppData\Local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -flto -Wall -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10804 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DSERIAL_USB -DGENERIC_BOOTLOADER -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ "-IC:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system/libmaple" "-IC:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system/libmaple/include" "-IC:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system/libmaple/stm32f1/include" "-IC:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system/libmaple/usb/stm32f1" "-IC:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system/libmaple/usb/usb_lib" -I"C:\Users\james\Documents\Arduino\libraries\SdFat\src" -I"C:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\SPI\src" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\stj04ghu.5oy\Micro Platforms\default\debuggers" -I"C:\Users\james\Documents\Arduino\libraries" -I"C:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\cores\maple" -I"C:\Users\james\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\variants\generic_stm32f103c" "C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\JimsSdInfo.cpp" -o "C:\Users\james\AppData\Local\Temp\VMBuilds\JimsSdInfo\Arduino_STM32-master_genericSTM32F103C\Release\JimsSdInfo.cpp.o"

SdFat.h:31: In file included from
JimsSdInfo.ino: from
SysCall.h: In static member function static void SysCall::yield()

SysCall.h: 79:3: error: '::yield' has not been declared
yield()

FatLib.h:28: In file included from
SdFat.h:33: from
JimsSdInfo.ino: from
ArduinoStream.h: In member function void ArduinoInStream::readline()

ArduinoStream.h: 58:13: error: 'yield' was not declared in this scope
yield()

JimsSdInfo.ino: In file included from
SdFat.h: At global scope

Error compiling project sources
SdFat.h: 326:30: error: 'SS' was not declared in this scope
Build failed for project 'JimsSdInfo'
bool begin(uint8_t csPin = SS, SPISettings spiSettings = SPI_FULL_SPEED) {

SdFat.h: 336:34: error: 'SS' was not declared in this scope
bool cardBegin(uint8_t csPin = SS, SPISettings settings = SPI_FULL_SPEED) {

SdFat.h: 503:30: error: 'SS' was not declared in this scope
bool begin(uint8_t csPin = SS, SPISettings settings = SD_SCK_MHZ(50)) {

JimsSdInfo.ino: 20:32: error: 'SS' was not declared in this scope
const uint8_t SD_CHIP_SELECT = SS;\\ 4;\\ SS

JimsSdInfo.ino: In file included from
SPI.h: 163:16: warning: 'ff' defined but not used [-Wunused-variable] static uint8_t ff = 0XFF
SPI.h: 164:15: warning: '_spi1_this' defined but not used [-Wunused-variable] static void (*_spi1_this)
SPI.h: 165:15: warning: '_spi2_this' defined but not used [-Wunused-variable] static void (*_spi2_this)


stevestrong
Mon Oct 09, 2017 1:34 pm
It seems that you VM is missing a lot of include paths.
Compare the Arduino IDE verbose output with your path parameters and then you will find out what is missing…
A hint: look for core folders.

Jimbo13
Fri Oct 13, 2017 9:25 am
OK stevestrong, thanks for the advice, I have not had time to fully investigate your suggestion but I will post back here when I solve the problem.

castortiu
Wed Nov 08, 2017 11:06 am
Jim, did you find a solution, I’m having the same problem as you on VMicro

SysCall.h: 74:3: error: ‘::yield’ has not been declared
yield()


Jimbo13
Wed Nov 08, 2017 11:35 am
Hi castoritu, no I have not solved it yet, I posted on the VMicro page but have not had a satisfactory reply.
Perhaps you could join the thread, that may speed things up.

http://www.visualmicro.com/forums/YaBB. … 1507362566


stevestrong
Wed Nov 08, 2017 1:13 pm
You have to include {build.core.path} to the upload.pattern.

Jimbo13
Wed Nov 08, 2017 1:21 pm
OK stevestrong, bear with me but how do I ” include {build.core.path} to the upload.pattern” in Visual Micro.

Jim


stevestrong
Wed Nov 08, 2017 1:30 pm
I don’t know :?

Jimbo13
Tue Nov 14, 2017 11:46 am
I still have not solved this issue, can anyone give some more pointers please?

Jim


stevestrong
Tue Nov 14, 2017 2:20 pm
I think you should post on VisualMicro forum, because it is most probably related to this plugin.

castortiu
Tue Nov 14, 2017 3:33 pm
For some reason it doesn’t see the function implementation.

Since STM is not multitasking I fixed myself implementing the method on the .ino file

Void yield ()
{
}


visual_micro
Sun Jan 28, 2018 3:11 am
Hi All,

Thanks for the patience.

This issue was because Visual Micro also supports older Arduino IDE versions that use a “wprogram.h” instead of “arduino.h” during the build process.

In the case of the STM32 boards the maple core contained both a wprogram.h and an arduino.h. Visual Micro used the wprogram.h but in the next release uses the arduino.h which resolves this issue.

The wprogram.h in the maple core differs slightly from the arduno.h and does not contain a definition for the delay() function.

The next release of Visual Micro is due over the next few days with the fix.

Thanks for your patience.

Tim @ Visual Micro
http://www.visualmicro.com/forums/


BennehBoy
Sun Jan 28, 2018 12:09 pm
Slight aside: I’ve been experimenting with MS VSCode…

Installing it, the C/C++ extension, and MS’s Arduino extension, I’ve been able to compile for any of the cores that my Arduino installation has installed, directly from VSCode – it’s also git integrated, and the context sensitive editor is really good.

Seriously thinking of switching over to it from the default IDE editor.


Jimbo13
Sun Jan 28, 2018 5:05 pm
Hi BennehBoy, I looked at VScode but I am not sure why I would use it as https://www.visualstudio.com/vs/community/ is free also as is the Visual Micro add on: http://www.visualmicro.com/
I also dont want to have to learn anything new, to do the same job.

I think Visual Micro will meet all your needs.


zmemw16
Sun Jan 28, 2018 6:50 pm
and what platforms does that run on ?
srp

BennehBoy
Sun Jan 28, 2018 10:10 pm
[Jimbo13 – Sun Jan 28, 2018 5:05 pm] –
Hi BennehBoy, I looked at VScode but I am not sure why I would use it as https://www.visualstudio.com/vs/community/ is free also as is the Visual Micro add on: http://www.visualmicro.com/
I also dont want to have to learn anything new, to do the same job.

I think Visual Micro will meet all your needs.

Yeah but VSC is complete bloat so I wanted to avoid it. Point being, it just worked out the box.


Leave a Reply

Your email address will not be published. Required fields are marked *