-
1. Re: Build error: ERROR: L257: UNKNOWN
JoBr_1593366 Mar 7, 2019 2:15 PM (in response to JoBr_1593366)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?
-
2. Re: Build error: ERROR: L257: UNKNOWN
JoBr_1593366 Mar 7, 2019 2:00 PM (in response to JoBr_1593366)I tried completely uninstalling and reinstalling (because I previously had the evaluation version) but it doesn't help.
-
3. Re: Build error: ERROR: L257: UNKNOWN
LiDo_2439176 Mar 7, 2019 11:47 PM (in response to JoBr_1593366)You didn't mention what processor you're using.
-
4. Re: Build error: ERROR: L257: UNKNOWN
JoBr_1593366 Mar 8, 2019 6:24 AM (in response to LiDo_2439176)PSoC3 CY8C3246LTI-125
-
5. Re: Build error: ERROR: L257: UNKNOWN
LiDo_2439176 Mar 8, 2019 10:51 AM (in response to JoBr_1593366)Did you install LIC (register your license) with administration rights ?
-
6. Re: Build error: ERROR: L257: UNKNOWN
JoBr_1593366 Mar 8, 2019 11:36 AM (in response to LiDo_2439176)Yes, μVision License Management says "C51 Compiler/Assembler Kit" "Expires: Mar 2020"
-
7. Re: Build error: ERROR: L257: UNKNOWN
LiDo_2439176 Mar 9, 2019 12:42 AM (in response to JoBr_1593366)Did you clean and then build your project ?
-
8. Re: Build error: ERROR: L257: UNKNOWN
JoBr_1593366 Mar 11, 2019 6:46 AM (in response to LiDo_2439176)Yes
-
9. Re: Build error: ERROR: L257: UNKNOWN
DheerajK_81Mar 11, 2019 7:42 AM (in response to JoBr_1593366)
Please follow the steps mentioned here to get it working: LX51: ERROR L257: EXTENDED LINKER REQUIRES UPGRADE TO PK51
Regards,
Dheeraj
-
10. Re: Build error: ERROR: L257: UNKNOWN
JoBr_1593366 Mar 11, 2019 8:05 AM (in response to DheerajK_81)So PSoC Creator is not compatible with CA51? It requires PK51? I thought the difference was that PK51 had more debugging features?
-
11. Re: Build error: ERROR: L257: UNKNOWN
DheerajK_81Mar 14, 2019 9:23 AM (in response to JoBr_1593366)
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
-
12. Re: Build error: ERROR: L257: UNKNOWN
JoBr_1593366 Mar 12, 2019 6:58 AM (in response to DheerajK_81)μ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.
-
13. Re: Build error: ERROR: L257: UNKNOWN
JoBr_1593366 Mar 12, 2019 7:06 AM (in response to DheerajK_81)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?
-
14. Re: Build error: ERROR: L257: UNKNOWN
JoBr_1593366 Mar 13, 2019 2:11 PM (in response to DheerajK_81)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'.