This stared out as a really easy project, with just a few simple steps.
The instructions are on github here: https://github.com/Picovoice/picovoice-demo-psoc6 It sounds easy, every step should go smoothly, after all I am just following the instructions for a proven demo that has been posted for months.
Unfortunately, it did not go smoothly. I’ll detail the roadblocks and workarounds as I walk you through the process. In the end I did get the demo to work.
Before you run out and buy the recommended hardware kit CY8CKIT-062S2-43012, please read this post and the following two parts of the Blog series.
This should be easy I am running a Linux system with Ubuntu 20.04, a well tested system, and it is supported by ModusToolbox. Lets Go…
First I went to the Infineon site and downloaded the Quick Start Guide . Section 1.1 I checked the dependencies:
Everything looks good. Section 1.2 remove Beta versions. Nothing to do here I never installed a Beta version.
Section 2 Download the from (www.infineon.com/modustoolbox) this redirects you to an Infineon.com page with a large friendly “Download” button at the top. The Download button redirects you to a page where you can select your OS, I selected “Linux (x64)(tar.gz)” and appropriate version was selected for me. Hitting the Download button brought in a 1.1GB file.
Section 2.2 pre-requisites. I checked the versions of various tools installed on my system against the required versions
Oh,oh, I have the wrong version of python. I need to install python3 and make it the default version of python. Run the following commands to make python3 the default:
sudo apt install python3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2
sudo update-alternatives --config python
At the last command, select python3 as the default. And recheck the python version:
Section 2.3 SEGGER J-Link, I do not have a J-Link debugger so I will ignore this section.
Section 3.4 Linux. Extract the files into your home directory
tar -vxf Downloads/ModusToolbox_220.127.116.1172-linux-install.tar
Now we need to install a bunch of dependencies
sudo apt install libncurses5 libusb-1.0-0 libxcb-xinerama0
Why do I have to do all of these steps? I thought most Ubuntu packages installed with a simple command like:
sudo apt install ModusToolbox
apt would then install all of the dependencies and run the required setup scripts. At the very least a single script that checks all of the required versions, and runs all of the other scripts would make installation easier.
So far ModusToolbox is installed, but not tested, more on this later. So far we have installed the tool necessary to build an application, in the next parts we will build the Picovoice application, and figure out why it didn’t work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
By technically required cookies we mean cookies without those the technical provision of the online service cannot be ensured. These include e.g. cookies supporting essential services like a smooth reproduction of video or audio footage. So called ‘functional cookies’ are also assigned belonging to this category. Functional cookies store information in order to provide you comfortable use of our online services (e.g. language selection). The legal basis for the processing of personal data by means of cookies of this category is Infineon’s legitimate interest. This includes, among other things, the interest in having a professional external presentation as well as an optimal balancing of the loads on the server due to technical reasons.
By performance and marketing cookies we mean cookies which are technically not required. We use performance and marketing cookies only if you have given us your prior consent. With such cookies, we collect information about how users interact with our website and which pages have been visited. This helps us to understand user activity on our website on an aggregated as well as on a personal level to provide you relevant content and services.