cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ahmed_alfadhel
Explorer
Explorer
808 Views
Registered: ‎10-16-2018

Writing My own code in XSDK

Jump to solution

Hi ,

I attached a copy of my design . 

I exported the design to XSDK. Then created a new project with Peripheral Tests Template.

The question is : where I have to add my own code , does it in testperiph.c  or in main.c ?

Thanks in advance

design_updated.JPG
src_code.JPG
0 Kudos
1 Solution

Accepted Solutions
jribeiro_mog
Contributor
Contributor
796 Views
Registered: ‎11-19-2018

Hi, 

you need to add your code in testperiph.c file, as it is in the application project that you will be able to run in the board.

The main.c you highlighted is part of an example generated alongside the files describing the hardware you implemented (hw_platform) and is an example of the main file could look like.

Best regards

View solution in original post

1 Reply
jribeiro_mog
Contributor
Contributor
797 Views
Registered: ‎11-19-2018

Hi, 

you need to add your code in testperiph.c file, as it is in the application project that you will be able to run in the board.

The main.c you highlighted is part of an example generated alongside the files describing the hardware you implemented (hw_platform) and is an example of the main file could look like.

Best regards

View solution in original post