[error] Unknown serial port. Please specify device serial port in configuration

Hey guys, I have a Particle Photon which I’m trying to install this on. The workbench sees my device in DFU and registers just fine but when I try to load the OS it errors out with that error. Any ideas on how I can get past this? I’m on a MacBook
The port under the device info says none for some reason, but only when the device is in DFU, when it’s blinking green it has a port
Tried in Windows in a VM, same thing.

Bumpity bump bump bump

Alright I’ve tried in an actual Windows machine as well and same thing. I’m done with this product.

hi @Peter_Sysak
We’re sorry that you’re facing some inconveniences with Zerynth studio.
Let’s try to debug this:

  • Are you following the registration guide of Particle Photon?
    It has information about the software drivers needed to communicate with the device.
  • for instance, are you facing errors on registration or virtualization?
  • if you’re facing errors during uplinking the code, please post the whole log output.

Hi all,

“EDIT 1 / DISCLAIMER: due to forum rules I had to remove 2 images, feel free to contact me for the other 2!!!”

" EDIT 2: cannot post with images at all!!!"

I’m facing the same issues with a Particle Photon.
I followed the provided weblink to the official Photon install instructions. But there isn’t anything special to them. (I’m on a mac to be precise).

Following the instructions, it fails at step 1
<<img 1>>

<<img 2>>

If you then do proceed with step 2 it actually installs something.

<<img 3>>

