Remove LED program in starKIT.

First time on the site? Say hello here!
jems
Member
Posts: 8
Joined: Tue Jun 25, 2019 1:23 pm

Remove LED program in starKIT.

Postby jems » Mon Jul 08, 2019 1:31 pm

Hello guys!!!
Actually yesterday I was working one project and somehow I wanted to check it works fine or not I tried to write down program basically LED glowing example.
When it worked perfectly so I started one another project and over time build and test it worked perfectly.
When I did write down another example into startKIT it perfectly flash it.
But the problem occurs when hardware working previously flashed program(glowing led example).
I tried so many time but still, it shows the same result.
Even I did read artical related for this problem and short the spi cs pin 1 and 3.3v pin on power off mode.
When I power up still glow the 5 leads in an x pattern.
I hope you will help with this problem.
Thanks in advance.
User avatar
mon2
XCore Legend
Posts: 1514
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Mon Jul 08, 2019 1:38 pm

Hi jems. Going from memory but fairly confident that the default program inside the XMOS CPU and stored inside the OTP (one time programmable memory) is the program you are referencing.

That is, from the factory, the LED spinning code is stored inside the OTP so if your external flash device is missing, desoldered or blank then the OTP code will run by default.

Respectively, consider to load up another demo code and intentionally change the source code to identify as your own (ie. make the LED blink rate faster or slower) -> reflash the memory and see if it sticks. Your external code inside the flash device should override the booting of the internal OTP factory code.
jems
Member
Posts: 8
Joined: Tue Jun 25, 2019 1:23 pm

Postby jems » Mon Jul 08, 2019 1:49 pm

Thanks for the reply.
As per your suggestion, I tried to write down a program led with delay changes but still works the same it is.
User avatar
mon2
XCore Legend
Posts: 1514
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Mon Jul 08, 2019 2:45 pm

Please post your code (use the proper format tags for easier viewing); how you are flashing to the external flash memory device for a quick review.

Share any screen shots if possible.
jems
Member
Posts: 8
Joined: Tue Jun 25, 2019 1:23 pm

Postby jems » Tue Jul 09, 2019 8:27 am

This problem occurred because of the output pin connected to SPI Pin.
User avatar
mon2
XCore Legend
Posts: 1514
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Tue Jul 09, 2019 9:34 am

Hi. So the board is now working? If yes, please mark this thread as solved.

Who is online

Users browsing this forum: No registered users and 0 guests