Skip to main content

SmartSnippets Studio-empty project

10 months ago

SmartSnippets Studio-empty project

Posted byadam.stroz35 points 8 replies
0 upvotes

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 ?

accepted answer!

10 months ago

PM_Dialog

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

10 months ago

adam.stroz 35 points

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óż

accepted answer!

10 months ago

PM_Dialog

Hi Adam,

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

Thanks, PM_Dialog

accepted answer!

9 months ago

PM_Dialog

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 Size
Eclipse.zip 16.59 KB

9 months ago

adam.stroz 35 points

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 haveempty_peripheral_template项目。我应该写自己的代码在哪里in this case ? Should I delete code in main function loop inarch_main.c?

Best regards, Adam Stróż

accepted answer!

9 months ago

PM_Dialog

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 withapp_)

Thanks, PM_Dialog

9 months ago

adam.stroz 35 points

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óż


           
          
accepted answer!

9 months ago

PM_Dialog

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