SmartSnippets Studio-empty project

Learn MoreFAQsTutorials

9 posts / 0 new
Last post
adam.stroz
Offline
Last seen: 1 week 5 days ago
Joined: 2020-05-22 07:54
SmartSnippets Studio-empty project

Hello,

I have DA14531-00FXDEVKT-U. I look for information about creating a new project in SmartSnippets Studio. In SDK i found only "prox_reporter" project ( this project works fine). I want to create a empty template for DA14531. Can you give me information on how to do this ?

Device: 
PM_Dialog
Offline
Last seen: 2 days 6 hours ago
Staff
Joined: 2018-02-08 11:03
Hi adam.stroz,

Hi adam.stroz,

Thanks for your question online and apologies for my late response.

Unfortunately, there are not any guidelines on how to create an empty Eclipse template.  My recommendation would be to take the prox_reporter as a reference and start porting the empty peripheral template example of the SDK. Modifications should be down in Eclipse\.cproject and Eclipse\.project files.

However, let me check it is we could provide any further details on that.

Thanks, PM_Dialog

adam.stroz
Offline
Last seen: 1 week 5 days ago
Joined: 2020-05-22 07:54
Thank for your reply.

Thank for your reply.

Can you  give me a step by step instruction ? Maybe  should i create my own code in prox_reporter project ?  

 

It is important to me, to have a tamplate to create projects in my company. 

Best regards, Adam Stróż 

PM_Dialog
Offline
Last seen: 2 days 6 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Adam,

Hi Adam,

Let me check it and I'll revert back to you shortly.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen: 2 days 6 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Adam,

Hi Adam,

We have created a template Eclipse project -  see attached. It is based on the empty peripheral template example of the SDK

  1. Make sure that you are using SDK6.0.14
  2. Download the Eclipse folder from the attachments, unzip it and put it into empty_peripheral_template project. In that depth : 6.0.14.1114\projects\target_apps\template\empty_peripheral_template
  3. Then, a small last change is required to the empty peripheral template source. In the file user_callback_config.h, replace the app_process_catch_rest_cb definition with the following:
#if defined ( __CC_ARM )
   static const catch_rest_event_func_t app_process_catch_rest_cb = NULL;
#elif defined ( __GNUC__ )
   #define app_process_catch_rest_cb   ((const catch_rest_event_func_t)NULL)
#endif

In case you want to create your own project, please diff the Eclipse\.cproject and Eclipse\.project files. from pxp_reporter and empty_peripheral_template.

Thanks, PM_Dialog

Attachment: 
adam.stroz
Offline
Last seen: 1 week 5 days ago
Joined: 2020-05-22 07:54
Thank for your reply. 

Thank for your reply. 

 I’m really grateful for your help. I done all steps that you wrote and everything works fine.

I have two small question yet, 

what do you mean by "please diff the Eclipse..." should i create empty projects and add this files ? 

I have empty_peripheral_template project. Where i should write my own code in this case ? Should I delete code in main function loop in arch_main.c

Best regards, Adam Stróż 

PM_Dialog
Offline
Last seen: 2 days 6 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Adam,

Hi Adam,

My apologies  - probably I didn’t write it very clear.  As mentioned in my previous comments, all the modifications should be done are in the Eclipse\.cproject and Eclipse\.project files. So, if you need to create an Eclipse project by your own or port any other SDK example, you could compare the Eclipse files from the pxp_reporter and empty_peripheral_template with a diff tool and check how to do it.

Regarding your last question, you should not modify the arch_main.c. This is SDK file – we strongly recommend to not modify any of the SDK files. All the implementation should be developed in the Application files (files that start with app_ )

Thanks, PM_Dialog

adam.stroz
Offline
Last seen: 1 week 5 days ago
Joined: 2020-05-22 07:54
Thank for your reply. 

Thank for your reply. 

At this moment i know all that i need, you helped me a lot.

If I have any questions, I'll ask you.

Best regards, Adam Stróż 

 

  
PM_Dialog
Offline
Last seen: 2 days 6 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Adam,

Hi Adam,

Please feel free to raise any other question on our public BLE forums. If you found any answer useful, please mark it as “accepted” for the other community!

Thanks, PM_Dialog