Lora-net / LoRaMac-node

Reference implementation and documentation of a LoRa network node.
Other
1.88k stars 1.09k forks source link

How to import this source in atollic studio #689

Closed nageshdivatagi closed 5 years ago

nageshdivatagi commented 5 years ago

I am beginner of this how to import this source in atollic studio or else can provide atollic true studio source code

trick2011 commented 5 years ago

I have no idea myself but compilation of the code can be achieved by following the following instructions: https://github.com/Lora-net/LoRaMac-node/blob/develop/Doc/development-environment.md. By setting it up this way you might get to understand how to convert it into a atollic studio project. You are of course free to add these instructions to the documentation afterwards

mirzafahad commented 5 years ago

I have imported the previous project (early in 2018) to atollic truestudio. Couple of things to follow. 1) Create a dummy project with right mcu using STM32CubeMx. CubeMx has TrueStudio support. 2) Update "Include". 3) Update "Source". 4) Filter unnecessary files in the "Source". 5) Add a pre-processor for the region you are interested in.

mluis1 commented 5 years ago

Can we close this issue?

nageshdivatagi commented 5 years ago

Have you tried this source?

On Thu, 18 Apr, 2019, 1:06 PM Miguel Luis, notifications@github.com wrote:

Can we close this issue?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Lora-net/LoRaMac-node/issues/689#issuecomment-484390327, or mute the thread https://github.com/notifications/unsubscribe-auth/ACXE3QX54Q7U5FEOBNR4YJDPRAQILANCNFSM4G3DDZRA .

mluis1 commented 5 years ago

What do you mean?

There is nothing that we can do for you.

Have you tried the tips provided by @trick2011 and @fahad80 ?

SuadM5 commented 5 years ago

I have imported the previous project (early in 2018) to atollic truestudio. Couple of things to follow.

  1. Create a dummy project with right mcu using STM32CubeMx. CubeMx has TrueStudio support.
  2. Update "Include".
  3. Update "Source".
  4. Filter unnecessary files in the "Source".
  5. Add a pre-processor for the region you are interested in.

Hi @fahad80,

I am in the same situation. I can't figure out the CMake or how to set it up and I have TrueStudio and STM32CubeMx already set up.

Can you be more specific please. Do you mean that I should copy all the .h files in the LoRaMAC code to Inc, and all the .c ones to Src? But then How can I actually link it to my main with the right hardware setup?

I have tried using I-cube-lrwan and the generated CubeMx files where I copied one of the examples' main.c file to try and implement my project. But I got a lot of errors and I read that this is not really an option as the i-cube-lrwan is not made to be used as a middleware.

Now I'm trying to use the files in this repository and I am really lost.

Is there a video or something online on how to setup the environment?

PS I am using RF_LORA_SO which has SX1272 transceiver and an STM32L072CZ MCU.

Thanks,

selimsagir commented 5 years ago

I have imported the previous project (early in 2018) to atollic truestudio. Couple of things to follow.

  1. Create a dummy project with right mcu using STM32CubeMx. CubeMx has TrueStudio support.
  2. Update "Include".
  3. Update "Source".
  4. Filter unnecessary files in the "Source".
  5. Add a pre-processor for the region you are interested in.

Did you changed Drivers files with source codes?

mirzafahad commented 5 years ago

@SuadM5 I prepared an Atollic TrueStudio project using the latest I-CUBE-LRWAN (1.2.1), STM32L072 and SX1272. https://github.com/fahad80/ICubeLorawan_TrueStudio

I converted an End Node example.

N.B. I-Cube-Lrwan has examples for 'System Workbench for STM32'. TrueStudio and SW4ST both are based on eclipse. So, you can give that a try.

@selimsagir Yes I changed it to whatever i was using. I-CUBE-LRWAN has a broad range of examples for their different nucleo boards. Switching between same series mcu should be pretty straight forward (e.g. one of the example is for stm32l053. If you use any stm32l0xx it should be trivial).

SuadM5 commented 5 years ago

@fahad80 Thanks a lot, I will give it a go.

selimsagir commented 5 years ago

@SuadM5 I prepared an Atollic TrueStudio project using the latest I-CUBE-LRWAN (1.2.1), STM32L072 and SX1272. https://github.com/fahad80/ICubeLorawan_TrueStudio

I converted an End Node example.

N.B. I-Cube-Lrwan has examples for 'System Workbench for STM32'. TrueStudio and SW4ST both are based on eclipse. So, you can give that a try.

Do you have a project with LoRaMac-node and CubeMX? By the way, thanks for your answer.

mirzafahad commented 5 years ago

@selimsagir The repo I shared uses CubeMX hardware library. I-Cube-Lrwan actually uses LoRaMac-node. And then they put their own layer on top of that.

nageshdivatagi commented 5 years ago

thank you so much sir..

On Fri, Apr 26, 2019 at 12:32 PM Fahad Mirza notifications@github.com wrote:

@selimsagir https://github.com/selimsagir Didn't understand your question. The repo I shared uses CubeMX hardware library. But what do you mean by LoRaMac-node?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Lora-net/LoRaMac-node/issues/689#issuecomment-486949596, or mute the thread https://github.com/notifications/unsubscribe-auth/ACXE3QXMFUKSOHIWCPD2VYLPSKSGRANCNFSM4G3DDZRA .

-- Thanks & Regards, Nagesh Divatagi Software Developer EmailId :nagesh.divatagi@gmail.com nagesh.divatagi@gmail.com Mobile No:+919741255795

selimsagir commented 5 years ago

@fahad80 Oh, i see. Thanks for your information. I have edited your example according to my kit which is B-L072Z-LRWAN1. I am trying to make an example with an LCD and GPS. So, can I make it done with your repo?

mirzafahad commented 5 years ago

@selimsagir I believe you can. For example, if you use Ublox GPS M8, they have UART interface. Just use UART library from CubeMx. I have done that.

selimsagir commented 5 years ago

@fahad80 Thanks for your replies. I will try that, i hope i can :)