cancel
Showing results for 
Search instead for 
Did you mean: 

Can't activate FLASH/OTP Device !

David Staffenberger
Associate III
Posted on August 16, 2017 at 11:06

Hello community,

I have 2 SPC56EL70L5-DISP boards and I am messing around with FlexRay.

Today I was not able to program one of the boards anymore (with the same code as the other board).

0690X00000607oDQAQ.png

The UDE Memtool shows the error stated in the picture above.

Furthermore the UDK STK 4.8 gives the following results:

We 16.08.2017 10:42:13.339, Error, Core::PFLASH, Error message from FLASH driver, command 'Init': We 16.08.2017 10:42:13.339, Error, Core::PFLASH, FLASH/OTP operation failed We 16.08.2017 10:42:13.339, Error, Core::PFLASH, Initializing FLASH driver on target failed We 16.08.2017 10:42:13.339, Warning, Core::UDEMemtool, FLASH programming for device '2 MByte OnChip PFLASH (Starterkit)' not available ! We 16.08.2017 10:42:13.339, Success, Core::UDEDebugServer, Connection to SPC56EL70 target established: PowerPC Target, JTAG-ID: 0x0AEA9041 We 16.08.2017 10:42:14.288, Warning, Core::PpcJtagTargIntf, Write access to memory range 0x00000000-0x001FFFFF refused ! We 16.08.2017 10:42:14.304, Warning, Core::UDEDebugServer, CRC check after download failed in memory range from 0H to 3F75H! We 16.08.2017 10:42:14.304, Warning, Core::PpcJtagTargIntf, Write access to memory range 0x00000000-0x001FFFFF refused ! We 16.08.2017 10:42:14.320, Warning, Core::UDEDebugServer, CRC check after download failed in memory range from 3F80H to 418BH! We 16.08.2017 10:42:14.320, Warning, Core::PpcJtagTargIntf, Write access to memory range 0x00000000-0x001FFFFF refused ! We 16.08.2017 10:42:14.320, Warning, Core::UDEDebugServer, CRC check after download failed in memory range from 4190H to 428BH! We 16.08.2017 10:42:14.335, Success, Core::UDEDebugServer, Program with ID 0x1 - code size 17022 bytes - was loaded!

Has anyone ideas what my problem might be? Is the flash dead?

Because the controller seems to be powered properly, I checked every jumper to be on the same position as on the other board and the UDK STK seems to recognise the controller correctly.

Thank you in advance,

best regards,

David.

##spc56 #flash #programming
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
david tomsa
Associate III
Posted on August 21, 2017 at 08:02

I have found the problem. The Problem wasn't the UDE, IDE, ... . It was the Source code. I changed the Init code (crt0.S File). My change blocked the access to the flash. 

View solution in original post

8 REPLIES 8
david tomsa
Associate III
Posted on August 18, 2017 at 07:18

I have the same Problem. I'm not able to debug from Eclipse. I get the Error like the post above and this issues 

Message from component 'PpcJtagTargIntf' :

Can't connect target !

Message from component 'PpcJtagTargIntf' :

Failed to open communication channel !

Message from component 'FtdiCommDev' :

Requested protocol is not supported

When i use the UDE Visual Plattform, i'm able to erase and flash the Controller. But i have to create everytime a new Workspace for that. Then, i'm able to erase/flash for one time. 

Posted on August 18, 2017 at 07:36

Hello,

thank you for your suggestion but unfortunately that does not change my errors.

I think that my board broke and I already ordered a new one. But I am still interested in wheter the board is broke or if I did something wrong.

Best Regards,

David.

Posted on August 18, 2017 at 09:18

We have the Problem with the SPC70 Eval Board an our Hardware. I can't imagine that our Hardware and our Board is broken, beacuse sometimes it works. 

Posted on August 18, 2017 at 10:11

I think our cases are a litte bit different. Because I have a second board which I can program without any problems; So I am pretty sure that I don't just have a configuration problem.

But back to your problem. Check if it is connected properly and are you using a power supply? I have heard that some of the boards can be operated with just the debugger connected but it sometimes causes problems.

Are  you using the PLS SDK? Because I wasn't able to get it running within SPC5Studio.

Best Regards,

David

Posted on August 18, 2017 at 10:18

Spc5 Studio doesn't work with PLS Sdk too. I use the Hightec Development Platform. 

I use the Dev Board for a few weeks without any problems, but since tuesday i have these problems. 

Now my 'Solutio' is to create a new UDE Workspace for every new Debug Sessions. Not nice, but it works )-:

Posted on August 18, 2017 at 10:28

Try some sample program with SPC5 Studio, generate and compile it. This schould generate a debug file in the UDE folder. You can then open the PLS program and load the workspace. Have you tried that? 

Because it looks to me like you have some configuration mistake in the debug file generated from the IDE.

EDIT:

Make sure you choose your board when using the wizard.

BR,

David

david tomsa
Associate III
Posted on August 21, 2017 at 08:02

I have found the problem. The Problem wasn't the UDE, IDE, ... . It was the Source code. I changed the Init code (crt0.S File). My change blocked the access to the flash. 

David Staffenberger
Associate III
Posted on August 21, 2017 at 08:11

Good to hear, I will mark this thread as answered since I assume that my board broke.