LED C1 builds up until bright

All technical discussions and projects around startKIT
Post Reply
JardiniM
New User
Posts: 3
Joined: Tue Jan 02, 2018 7:23 pm

LED C1 builds up until bright

Post by JardiniM »

I'm running the LED example (AN00175) for the startKit and after some time (few seconds) the LED C1 keep bright all the time.

I left the board unplugged for a few minutes and them plug it on USB again. The LED C1 slowly build up until get bright, again, after a few seconds.

Anyone else having the same problem? I have found the same effect on other examples, even if they not touch the LED C1.

Can it be some PCB problem?

Thanks in advance.


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Hello. Did you alter any part of the source code from this example? Try to erase the flash so the factory code runs from the internal ROM. The factory rom code is also a breathing led demo but believe all 3x3 leds will do this effect - off to bright and then repeat. Try the other led example, spinning leds and post your results.
JardiniM
New User
Posts: 3
Joined: Tue Jan 02, 2018 7:23 pm

Post by JardiniM »

Hello mon2.

Yep. I've tried the other LED examples AN00174, AN00175 without any alteration on the source and also tested with the factory default breathing. LED C1 always build up slowly until almost bright.

The other functions work as intended, in ex. slider X and Y change the bright and the speed accordingly and the button change the pattern (except C1, who never fall bellow almost bright after a few seconds)
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

That is strange. In the source code locate the port pin linked to led C1 and remove from the equation. The startkit hardware manual has the schematics for your reference. Does this stop C1? Perhaps an assembly fault of the pcb? Is this kit new? Always behaved like this?
JardiniM
New User
Posts: 3
Joined: Tue Jan 02, 2018 7:23 pm

Post by JardiniM »

I'll try a 'blank' firmware later after the work.

The kit is new, I've bought it three months ago, but only now, with the holidays I had time to toy with it.

I program for desktop and sometimes for firmware for some time now and I want to learn how to program fpga (verilog, vhdl) and xTime. I've also been a technician in electronics, I'm rusty, but I'm slowly coming back :)
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Very nice. Personally prefer Verilog and used the following website to learn a great deal:

http://www.fpga4fun.com/

Jean (who runs the website) is brilliant and very responsive to questions. Recommend that you pickup one of the many low cost kits from Lattice Semiconductor that will be then linked to a free license to allow you to test the FPGA products. They offer some very low cost FPGA devices to move forward.

XMOS is like a FPGA but in the end, perhaps easier to use since you are working in C. There are some learning curves ahead but can be as simple or complex as your would like. The XMOS devices are like having virtual 4 / 8 microcontrollers in a single TILE so each such micro can run independently from the other. You can order multi-tile versions of the parts. Your specific startkit is a dual tile system but one tile is for the USB interface so you are left with 8 virtual processors for your experiments.

There are many public pieces of IP for the XMOS devices to get you started. Have fun.
Post Reply