Search found 20 matches

by Redrat
Tue Jul 11, 2017 4:13 pm
Forum: XMOS Devices
Topic: XS1-U12: Usb suspend/standby/sleep
Replies: 5
Views: 6780

XS1-U12: Usb suspend/standby/sleep

Hello, I'm trying to implement/get my head around USB sleep/suspend on a XS1-U12. The datasheet states that the device will transition to the Asleep state when USB block requests standby, but this doesn't seem to be happening; am I missing some vital initialisation for this to happen? Alternatively ...
by Redrat
Wed Mar 29, 2017 10:51 am
Forum: Development Tools and Programming
Topic: readFlashDataPage in bootloader with tools 13.2
Replies: 2
Views: 3433

Re: readFlashDataPage in bootloader with tools 13.2

Hi Sebastian, Thanks for the help but I was trying with the absolute address. Here's the loader I'm currently trying to get to work; #include <xs1.h> #include <platform.h> #include <stdio.h> extern void * unsafe readFlashDataPage ( unsigned addr ); int keptVersion; unsigned int keptAddress; unsigned...
by Redrat
Mon Mar 27, 2017 9:56 am
Forum: Development Tools and Programming
Topic: readFlashDataPage in bootloader with tools 13.2
Replies: 2
Views: 3433

readFlashDataPage in bootloader with tools 13.2

Hello, I'm having trouble using readFlashDataPage in the flashloader with tools 13.2. In init() it doesn't seem to work at all and always returns null; http://www.xcore.com/viewtopic.php?f=26&t=5053 suggested using the bootsize as the offset but that didn't work either. http://www.xcore.com/view...
by Redrat
Mon Oct 31, 2016 3:36 pm
Forum: Development Tools and Programming
Topic: ET_ILLEGAL_RESOURCE with the XTCP Library
Replies: 4
Views: 6041

Re: ET_ILLEGAL_RESOURCE with the XTCP Library

After some experimentation I think I found the actual cause: xtcp_ignore_recv ; I found that the fault would occur after using the ignore function (used when receiving data from an uninitialized connect, ie, those that were ignored/rejected) and no fault would occur if instead my application receive...
by Redrat
Tue Oct 04, 2016 9:43 am
Forum: Development Tools and Programming
Topic: ET_ILLEGAL_RESOURCE with the XTCP Library
Replies: 4
Views: 6041

Re: ET_ILLEGAL_RESOURCE with the XTCP Library

Hi Louis, Thanks, but the problem seems to of resolved itself; I reverted back to version 13.2 of the tools and 3.1.4rc0 of XTCP and can no longer reproduce the fault at all. NB; when I reverted to version 13.2 of the tools and stayed on 4.0.2 of xtcp, instead of faulting the program would hang on t...
by Redrat
Fri Sep 30, 2016 5:06 pm
Forum: Development Tools and Programming
Topic: ET_ILLEGAL_RESOURCE with the XTCP Library
Replies: 4
Views: 6041

ET_ILLEGAL_RESOURCE with the XTCP Library

Hello, I'm encountering a problem with the xtcp library when receiving multiple connections; Even though I'm only allowing one connection and aborting (xtcp_abort()) any additional connection attempts, I've found that if another connection attempt is received while one already exists the program may...
by Redrat
Mon Jul 11, 2016 11:00 am
Forum: XMOS Devices
Topic: XS1-U12: DCDC2 (analogue supply) & Power when Asleep
Replies: 12
Views: 10585

Re: XS1-U12: DCDC2 (analogue supply) & Power when Asleep

OK it was my mistake, I wasn't using the full 64 bit and missing a 0 when working out the timer value, so it was waking after 6 seconds when I was expecting it to wake after a minute.

Will hand back to our hardware guy to go over and check power again.

Thanks for all the help,
Red
by Redrat
Mon Jul 11, 2016 10:06 am
Forum: XMOS Devices
Topic: XS1-U12: DCDC2 (analogue supply) & Power when Asleep
Replies: 12
Views: 10585

Re: XS1-U12: DCDC2 (analogue supply) & Power when Asleep

Oh, OK. Thanks. Then I'm doing something wrong with the wake up timer since it's waking faster/sooner than it should.

I'll continue to play around.

Cheer,
Red
by Redrat
Mon Jul 11, 2016 9:43 am
Forum: XMOS Devices
Topic: XS1-U12: DCDC2 (analogue supply) & Power when Asleep
Replies: 12
Views: 10585

Re: XS1-U12: DCDC2 (analogue supply) & Power when Asleep

Hi Henk, Thanks for all the help, but I'm still having trouble with switching it to the 32khz clock; It'll sleep and wake fine on the 20Mhz clock, but it won't go to sleep if I attempt to switch it to the 32khz. I've tried switching it at various points in the process; before switching to the on-sil...
by Redrat
Tue Jul 05, 2016 4:37 pm
Forum: XMOS Devices
Topic: XS1-U12: DCDC2 (analogue supply) & Power when Asleep
Replies: 12
Views: 10585

Re: XS1-U12: DCDC2 (analogue supply) & Power when Asleep

Hi Henk, That's reduced the power consumption, however it is no longer entering sleep mode properly (our software pwm driven led continues to blink instead of shutting off). Here's the sleep function code: unsigned da[1]; char dc[1]; //asleep power state read_periph_32(usb_tile,6,0x0c,1,da); da[0] |...