full console output:
"
Loading settings…
Switched to auto mode
Ready!
Checking for updates…
Ok
[info] Downloading package sys.zerynth.armgcc-mac
[info] Downloading package sys.zerynth.dfu-mac
[info] Downloading package sys.zerynth.openocd-mac
[info] Downloading package vhal.zerynth.armcmx_stm32f1
[info] Downloading package vhal.zerynth.armcmx_stm32f2
[info] Downloading package vhal.zerynth.armcmx_stm32f4
[info] Downloading package vhal.zerynth.armcmx_stm32f7
[info] Downloading package vhal.zerynth.armcmx_stm32f_common
[info] Installing package sys.zerynth.armgcc-mac
[info] Installing package sys.zerynth.dfu-mac
[info] Installing package sys.zerynth.openocd-mac
[info] Installing package vhal.zerynth.armcmx_stm32f1
[info] Installing package vhal.zerynth.armcmx_stm32f2
[info] Installing package vhal.zerynth.armcmx_stm32f4
[info] Installing package vhal.zerynth.armcmx_stm32f7
[info] Installing package vhal.zerynth.armcmx_stm32f_common
xattr: [Errno 13] Permission denied: ‘/Users/lvx/.zerynth2/dist/r2.6.0/sys/dfu/bin/dfu-util’
xattr: [Errno 13] Permission denied: ‘/Users/lvx/.zerynth2/dist/r2.6.0/sys/dfu/bin/dfu-prefix’
xattr: [Errno 13] Permission denied: ‘/Users/lvx/.zerynth2/dist/r2.6.0/sys/dfu/bin/dfu-suffix’
xattr: [Errno 13] Permission denied: ‘/Users/lvx/.zerynth2/dist/r2.6.0/sys/dfu/libusb/1.0.19/lib/pkgconfig/libusb-1.0.pc’
xattr: [Errno 13] Permission denied: ‘/Users/lvx/.zerynth2/dist/r2.6.0/sys/dfu/libusb/1.0.19/lib/libusb-1.0.a’
[info] All dependencies installed!
[info] Writing /Users/lvx/.zerynth2/tmp/particle_photon/main.py
[info] Writing /Users/lvx/.zerynth2/tmp/particle_photon/Makefile
Project config file missing
[info] Writing /Users/lvx/.zerynth2/tmp/particle_photon/project.yml
[warning] Trying to search attached device
[info] Preparing particle_photon
[info] Rewriting /Users/lvx/.zerynth2/tmp/particle_photon/project.yml
[warning] Trying to get latest available vm
{‘version’: ‘r20.07.07’, ‘description’: ‘Standard’, ‘xfeatures’: [], ‘features’: [], ‘rtos’: ‘freertos9’, ‘target’: ‘particle_photon’}
[info] Rewriting /Users/lvx/.zerynth2/tmp/particle_photon/project.yml
[info] Burning bootloader…
[error] Unknown serial port. Please specify device serial port in configuration
[warning] Trying to search attached device
[info] Preparing particle_photon
[info] Rewriting /Users/lvx/.zerynth2/tmp/particle_photon/project.yml
[warning] Trying to get latest available vm
{‘target’: ‘particle_photon’, ‘version’: ‘r20.07.07’, ‘features’: [], ‘xfeatures’: [], ‘rtos’: ‘freertos9’, ‘description’: ‘Standard’}
[info] Rewriting /Users/lvx/.zerynth2/tmp/particle_photon/project.yml
[info] Burning bootloader…
[error] Unknown serial port. Please specify device serial port in configuration
[warning] Trying to search attached device
[info] Preparing particle_photon
[info] Rewriting /Users/lvx/.zerynth2/tmp/particle_photon/project.yml
[warning] Trying to get latest available vm
{‘description’: ‘Standard’, ‘xfeatures’: [], ‘features’: [], ‘rtos’: ‘freertos9’, ‘version’: ‘r20.07.07’, ‘target’: ‘particle_photon’}
[info] Rewriting /Users/lvx/.zerynth2/tmp/particle_photon/project.yml
[info] Burning bootloader…
[error] Unknown serial port. Please specify device serial port in configuration
[warning] Trying to search attached device
[info] Preparing particle_photon
[info] Rewriting /Users/lvx/.zerynth2/tmp/particle_photon/project.yml
[warning] Trying to get latest available vm
{‘features’: [], ‘version’: ‘r20.07.07’, ‘target’: ‘particle_photon’, ‘xfeatures’: [], ‘rtos’: ‘freertos9’, ‘description’: ‘Standard’}
[info] Rewriting /Users/lvx/.zerynth2/tmp/particle_photon/project.yml
[info] Burning bootloader…
[error] Unknown serial port. Please specify device serial port in configuration
[info] Starting device registration
[info] Burning bootloader…
[info] Burning bin
[info] dfu-util 0.8
[info]
[info] Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
[info] Copyright 2010-2014 Tormod Volden and Stefan Schmidt
[info] This program is Free Software and has ABSOLUTELY NO WARRANTY
[info] Please report bugs to dfu-util’at’lists.gnumonks’dot’org
[info]
[info] dfu-util: Invalid DFU suffix signature
[info] dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
[info] Deducing device DFU version from functional descriptor length
[info] Opening DFU capable USB device…
[info] ID 2b04:d006
[info] Run-time device DFU version 011a
[info] Claiming USB DFU Interface…
[info] Setting Alternate Setting #0
[info] Determining device status: state = dfuIDLE, status = 0
[info] dfuIDLE, continuing
[info] DFU mode device DFU version 011a
[info] Device returned transfer size 4096
[info] DfuSe interface name: "Internal Flash "
[info] Downloading to address = 0x08020000, size = 133120
[info]
[info] Download [ ] 0% 0 bytes
[info] Download [ ] 3% 4096 bytes
[info] Download [= ] 6% 8192 bytes
[info] Download [== ] 9% 12288 bytes
[info] Download [=== ] 12% 16384 bytes
[info] Download [=== ] 15% 20480 bytes
[info] Download [==== ] 18% 24576 bytes
[info] Download [===== ] 21% 28672 bytes
[info] Download [====== ] 24% 32768 bytes
[info] Download [====== ] 27% 36864 bytes
[info] Download [======= ] 30% 40960 bytes
[info] Download [======== ] 33% 45056 bytes
[info] Download [========= ] 36% 49152 bytes
[info] Download [========== ] 40% 53248 bytes
[info] Download [========== ] 43% 57344 bytes
[info] Download [=========== ] 46% 61440 bytes
[info] Download [============ ] 49% 65536 bytes
[info] Download [============= ] 52% 69632 bytes
[info] Download [============= ] 55% 73728 bytes
[info] Download [============== ] 58% 77824 bytes
[info] Download [=============== ] 61% 81920 bytes
[info] Download [================ ] 64% 86016 bytes
[info] Download [================ ] 67% 90112 bytes
[info] Download [================= ] 70% 94208 bytes
[info] Download [================== ] 73% 98304 bytes
[info] Download [=================== ] 76% 102400 bytes
[info] Download [==================== ] 80% 106496 bytes
[info] Download [==================== ] 83% 110592 bytes
[info] Download [===================== ] 86% 114688 bytes
[info] Download [====================== ] 89% 118784 bytes
[info] Download [======================= ] 92% 122880 bytes
[info] Download [======================= ] 95% 126976 bytes
[info] Download [======================== ] 98% 131072 bytes
[info] Download [=========================] 100% 133120 bytes
[info] Download done.
[info] File downloaded successfully
[info] attempt 1
[info] attempt 2
[info] Chip id retrieved: 230013004174433383336333
[info] Device Particle Photon registered with uid: wcZ-gNFTRACJ-eJxOOC4TA
Registration successful! Now you can virtualize your particle_photon
"

After finishing step 2, you can actually upload the ‘Hello_Zerynth’ sketch, and it outputs the string to the console.

I do feel the original firmware is still on there based on the led methods during bootup.
Could you elaborate in my findings?

BR,
lvx

If you can uplink Zerynth examples then the device is registered and virtualized successfully, because during the uplink process the VM on the device communicates with Zerynth Studio.

Hi Karim,

Thank you for your response. Could you explain what the first step is then. Because looking at the log it clearly complains about not finding a suitable connection to the photon.

"
[info] Burning bootloader…
[error] Unknown serial port. Please specify device serial port in configuration
"
BR,
lvx

Normally, Zerynth studio uses the drivers to detect when the Photon is connected, and also detect the port which it uses.
Propably your OS has some misconfiguration of these drivers, so the port is not recognized automatically then Zerynth studio searches for it.