LPC55S69 Trustzone SDK Example Problems

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC55S69 Trustzone SDK Example Problems

Jump to solution
1,413 Views
simon_ott
Contributor I

To get started with the LPC55S69 and TrustZone, I am running the TrustZone hello world example from the SDK example projects on the LPC55S69-EVK board. My first problem is, that I am not able to erase the flash with the GUI flash tool. As long as I only tried a project from the driver examples without trustzone, everything worked fine. As soon as I flashed the hello world trustzone example, I was not even able to debug anymore.  

 

I could solve the debug-problem through setting Debugger -> Configuration Options -> Flash Driver Reset Handling -> Select SYSRESETREQ in the launch configuration of the project. In the GUI flash tool, I can also select SYSRESETREQ, but it still fails to erase/program the flash. As soon as I have flashed a single non-secure project again, it's possible to erase the flash again. The error is always:  

 

Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash. 

chip initialization failed - Ef(34): Timed-out initializing flash. 

failed to initialize flash driver LPC55xx.cfx

 

And just as a note: Debugging fails regularly. It can always be fixed through hitting the "Clean up Debug" button first and then starting debugging from the Quick Start panel but it would be nice if debugging would just work always as expected.  

UPDATE: I "solved" the second problem, that the non-secure application fails to link: When importing the SDK example, the GUI provides the possibility to add a suffix to the project. If this is done, the non-secure application won't link. The reason is, that the application expects that the library generated by the secure project is named: lpcxpresso55s69_hello_world_s_CMSE_lib.o. This is not the case if a suffix was added to the project name. It then must be configured in non-secure Project Properties -> C/C++ Build -> Settings -> MCU Linker -> Miscellaneous -> Other Objects, then the project will link again (if the secure application was built before).

0 Kudos
1 Solution
1,040 Views
romlinux
Contributor II

I think I found the solution to this problem. You can put a jumper on J10, reset the board and perform mass erase from the flash tool. After the mass erase was successful, i was able to reset the board and flash bits as before. Please see https://community.nxp.com/thread/500164

Thanks.

View solution in original post

0 Kudos
4 Replies
1,040 Views
soledad
NXP Employee
NXP Employee

Hi, 

Please check the following threads for more information about these buttons:

https://community.nxp.com/thread/450310

https://community.nxp.com/thread/482052

https://dzone.com/articles/mcuxpresso-ide-terminate-and-disconnect-a-debug-session

Have a nice day!

Regards 

Sol 

1,040 Views
soledad
NXP Employee
NXP Employee

Hello Simon,

Could you please confirm, that this thread solves your issue? 

https://community.nxp.com/thread/500164

Regards 

Sol

0 Kudos
1,040 Views
simon_ott
Contributor I

Thank you for the replies. In general, I am now able to erase the flash with the tool by following the instructions in the linked thread, which is a step forward. However, it still fails regularly, so I have to repeat it 2-3 times until it works. It's the same with the debugging, sometimes it works, sometimes it does not. It always works after some tries without changing anything but just clicking the "Clean up Debug" and "Debug" buttons again.

The errors are either that it does not find a core or "Failed on connect: Ee(D0). Could not connect to server / No connection to chip's debug port".

In the MCUexpresso IDE, there are the classic eclipse "suspend", "terminate", "resume", etc. buttons and there are "suspend all", "terminate all", "resume all" additional buttons, that I do not know from other eclipse IDEs. Also there is the blue "Debug" button in the toolbar as well as a "Build" button in the toolbar, but those two buttons are also available in the "QickStart" Panel. Is there any difference between those buttons?

0 Kudos
1,041 Views
romlinux
Contributor II

I think I found the solution to this problem. You can put a jumper on J10, reset the board and perform mass erase from the flash tool. After the mass erase was successful, i was able to reset the board and flash bits as before. Please see https://community.nxp.com/thread/500164

Thanks.

0 Kudos