- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried completely uninstalling and reinstalling (because I previously had the evaluation version) but it doesn't help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You didn't mention what processor you're using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PSoC3 CY8C3246LTI-125
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you install LIC (register your license) with administration rights ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, μVision License Management says "C51 Compiler/Assembler Kit" "Expires: Mar 2020"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you clean and then build your project ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please follow the steps mentioned here to get it working: LX51: ERROR L257: EXTENDED LINKER REQUIRES UPGRADE TO PK51
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So PSoC Creator is not compatible with CA51? It requires PK51? I thought the difference was that PK51 had more debugging features?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
μ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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steps to reproduce:
- Open original Music Creation example project in PSoC Creator 3.3.
- 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 %).))
- Install C51V959.exe to C:\Keil_v5
- Open Keil μVision → File → License Management → Single-User License → Enter LIC code
- It now says "C51 Compiler/Assembler Kit", and " Expires: Mar 2020"
- PSoC Creator: Tools → Options → Project Management → 8051 Toolchains → DP8051 Keil Generic
- Set it to C:\Keil_v5\C51\BIN
- Project → Build Settings
- Change to Generic Toolchain and set all settings to the same as 9.51.
- Build project, it doesn't work.
- 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'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok so PSoC Creator only uses LX51 and cannot use BL51? So it's not compatible with CA51, and we need PK51?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it cannot use BL51. You need to use PK51 license which has all memory support features (CX51/LX51).
Regards,
Dheeraj