Advertisement
Guest User

Untitled

a guest
Jun 1st, 2015
267
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.01 KB | None
  1. $ touch applications/blink/blink.cpp
  2.  
  3. $ make v=1 APP=blink PLATFORM=photon
  4. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../wiring PLATFORM=photon APP=blink v=1
  5. make[1]: Nothing to be done for `all'.
  6. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../services PLATFORM=photon APP=blink v=1
  7. make[1]: Nothing to be done for `all'.
  8. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../communication PLATFORM=photon APP=blink v=1
  9. make[1]: Nothing to be done for `all'.
  10. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../hal PLATFORM=photon APP=blink v=1
  11. make[1]: Nothing to be done for `all'.
  12. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../platform PLATFORM=photon APP=blink v=1
  13. make[1]: Nothing to be done for `all'.
  14. mkdir -p ../build/target/main/platform-0/applications/blink/
  15. arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_ID=0 -DSPARK_PLATFORM -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_ID=0 -DINCLUDE_PLATFORM=1 -DSPARK_PLATFORM_NET=CC3000 -DPRODUCT_ID=65535 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DRELEASE_BUILD -I./inc -I./applications/blink -I./libraries -I../wiring/inc -I../services/inc -I../communication/lib/tropicssl/include -I../communication/src -I../hal/inc -I../hal/shared -I../hal/src/core-v1 -I../platform/MCU/STM32F1xx/CMSIS/Include -I../platform/MCU/STM32F1xx/CMSIS/Device/ST/Include -I../platform/MCU/STM32F1xx/SPARK_Firmware_Driver/inc -I../platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F1xx/STM32_USB_Device_Driver/inc -I../platform/NET/CC3000/CC3000_Host_Driver -I../bootloader/src/core-v2 -I. -MD -MP -MF ../build/target/main/platform-0/applications/blink/blink.o.d -ffunction-sections -Wall -Werror -Wno-switch -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -std=gnu++11 -fno-exceptions -fno-rtti -c -o ../build/target/main/platform-0/applications/blink/blink.o applications/blink/blink.cpp
  16. mkdir -p ../build/target/main/platform-0/applications/blink/
  17. arm-none-eabi-g++ -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_ID=0 -DSPARK_PLATFORM -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_ID=0 -DINCLUDE_PLATFORM=1 -DSPARK_PLATFORM_NET=CC3000 -DPRODUCT_ID=65535 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DRELEASE_BUILD -I./inc -I./applications/blink -I./libraries -I../wiring/inc -I../services/inc -I../communication/lib/tropicssl/include -I../communication/src -I../hal/inc -I../hal/shared -I../hal/src/core-v1 -I../platform/MCU/STM32F1xx/CMSIS/Include -I../platform/MCU/STM32F1xx/CMSIS/Device/ST/Include -I../platform/MCU/STM32F1xx/SPARK_Firmware_Driver/inc -I../platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F1xx/STM32_USB_Device_Driver/inc -I../platform/NET/CC3000/CC3000_Host_Driver -I../bootloader/src/core-v2 -I. -MD -MP -MF ../build/target/main/platform-0/applications/blink/blink.elf.d -ffunction-sections -Wall -Werror -Wno-switch -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb ../build/target/main/platform-0/applications/blink/blink.o ../build/target/main/platform-0/startup/startup_stm32f10x_md.o --output ../build/target/main/platform-0/applications/blink/blink.elf -T../build/arm/linker/linker_stm32f10x_md_dfu.ld --specs=nano.specs -lc -lnosys -u _printf_float -Wl,-Map,../build/target/main/platform-0/applications/blink/blink.map -L../build/target/wiring/arm/ -L../build/target/services/arm/ -L../build/target/communication/platform-0/ -L../build/target/hal/platform-0/ -L../build/target/platform/platform-0/ -Wl,--start-group -lwiring -lservices -lcommunication -lhal -lplatform -Wl,--end-group -nostartfiles -Xlinker --gc-sections
  18. arm-none-eabi-objcopy -O binary ../build/target/main/platform-0/applications/blink/blink.elf ../build/target/main/platform-0/applications/blink/blink.bin
  19. arm-none-eabi-objcopy -O ihex ../build/target/main/platform-0/applications/blink/blink.elf ../build/target/main/platform-0/applications/blink/blink.hex
  20. arm-none-eabi-size --format=berkeley ../build/target/main/platform-0/applications/blink/blink.elf
  21. text data bss dec hex filename
  22. 76820 1144 11580 89544 15dc8 ../build/target/main/platform-0/applications/blink/blink.elf
  23.  
  24. $ particle flash --usb ../build/target/main/platform-0/applications/blink/blink.dfu
  25. Found DFU device 2b04:d006
  26. Apparently I didn't find a DFU device? util said dfu-util 0.7
  27.  
  28. Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
  29. Copyright 2010-2012 Tormod Volden and Stefan Schmidt
  30. This program is Free Software and has ABSOLUTELY NO WARRANTY
  31. Please report bugs to dfu-util@lists.gnumonks.org
  32.  
  33. Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg"
  34. Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=1, name="@DCT Flash /0x00000000/01*016Kg"
  35.  
  36. checking file ../build/target/main/platform-0/applications/blink/blink.dfu
  37. spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D ../build/target/main/platform-0/applications/blink/blink.dfu
  38. dfu-util 0.7
  39.  
  40. Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
  41. Copyright 2010-2012 Tormod Volden and Stefan Schmidt
  42. This program is Free Software and has ABSOLUTELY NO WARRANTY
  43. Please report bugs to dfu-util@lists.gnumonks.org
  44.  
  45. Filter on vendor = 0x2b04 product = 0xd006
  46. Opening DFU capable USB device... ID 2b04:d006
  47. Run-time device DFU version 011a
  48. Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg"
  49. Claiming USB DFU Interface...
  50. Setting Alternate Setting #0 ...
  51. Determining device status: state = dfuIDLE, status = 0
  52. dfuIDLE, continuing
  53. DFU mode device DFU version 011a
  54. Device returned transfer size 4096
  55. Dfu suffix version 100
  56. DfuSe interface name: "Internal Flash "
  57. Downloading to address = 0x080a0000, size = 77984
  58. ....................
  59. File downloaded successfully
  60. Error during download get_status
  61. Error during download get_status
  62. Flashed!
  63.  
  64. $
Advertisement
RAW Paste Data Copied
Advertisement