Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > PSoC3 Small Memory Model

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



PSoC3 Small Memory Model
Moderator:
JFMD

Post Reply
Follow this topic



PSoC3 Small Memory Model

wholloway posted on 28 Jun 2011 8:08 AM PST
Senior Member
13 Forum Posts

The Keil documentation includes a

#pragma small

directive to allow small model code to be generated on a function or file scope.  If I put the directive in the file I get the following error:

ERROR:   :#pragma SMALL: PARSING INVOKE-/#PRAGMA-LINE RESPECIFIED OR CONFLICTING CONTROL

since the PSoC Creator command line has the LARGE directive.  Is there any way to remove the LARGE directive from the command line?

 




Re: PSoC3 Small Memory Model

me2 posted on 28 Jun 2011 10:20 AM PST
Senior Member
16 Forum Posts

Hi,

may be I am on the wrong track here but doesn't PSoC 3 use a memory model to address the SFRs that would not work with the small memory model of Keil? The default to LARGE has probably a good reason other than creating LARGEr code.

Bob



Re: PSoC3 Small Memory Model

mkea posted on 28 Jun 2011 01:49 PM PST
Cypress Employee
4 Forum Posts

You can use the Keil small memory model (and compact model and other 8051 features) with PSoC Creator, in a limited fashion.  Please see AN60360 for details.



Re: PSoC3 Small Memory Model

wholloway posted on 28 Jun 2011 02:37 PM PST
Senior Member
13 Forum Posts

Thanks for the response.  Application note is actually AN60630, PSoC3 8051 Code Optimization.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20