cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

JoBr_1593366
Contributor II

We paid for the professional compiler CA51-LC-ND and I put the path

C:\Keil_v5\C51\BIN

in PSoC Creator 4.2's Options → Project Management → 8051 Toolchains

I set the Build Settings to DP8051 Keil Generic.

When I try to build a project I get the error message

*** ERROR L257: UNKNOWN

The command 'LX51.exe' failed with exit code '3'.

What does that mean?

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator

When I went through the features of the CA51 compiler here (8051 Product Selector),  I observed that it doesn't have support for CX51/LX51 which offers the extended memory support features which are required by PSoC Creator. So, looks like it isn't compatible and hence the error.

Regards,

Dheeraj

View solution in original post

0 Likes
17 Replies
JoBr_1593366
Contributor II

Actually there's more to the error:

******************************************************************************

* RESTRICTED VERSION WITH 0800H BYTE CODE SIZE LIMIT; USED: 03A8H BYTE (45%) *

******************************************************************************

Program Size: data=68.4 xdata=1019 const=504 code=15230

*** ERROR L257: UNKNOWN

The command 'LX51.exe' failed with exit code '3'.

I don't believe there are any code size limitations on the CA51 compiler?  Also, is this message saying that we're using 0x03A8 = 936 bytes, while the limit is 0x0800 = 2048 bytes?  So it's under the limit?

0 Likes
JoBr_1593366
Contributor II

I tried completely uninstalling and reinstalling (because I previously had the evaluation version) but it doesn't help.

0 Likes
LiDo_2439176
Contributor II

You didn't mention what processor you're using.

JoBr_1593366
Contributor II

PSoC3 CY8C3246LTI-125

0 Likes
LiDo_2439176
Contributor II

Did you install LIC (register your license) with administration rights ?

0 Likes
JoBr_1593366
Contributor II

Yes, μVision License Management says "C51 Compiler/Assembler Kit" "Expires: Mar 2020"

0 Likes
LiDo_2439176
Contributor II

Did you clean and then build your project ?

0 Likes
JoBr_1593366
Contributor II

Yes

0 Likes
DheerajK_81
Moderator
Moderator

Please follow the steps mentioned here to get it working: LX51: ERROR L257: EXTENDED LINKER REQUIRES UPGRADE TO PK51

Regards,

Dheeraj

0 Likes
JoBr_1593366
Contributor II

So PSoC Creator is not compatible with CA51?  It requires PK51?  I thought the difference was that PK51 had more debugging features? 

0 Likes
DheerajK_81
Moderator
Moderator

No, PSoC Creator should be compatible with both CA51 as well as PK51 if they have the same features. Please check if you have registered the license number which you received when you purchased the compiler and not the free PK51 license given by Cypress.

Regards,

Dheeraj

0 Likes
JoBr_1593366
Contributor II

μVision License Management says "C51 Compiler/Assembler Kit" "Expires: Mar 2020" if that's what you mean, and the PSoC Creator Build Settings is set to DP8051 Keil Generic.

0 Likes
JoBr_1593366
Contributor II

Do you have any advice on how to troubleshoot this?  Is ERROR L257: UNKNOWN

the same as

L257: EXTENDED LINKER REQUIRES UPGRADE TO PK51? 

So PSoC Creator is trying to use an extended linker?  Is there a way to turn that off?

0 Likes
JoBr_1593366
Contributor II

Steps to reproduce:

  1. Open original Music Creation example project in PSoC Creator 3.3.
  2. Build the project using free compiler 9.51 and it works fine.  (Flash used: 64256 of 65536 bytes (98.0 %). SRAM used: 6373 of 8192 bytes (77.8 %).))
  3. Install C51V959.exe to C:\Keil_v5
  4. Open Keil μVision → File → License Management → Single-User License → Enter LIC code
  5. It now says "C51 Compiler/Assembler Kit", and " Expires: Mar 2020"
  6. PSoC Creator: Tools → Options → Project Management → 8051 Toolchains → DP8051 Keil Generic
  7. Set it to C:\Keil_v5\C51\BIN
  8. Project → Build Settings
  9. Change to Generic Toolchain and set all settings to the same as 9.51.
  10. Build project, it doesn't work.
  11. Try changing increasing optimization level, turning off Linker Code Packing, Debug vs Release, etc., it still doesn't work:

******************************************************************************

* RESTRICTED VERSION WITH 0800H BYTE CODE SIZE LIMIT; USED: 5D7EH BYTE (1168%) *

******************************************************************************

Program Size: data=62.7 xdata=6369 const=2616 code=51801

*** ERROR L257: UNKNOWN

The command 'LX51.exe' failed with exit code '3'.

0 Likes
DheerajK_81
Moderator
Moderator

When I went through the features of the CA51 compiler here (8051 Product Selector),  I observed that it doesn't have support for CX51/LX51 which offers the extended memory support features which are required by PSoC Creator. So, looks like it isn't compatible and hence the error.

Regards,

Dheeraj

View solution in original post

0 Likes
JoBr_1593366
Contributor II

Ok so PSoC Creator only uses LX51 and cannot use BL51?  So it's not compatible with CA51, and we need PK51?

0 Likes
DheerajK_81
Moderator
Moderator

Yes, it cannot use BL51. You need to use PK51 license which has all memory support features (CX51/LX51).

Regards,

Dheeraj