How to add an assembler source file to a PSoC5 project?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
WoKi_264666
Level 3
Level 3
First like received

 Hello,

   

I want to use the CMSIS- DSP 4.3.0 to do a FFT on a PSoC5.

   

The source includes the arm_bitreversal2.S file. What are the steps to embed the file correctly in my project??

   

Best regards, Wolfgang Kiefer

0 Likes
6 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Make a copy of the file in the project folder.

   

Right click in Creator's workspace window on "Source Files" and select add exising item, then select the copy. The file will get included as part of the project.

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
WoKi_264666
Level 3
Level 3
First like received

 Thank you, Bob!

   

So far so good. But when I compile the project I get a linker error. It seems that the file isn't really included in the compiler process...

   

I have attached the file arm_bitreversal.S

   

Thanks for help. 

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Odd! The added file does not get included. When I force the file to get included into the project, the assembler complains about various errors (19!).

   

An easy test for a file included is to right-click on its name in the workspace window and select "Compile". If that is grayed out, the file was not recocnized as a source file, but is kept with the project.

   

To force your .s-file to get compiled I added a new file and copied the original contents into it.

   

Have you got other .s-files to test with?

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
WoKi_264666
Level 3
Level 3
First like received

 Hi Bob,

   

the problem was the incompatible syntax of the CMSIS assembler file. I have looked at  other existing and corrct compiled .S - files  (CyBootAsmGnu.s) in the project and fitted the syntax from this example. 

   

Have a look at the attached file. It's a new version for PSoC5. Now it compiles and links without syntactical errors.

   

Where can I find a tutorial for Assembler syntax of the PSoC Creator ??

   

Problem is solved.- Thank you!

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Creator

   

Help

   

Documentation

   

GCC Documentation

   

GNU Assembler

   

 

   

Regards, Dana.

0 Likes
RaAl_264636
Level 6
Level 6
50 sign-ins 25 sign-ins 10 solutions authored

Hello,

   

 

   

having had the same problem, my 'workaround' is here.

   

 

   

Regards,

   

 

   

Ralf

0 Likes