LPCScrypt not working

cancel
Showing results for 
Search instead for 
Did you mean: 

LPCScrypt not working

332 Views
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
12 Replies

274 Views
NXP TechSupport
NXP TechSupport

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

207 Views
Contributor I

Hi Sabina,

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

0 Kudos

170 Views
NXP TechSupport
NXP TechSupport

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

Best Regards,

Sabina

0 Kudos

159 Views
Contributor I

2.1.1_15

0 Kudos

100 Views
NXP TechSupport
NXP TechSupport

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

257 Views
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

226 Views
NXP TechSupport
NXP TechSupport

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

206 Views
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

303 Views
Senior Contributor III

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

285 Views
Contributor I

No. That's why I asked for help.

0 Kudos

322 Views
Senior Contributor III

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

318 Views
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