Search found 14 matches

by saul01
Wed Mar 22, 2017 8:54 pm
Forum: Getting started
Topic: Event Driven USB Task
Replies: 0
Views: 3794

Event Driven USB Task

Hi, I am having difficulty implementing an event driven USB Task. I have ported the code from AN00136_vendor_specific, it works ok but is not suited for our application since it goes in a loop polling to see if there is data and then replies to PC. I need to do something like this: void CommsTask(.....
by saul01
Tue Mar 14, 2017 9:42 pm
Forum: Getting started
Topic: Corrupted Microphone Data
Replies: 6
Views: 7180

Re: Corrupted Microphone Data

(1) I don't quite follow you on "you must get 2 samples in every two sample periods" (2) Yes, my architecture employs several tasks with a while(1) loop and a select block. The code is now working, but I think is by pure chance of me moving task instantiation order. I am sure there is a &q...
by saul01
Tue Mar 14, 2017 9:33 pm
Forum: Getting started
Topic: How to block Optimizer from certain files
Replies: 4
Views: 5240

Re: How to block Optimizer from certain files

Hello Robert, So after lots of different ways of instantiating the tasks and their respective memory buffers, the application is working. I still would like to upload my code for review, I feel as if it is working by chance and not by a clear method that I have learnt. Is it ok for me to do that and...
by saul01
Tue Mar 14, 2017 12:22 am
Forum: Getting started
Topic: Corrupted Microphone Data
Replies: 6
Views: 7180

Re: Corrupted Microphone Data

Ok, so I enabled the debug flag you mentioned and right when I start all the cool stuff (aggregating data and sending to the PC) I get the "Timing not met: decimators not serviced in time"
Is not the code running in different DSPs? Why is it running out of juice?
by saul01
Mon Mar 13, 2017 11:57 pm
Forum: Getting started
Topic: Corrupted Microphone Data
Replies: 6
Views: 7180

Re: Corrupted Microphone Data

1. Virtual COMM port is implemented in the xmos chip, although I use it to transmit "bursts" of data. This task makes use of "movable buffers" 2. I am only concerned with one microphone channel, so it is 1 channel @32b 48KHz. 3. The size of lib_mic_array frame: 2. Maybe I have a ...
by saul01
Sat Mar 11, 2017 2:41 am
Forum: Getting started
Topic: Corrupted Microphone Data
Replies: 6
Views: 7180

Corrupted Microphone Data

Hi I have modified the HiResDelay and Sum example to use 4 microphones only. The rate of the Decimator is 48KHz. I have verified that the data rate of the Microphone task is correct by replacing the Mic data with a sine wave that has 100 samples per cycle. I collect 16K points of data which are sent...
by saul01
Sat Mar 11, 2017 2:23 am
Forum: Getting started
Topic: How to block Optimizer from certain files
Replies: 4
Views: 5240

Re: How to block Optimizer from certain files

Thanks! I will try it. Just to give more detail on what I saw: I run a test passing a 0x02 on a streaming channel across DSP tiles. Then on the receiving end I had: if(sample == 0x02) replace data with an increasing ramp to 255 else replace data with an increasing ramp to 511. I then sent the data u...
by saul01
Thu Mar 09, 2017 11:48 pm
Forum: Getting started
Topic: How to block Optimizer from certain files
Replies: 4
Views: 5240

How to block Optimizer from certain files

Hi, I am using USB (which requires -O3 optimization); however, this flag is just causing havoc in my code, some times my interfaces are optimized and and sometimes not. How can I block the Optimizer on certain files? I am doing a simple task: communicating between two DSPs with a streaming channel, ...
by saul01
Wed Mar 08, 2017 1:42 am
Forum: Getting started
Topic: ADC on Microphone Array Board
Replies: 1
Views: 4360

Re: ADC on Microphone Array Board

Ok, I figured it out. It turns out that you only instantiate one i2s object. SDOUT for the DAC, SDIN for the ADC. They both share the same clocks. One thing to be careful is that all pins that you use MUST be on the same tile, so in my case I had to remove a resistor from the Ethernet interface pin ...
by saul01
Wed Mar 01, 2017 1:20 am
Forum: Getting started
Topic: ADC on Microphone Array Board
Replies: 1
Views: 4360

ADC on Microphone Array Board

Hi, I am (first) coding a task to handle a connection to an ADC (actual hardware wiring connection is about to happen in a couple of days): LRCLK: from TP_21 MCLK: from TP_22 BCLK: from TP_20 i2s_DataIn: from expansion header X0D00: XS1_PORT_1A I am also using the on-board DAC, which happens to use ...