Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > Inline assembly for PSoC5

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



Inline assembly for PSoC5
Moderator:
JFMD

Post Reply
Follow this topic



Inline assembly for PSoC5

GIL posted on 22 Feb 2012 1:40 PM PST
Member
10 Forum Posts

Hi,

question is in the subject: is it possible write inline assembly for PSoC5? For PSoC3 is possible; there are several post about and it appears in documentation. But I found nothing about PSoC5

Thanks




Re: Inline assembly for PSoC5

Bob Marlowe posted on 22 Feb 2012 01:48 PM PST
Top Contributor
1768 Forum Posts

The assembly for an ARM Cortex is so complicated, that everybody says : Hands off.

The fact is, it is a 3-address assembler with the opportunity to modify the third operand before its usage.

Have a look at the ARM website and get your shivers.

 

Bob



Re: Inline assembly for PSoC5

H L posted on 22 Feb 2012 07:09 PM PST
Top Contributor
679 Forum Posts

I tried but it is just too time consuming. May do it if really have to. however, I still prefer to use C unless needed to :-)



Re: Inline assembly for PSoC5

yfs posted on 23 Feb 2012 09:06 AM PST
Cypress Employee
77 Forum Posts

I'm not recommending ASM development either but it is perfectly possible. There is nothing more difficult about it on an ARM processor as opposed to a 8-bitter, imho, but C compiles so efficiently on ARM that it seems a pain I can live without. Anyway, since I do plenty of things that are bad for me I'll tell you how and then leave it to your own conscience!

The procedure is simple enough.

  1. Open the Workspace Explorer and right-click on the "Source Files" folder.
  2. Select "New Item..." to open the dialog.
  3. Choose either "GNU ARM Assembly File" or "RealView ARM Assembly File" and give your file a name.
  4. Write ASM code, build, curse, fix ASM code, build, curse, cry, give up, etc

One thing to note is that the choice in step 3 depends on the compiler (which defines the assembler) you are going to use. GNU ASM is not compatible with RealView or MDK ASM. So check that before you take the plunge.

Good luck and enjoy yourself!

-- Mark.




Re: Inline assembly for PSoC5

GIL posted on 28 Feb 2012 11:20 AM PST
Member
10 Forum Posts

I imagined these answers. Sometimes customers do "strange" questions

I asked to this customer why this but I've not answer yet. But I've couriosity.

Thanks 






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: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20