LPCScrypt not working

cancel
Showing results for 
Search instead for 
Did you mean: 

LPCScrypt not working

1,177 Views
r_strassburg
Contributor I

I'm trying to use program_JLINK to install JLink on my eval board for the LPC55S69 on Ubuntu 19.04. When I run the script, it hangs in the loop where it does lpcscrypt print 1234.

When I run lpcscrypt print 1234 by hand, it hangs up for a while, and then exits with the following message:

/usr/local/lpcscrypt/bin/lpcscrypt print
Error opening /dev/ttyUSB0: Resource temporarily unavailable
(Sometimes ISP reset, or erasing the flash, can help...)
Previous error(s) stops further processing
Error: <Command line>:0: Resource temporarily unavailable
Script cmd: batchmode 1
Last target cmd: =print 1940686103
Terminated with errors

Any ideas?

Thanks.

Roger Strassburg

Labels (1)
0 Kudos
15 Replies

742 Views
brich
Contributor III

I'm using lpcscrypt 2.1.1 on Windows 10.  What are the chances that this error is caused by anti-malware such as Sophos?  We're not sure, but we started observing this Q3 or Q4 of 2020.  As of right now, no one can get lpcscrypt to work on windows at our facility where it worked perfectly before.  Same hardware, nothing else has changed.  It is able to boot the device, but no commands work after that.  The driver also says this: "Device USB\VID_1FC9&PID_0083\NXP-77 requires further installation."

0 Kudos

737 Views
converse
Senior Contributor IV

“Nothing changed” - what about Windows updates?

0 Kudos

711 Views
brich
Contributor III

Yes, Windows updates have been performed.  That was going to be my next question.

0 Kudos

1,119 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hello Roger,

Hope you are doing well.

Could you please confirm if you are experiencing this issue only on Ubuntu? Are you able to run the script successfully on windows?

What version of the LPCScrypt are you using?

Also could you please try the steps in the last reply of the following post:

LPCScrypt not working on Ubuntu

Let me know your results.

Best Regards,

Sabina

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

----------------------------------------------------------------------------------------------------------------------- 

0 Kudos

1,052 Views
r_strassburg
Contributor I

Hi Sabina,

The suggested workaround didn't work for me. The USB

0 Kudos

1,015 Views
Sabina_Bruce
NXP Employee
NXP Employee

Could you please provide the version of the LPCScrypt that you are using. 

Best Regards,

Sabina

0 Kudos

1,004 Views
r_strassburg
Contributor I

2.1.1_15

0 Kudos

945 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hope you are well. I tried the installation fresh and I didn't have any problems programming with JLINK.

I am using ubuntu 16.04 64 bit OS. 

I used the standalone installation for linux and did the following:

sudo chmod +x lpcscrypt-2.1.1_15.x86_64.deb.bin

sudo ./lpcscrypt-2.1.1_15.x86_64.deb.bin

Then in the script folder I called the script needed and ran successfully. 

Best Regards,

Sabina

0 Kudos

1,102 Views
r_strassburg
Contributor I

Hi Sabina,

Thanks. I hope you're doing well, as well.

I've only tried this on Ubuntu, as I don't really have a Windows system to run it on. But a colleague of mine has been successfully running on Windows for some time.

Best regards,

Roger

0 Kudos

1,071 Views
Sabina_Bruce
NXP Employee
NXP Employee

Do the steps from the previous post, result positive for you?

"1. Run "./program_JLINK" from the script directory as described. It will hang. This is the main issue.

2. Use CTRL+C to break and return control back to the console.

3. Run "./lpcscrypt print 0x1234" from the bin directory

4. Once again, run "./program_JLINK" from the script directory. It will not hang this time and proceed to completion.

"

0 Kudos

1,051 Views
r_strassburg
Contributor I

Thanks for the suggestion. I tried this but it didn't work for me. The USB device it's looking for is there, though:

Bus 001 Device 064: ID 1fc9:000c NXP Semiconductors

Roger

0 Kudos

1,148 Views
converse
Senior Contributor IV

Sorry, I see you are programming the onboard lpc-link2 whic is supported.

So, does the provided script work to program the firmware image?

sorry, no other ideas.

0 Kudos

1,130 Views
r_strassburg
Contributor I

No. That's why I asked for help.

0 Kudos

1,167 Views
converse
Senior Contributor IV

According to the information for LPCScrypt:

LPCScrypt is a command-line based, fast flash, EEPROM, OTP and security programming tool for LPC1800 and LPC4300 series microcontrollers.

 

Having said that, have you checked the permissions on /dev/ttyUSB0 (or any other ports with similar names)

0 Kudos

1,163 Views
r_strassburg
Contributor I

Hi,

The permissions should be ok:

crw-rw-rw- 1 root dialout 188, 0 Sep 1 14:08 /dev/ttyUSB0

Also, I ran it under root, so there shouldn't be an issue with permissions.

Is there a different utility I should be using for the LPC55S69?

Thanks.

0 Kudos