Help sharing variables between C and Assembly.

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

cross mob
Anonymous
Not applicable
    
     

I'm trying to update the software for a firmware chipset, and I'm having trouble understanding how variables are passed between C and assembly. When I try to compile, I get these errors:

     

https://gist.github.com/anonymous/d79f8f9734865a3ec1fe

     

These variables are defined in global.h here:

     

https://gist.github.com/anonymous/d81de7895838eaa41361

     

Also, lib/timer8_1int.asm is pretty short, so here it is:

     

https://gist.github.com/anonymous/848875129e7cf16e110f

     

Thank you for your time.

     

I'm using PSoC Designer 5.4 to write and compile this code, if that helps anyone.

    
   
0 Likes
3 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Maybe its better to post thios question in the PSoC1 forums. In the PSoC5 world assembler is rarely used...

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

You are here in the PSoC5 forum, Designer 5.4 is for PSoC1 only.

   

In Designer -> help - > Documentation you find a C- manual and an Assembler manual. There you find the informations on how to interface both worlds.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thank you all for the replies. I will be cross-posting this to the PSoC1 forums.

0 Likes