QuickLogic-Corp / qorc-sdk

Open source FreeRTOS SDK for EOS S3 MCU+eFPGA SoC including gateware, software and documentation under QuickLogic Open Reconfigurable Computing (QORC) Initiative
Apache License 2.0
44 stars 27 forks source link

Did not find port #100

Closed just4give closed 3 years ago

just4give commented 3 years ago

Hi, I am trying to upload the hello world program. This is my first time using QuickFeather board. I am running on Mac OS. I was able to compile the code and generate bin file but when trying to flash, I am getting below error as in the screen shot. I am connecting the board using micro-usb cable. Can anyone help me to troubleshoot ?

Screen Shot 2021-02-03 at 1 35 00 PM
gmartin102 commented 3 years ago

Hi - Most likely this is a permissions issue with the port not having sufficient permission for users to open. The best test of this is to try the command as sudo. If that works then it is a permissions issue.

just4give commented 3 years ago

Tried sudo and USB Adapter as well but no luck. Any other thoughts ? Anyone got it working on Mac?

Screen Shot 2021-02-03 at 10 59 58 PM
just4give commented 3 years ago

Was able to flash the program. I had to use cu.xxxx instead of tty.xxx like

qfprog --port /dev/cu.usbmodem143201 --mode m4 --m4app output/bin/qf_helloworldsw.bin

Screen Shot 2021-02-03 at 11 34 49 PM

Going to install Putty on mac to test the output.

just4give commented 3 years ago

I am all set.

Screen Shot 2021-02-04 at 10 56 26 AM
tcal-x commented 3 years ago

@just4give , what device did you use with putty, the same one used for flashing, or different?

timsaxe commented 3 years ago

That will be a different device since there is a different USB device ID for the programming vs serial communication

From: Other Tim notifications@github.com Sent: Thursday, February 4, 2021 8:36 AM To: QuickLogic-Corp/qorc-sdk qorc-sdk@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [QuickLogic-Corp/qorc-sdk] Did not find port (#100)

@just4givehttps://github.com/just4give , what device did you use with putty, the same one used for flashing, or different?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/QuickLogic-Corp/qorc-sdk/issues/100#issuecomment-773441153, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO4FHENEZGXOULXEZJTJJALS5LEHTANCNFSM4XBL5UCA.

tcal-x commented 3 years ago

Hi @timsaxe , thanks! I hope the info gets added to the docs to make it easier for the next MacOS user.

just4give commented 3 years ago

The other one with tty.xxx .... for flashing I had to use cu.xxx and for putty tty.xxx with baud rate 115200...

Screen Shot 2021-02-04 at 11 40 37 AM
timsaxe commented 3 years ago

Curious how you track this down on a mac. On windows I run an app called device manager a look at the ‘com ports’ section. When I plug in QF a new com port shows up and I know that is the serial port, and when I reset and bring it up in program mode that com port disappears and a different ports shows up which I then know is the programming port. This also helps when I have more than one QF and am trying to work out which port goes with which device.

Is there a similar process that you used on a mac?

Which reminds me of a further question, in order for documentation to be useful it has to be where people naturally look for it. Where do you generally look for answers when you have a question like this? Github doc, github issues, forum, readthedocs, …?

From: Mithun Das notifications@github.com Sent: Thursday, February 4, 2021 8:45 AM To: QuickLogic-Corp/qorc-sdk qorc-sdk@noreply.github.com Cc: Tim Saxe Saxe@quicklogic.com; Mention mention@noreply.github.com Subject: Re: [QuickLogic-Corp/qorc-sdk] Did not find port (#100)

The other one with tty.xxx .... for flashing I had to use cu.xxx and for putty tty.xxx with baud rate 115200...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/QuickLogic-Corp/qorc-sdk/issues/100#issuecomment-773447576, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO4FHEL4XQSDC44QPUUE2JDS5LFJBANCNFSM4XBL5UCA.

just4give commented 3 years ago

I actually did an old school process :) went into /dev folder and listed the devices issuing ls -lrt , then plugged in QF board and issued same command again ... new port showed up at the bottom and I new that's the one I just plugged in. There must be a better way to do this but at least worked for me for the time being.