Search found 21 matches

by jorsc
Fri Apr 03, 2020 5:03 am
Forum: Development Tools and Programming
Topic: struct aligment issue
Replies: 1
Views: 1381

struct aligment issue

I've have an issue with structs not being aligned correctly. In my program this resulted in the runtime error: "xrun: Program received signal ET_LOAD_STORE, Memory access exception." As I understand it is convention on 32bit platforms that int members and struct sizes should be aligned to ...
by jorsc
Tue Oct 01, 2019 3:00 pm
Forum: Development Tools and Programming
Topic: Does strobed input has a bug/design flaw?
Replies: 6
Views: 2144

Re: Does strobed input has a bug/design flaw?

Thanks for you input! I found a different solution, not using strobed input. Turns out the i2s_frame_slave_impl.h of the official i2s_library had a pretty elegant boiler plate. This implementation uses a 'in buffered port:32 p_lrck' And in the while loop p_lrck is matched alternating with: unsigned ...
by jorsc
Sun Sep 29, 2019 6:56 am
Forum: Development Tools and Programming
Topic: Does strobed input has a bug/design flaw?
Replies: 6
Views: 2144

Re: Does strobed input has a bug/design flaw?

bclk is 32.768MHz and ws_clock is 1.024MHz, so pretty fast... My idea was to invert ws_clock externally and feed that to a second pin. Then have two tasks reading dataIn as: One task strobe on normal ws_clock and the other strobe on the inverted ws_clock. So they would alternate reading the dataIn g...
by jorsc
Sat Sep 28, 2019 6:44 am
Forum: Development Tools and Programming
Topic: Does strobed input has a bug/design flaw?
Replies: 6
Views: 2144

Re: Does strobed input has a bug/design flaw?

Thanks for input!
OK I will try, though even if this works, I'm a bit worried as my real bitclock is 32768 KHz. I.e. there only 30ns between each clock cycle, so there might not be time to store dataIn1, and execute 'p_in :>dataIn2'?
by jorsc
Fri Sep 27, 2019 4:49 pm
Forum: Development Tools and Programming
Topic: Does strobed input has a bug/design flaw?
Replies: 6
Views: 2144

Does strobed input has a bug/design flaw?

I'm trying to input a high speed I2S (non-audio related) to xmos. For various reasons I decided to use the strobe function essentially like below. Assume (just to get numbers) that the word_select signal has period of 1ms (1kHz). So obviously it will be high 500uS and low 500uS. Each sample is 16 bi...
by jorsc
Tue Jun 18, 2019 8:18 am
Forum: Development Tools and Programming
Topic: xmake outputs wrong relative path to files with errors
Replies: 2
Views: 1129

Re: xmake outputs wrong relative path to files with errors

Thanks, it seems that specifying the SOURCE_DIRS and INCLUDE_DIRS variables does help. Unfortunately I then get other build issues. Like this for every file: warning: ignoring old commands for target `.build_Release/import/lib_dsp/src/fft/dsp_fft_inverse.S.pca.xml.decouple And an error: xcc: error: ...
by jorsc
Mon Jun 17, 2019 8:21 am
Forum: Development Tools and Programming
Topic: xmake outputs wrong relative path to files with errors
Replies: 2
Views: 1129

xmake outputs wrong relative path to files with errors

Hello, I can't figure this out. If I have a project structure like this: MyProject/ |-Makefile |-src/main.xc I then set my cwd in MyProject/ and run xmake. With no errors, the project is builds fine. However if my main.xc has en error. The error is refer to main.xc as "../src/main.xc:7:2: error...
by jorsc
Fri May 17, 2019 9:40 am
Forum: Development Tools and Programming
Topic: Minimal footprint for xtag-3
Replies: 7
Views: 2537

Re: Minimal footprint for xtag-3

Thanks for sharing. Looks really interesting. I also found this https://katalog.we-online.de/em/datasheet/490107672012.pdf . Seems like an alternative to Tag-Connect. The Wurth connector is 2.54mm instead of 1.27mm. However each pin act as a "spring" so I guess it does not require the &quo...
by jorsc
Thu May 16, 2019 8:29 am
Forum: Development Tools and Programming
Topic: Minimal footprint for xtag-3
Replies: 7
Views: 2537

Minimal footprint for xtag-3

Up until now I've just used reference designs with "standard" 2x10 pin IDC and connected xtag-3 directly to the board for factory (xflash) programming. It worked well. However for an upcoming design I'm looking to make a small PCB and the IDC connector is too big. What would be a minimal n...
by jorsc
Wed Mar 27, 2019 4:28 pm
Forum: Development Tools and Programming
Topic: Meaning of 'upgrade id' when creating an DFU upgrade image?
Replies: 2
Views: 8653

Re: Meaning of 'upgrade id' when creating an DFU upgrade image?

Thanks, I know the --verbose option but it does not explain how this parameter is used.