LPCScrypt not working

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

LPCScrypt not working

5,026 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
16 Replies

2,402 Views
jlrojas93
Contributor I

Any updates on this thread? I just got a similar issue with the latest version of LPCScrypt 2.1.2 on 64-bit Ubuntu 18.04.6 LTS. The LPCScrypt user guide specifically mentions:

Note
LPCScrypt for Linux is a 64-bit application, so it will not run on 32-bit systems.
It is supported and tested only on the Linux distribution Ubuntu 16.04 LTS and
18.04 LTS.

I am using a fresh LPCXpresso54102 board with JP5 installed. This configuration allows me to use program_JLINK or program_CMSIS without the "Resource temporarily unavailable" error message. When I reboot with the DFULink jumper open to flash the target LPC54102 instead of the embedded link2 programmer, the serial port shows up on lsusb and serializes as /dev/ttyACM0, but running lpcscrypt print manually, throws the "Resource temporarily unavailable" error. This is true regardless of the on-board LPC54102 MCU being in ISP mode or not. I've attached my terminal commands with their outputs.

0 Kudos

4,590 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

4,585 Views
converse
Senior Contributor V

“Nothing changed” - what about Windows updates?

0 Kudos

4,560 Views
brich
Contributor III

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

0 Kudos

4,968 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

4,901 Views
r_strassburg
Contributor I

Hi Sabina,

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

0 Kudos

4,864 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

4,853 Views
r_strassburg
Contributor I

2.1.1_15

0 Kudos

4,794 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

4,951 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

4,920 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

4,900 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

4,997 Views
converse
Senior Contributor V

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

4,979 Views
r_strassburg
Contributor I

No. That's why I asked for help.

0 Kudos

5,016 Views
converse
Senior Contributor V

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

5,012 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