Search found 18 matches
- Thu Feb 16, 2017 11:09 am
- Forum: Development Tools and Programming
- Topic: Autoformatter or indenter for XC language
- Replies: 1
- Views: 2417
Autoformatter or indenter for XC language
I understand XC is similar to C but is there an autoformatter tool that normalizes spaces/tabs/hanging indents, etc for the XC language? I'm hoping someone has customized astyle, GNU Indent or some other tool for this purpose. Any help is greatly appreciated, thank you.
- Tue Jan 10, 2017 10:19 am
- Forum: Development Tools and Programming
- Topic: doxygen for XC specific objects like interfaces, chanends
- Replies: 4
- Views: 3351
Re: doxygen for XC specific objects like interfaces, chanend
Hi, I believe for the Xmos documentation toolset, a forked version of Breathe was used (bridges between doxygen and sphynx) which was modified to extend the struct directive to add in interfaces. This is where classes, typdefs and enums are defined too. Hi, I'm desperately looking for this. Any lin...
- Mon Jan 09, 2017 2:33 pm
- Forum: Development Tools and Programming
- Topic: doxygen for XC specific objects like interfaces, chanends
- Replies: 4
- Views: 3351
doxygen for XC specific objects like interfaces, chanends
Hi, I'm trying to use doxygen for my XC codebase. Most of the usual header functions, source functions, structures come out fine in the documentation. One thing that doesn't play well is the interface function definitions. Doxygen seems to skip the first function of an interface definition. Has anyb...
- Fri Dec 23, 2016 2:50 pm
- Forum: Other XMOS Development Kits
- Topic: Backend code of xflash, xrun
- Replies: 1
- Views: 3077
Backend code of xflash, xrun
Hi, I've been trying to design an firmware upgrade mechanism for my XMOS based microcontroller. There are specific issues related to this particular microcontroller. I'm wondering if the xrun, xflash utilities are open source? I want to play around with the code and see what works for my particular ...
- Fri Oct 21, 2016 4:30 am
- Forum: Development Tools and Programming
- Topic: [BUG FOUND] in select-case of server side interfaces
- Replies: 4
- Views: 4182
Re: [BUG FOUND] in select-case of server side interfaces
That specific exception wouldn't be uncommon. Most people have probably managed that and been completely clueless as to why. What board/silicon are you using, tools version, can you post more of your code? Looks like it'd be some odd codegen bug or you've got a bug in your code somewhere you're not...
- Thu Oct 20, 2016 12:10 pm
- Forum: Development Tools and Programming
- Topic: [BUG FOUND] in select-case of server side interfaces
- Replies: 4
- Views: 4182
[BUG FOUND] in select-case of server side interfaces
Hi all, I am using a select-case of this form: TOOLS VERSION: 14.2.1 XS2-L1 chips. while(1){ select{ case server_interface_if[int i].func(): // processing break; } } I get a ET_LOAD_STORE memory access exception. I did a 'info reg' in xgdb: r0 0x8 8 r1 0xf002a80 251669120 r2 0xfe 254 r3 0x84 132 r4 ...
- Tue Sep 27, 2016 3:13 pm
- Forum: Development Tools and Programming
- Topic: Timing of interface related events in a select case
- Replies: 3
- Views: 2904
Timing of interface related events in a select case
Hi, I had been using channels exclusively. I recently shifted to interfaces. The code is now more elegant. One issue I face is the timing related to interface calls. Say thread 1 calls interface A_interface's functions foo and other consecutively: A_interface.foo() A_interface.other() A_interface is...
- Fri May 06, 2016 2:06 pm
- Forum: Q&A
- Topic: gibberish data in loopback of lib uart 3.0.2 rc2
- Replies: 2
- Views: 2616
Re: gibberish data in loopback of lib uart 3.0.2 rc2
Believe the issue is with the clock used for the UART module. What is the value ? Fairly sure that you are required to feed an external clock source of 1.8432 Mhz (common to the PC UARTs) into a single bit pin of the XMOS device which will serve as the UART clock. See here for more details: https:/...
- Fri May 06, 2016 11:53 am
- Forum: Q&A
- Topic: gibberish data in loopback of lib uart 3.0.2 rc2
- Replies: 2
- Views: 2616
gibberish data in loopback of lib uart 3.0.2 rc2
I tried the following test code with libuart 3.0.2 rc2 (only the main parallel assignment is shown, as the functions are all library functions): par { on tile[0]: { par { input_gpio_1bit_with_events(i_gpio_rx[0], rx_fw); uart_rx(uif[0], null, 16, 115200, UART_PARITY_NONE, 8, 1, i_gpio_rx[0]); uart_t...
- Fri Apr 29, 2016 10:25 am
- Forum: Development Tools and Programming
- Topic: Uart problem
- Replies: 15
- Views: 16679
Re: Uart problem
For anybody who still faces this, the ET_ECALL cannot be circumvented by changing baud rates. The error simply means that the rx buffer is full (this is the unsigned char array that you declare in the main function, where the tasks are assigned). The reason for the error could be that the host funct...