You are here

Keil C51 compiler and PSoC 3 | Cypress Semiconductors

Keil C51 compiler and PSoC 3

Summary: 19 Replies, Latest post by Nick_Danger on 13 Aug 2014 11:14 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
rtcy's picture
Cypress Employee
112 posts

In case somebody does not know, PSoC 3 is based on a C51 core that runs in single cycle execution up to 67 MHz. That is a CPU performance of 67x compared to the original 80C51 running at 12 MHz with 12 cycles / intruction. 

Just for reference, PSoC 5 is based on a Cortex-M3

No device is good without supporting tools that create excellent code. Cypress has teamed up with Keil to provide the best 80C51 C-compiler with the most powerful chip with the 80C51 core on the market. Price for the tool?  IT IS FREE!

You can download PSoC Creator including the Keil C51 compiler from the Cypress website.

You might wonder if there are any restrictions for the compiler and the answer is "Yes"

Yeah, now comes the catch. Well, you can only use this implementation with Cypress PSoC 3 devices and the version is 8.16. The IDE is Creator, not uVision because Creator is what you need to create your own chip.

Hope you like tha fact that you get development tools worth thousands of $$ for free!

If you have any questions about Cypress and Keil, feel free to ask right here in the forum.

Have fun exploring the incredible possibilities that PSoC 3 offers with Creator and the Keil C51 compiler

Cheers, Robert

More information about Keil and PSoC

Keil compiler registration

Keil compiler licensing if one is already installed

Limit of optimization in the free Keil compiler

Azlan's picture
User
12 posts

 uVision allows setting the code editor font and size where creator does not.

marshg1's picture
User
6 posts

The free C51 that comes with PSoC Creator does do some optimization, but it wasn't adequate enough for us so we went ahead and purchased the Keil CA51.  Here is the version that we downloaded from the Keil web page:  C51 V9.51a.  It installs uVision 4.  How do you get PSoC creator to use the C51 compiler in uVision?

yfs
yfs's picture
Cypress Employee
102 posts

You can select the compiler from the Project->Build Settings dialog. Pick "DP8051 Keil Generic" from the Toolchain pull-down. Note that you need to do this in every project (a feature to choose your default compiler is on the works).

 

Depending upon where you installed the compiler, you may also need to tell the tool where to find it. In the Tools->Options dialog. Under Project Management / Generic Toolchains add the full path to the compiler.

 

Happy compiling!

Mark.

 

yfs
yfs's picture
Cypress Employee
102 posts

Here is the image I managed to fail to add to the last post!

 

Learn's picture
User
2 posts

 I just get Keil license and download and installed the latest version c51v952.exe.

In the PSoc Creator, Tools\Option\Generic Toolchains I put C:\Keil\C51\BIN in DP8051Keil Generic.

But I cannot find C:\Keil\ARM\ARMCC\BIN in my C:\Keil folder

What should I put in ARM MDK Generic ?

user_14586677's picture
User
7646 posts

In my installation these paths all empty, looks like a default is in effect.

 

That being said I would think entry should be, based on my distribution, C:\Keil\ARM\BIN

 

Regards, Dana.

user_14586677's picture
User
7646 posts

Something about his post does not look right, given this is PSOC 3, which

is not ARM, you might contact author and ask for clarification.

 

Regards, Dana.

user_14586677's picture
User
7646 posts

Or contact Robert, thread originator, rtcy@cypress.com, and ask he pass

onto yfs, Mark, include the thread link and ask Mark why he was parametizing

ARM build settings on a PSOC 3.

 

Regards, Dana.

user_39759791's picture
User
357 posts

You will get the C:\Keil\ARM\ARMCC\BIN in your C:\Keil folder when you install the MDK-ARM Microcontroller Development Kit. You could buy a licence or download the lite version.

In the mean time just leave it as it was by default.

Learn's picture
User
2 posts

 Since my installed folder Keil do not have ARM sub-folder so that I leave this path not selected.

When I compile Creator sample project :Music_Creation, It generate 151 errors: something like:

 L127: UNRESOLVED EXTERNAL SYMBOL SYMBOL: _iAP2_SendPacket

 

How can I resolve these errors? 

Log in to post new comments.