olliw42 / mLRS

2.4 GHz & 915/868 MHz & 433 MHz/70 cm LoRa based telemetry and radio link for remote controlled vehicles
GNU General Public License v3.0
344 stars 78 forks source link

Engineering STM32CubeIDE 1.8.0 not smooth #2

Closed whqsz closed 2 years ago

whqsz commented 2 years ago

Hello author, let us see hope on LORA mavlink. This open source project has been paying attention since last year. Recently, I found that there has been a major update on the progress. I will promote it in the hobby circle as soon as possible. Unfortunately, we strictly followed the Installation Bits and Bops steps and added the project to STM32CubeIDE 1.8.0. The project compilation was not smooth, and most of us did not understand how this IDE target works. So ask for help! This is an image

olliw42 commented 2 years ago

it seems you have not aimed at using the existing project, but to recreate it yourself from scratch

there is nothing bad about it, only that it requires that quite some many steps need to be done, in correct order, and correctly

could you try to use the provided project? In the other issue it was correctly noted that it is full of hardcoded folder names, but maybe we can work out something together, to get this toolchain working also for others.

btw, the documentation is really currently near zero, so pl never assume that such a thing like the "bit and bops" will work by just following the steps. The project is unfortunately not even near such a stage there even docu would be good. Still way too young. I kindly beg for your pardon and understanding.

All this would be areas where user inputs and help and community interaction would be very much appreciated. I am currently really completely occupied with advancing the code to a first v0.1 version.

as regards the error message specifically, it seems that the definition of main_main() is missing. STM32CubeIDE has the bad behavior that even when you choose C++ it creates a main.c. So, what you probably need to do is to just delete main.c and use the projects main.cpp.

Sorry for these troubles

olliw42 commented 2 years ago

deleted since invalid

olliw42 commented 2 years ago

@whqsz

I think the solution is simple: you need to change from Debug to Release

you can do that with the 4th icon in the top icons menu

when you do so you will notice that the three folders Common, CommonRx, modules in the Project Explorer on the left will move to the up. the problem is that these files are not marked as linked for the Debug configuration and so not found by the compiler

hope that helps

olliw42 commented 2 years ago

@whqsz sorry, me again, I have improved the setup procedure, and also updated the description accordingly. Would be interested to know how it goes for you.

olliw42 commented 2 years ago

hey @Lance0724 has tested the improved setup procedure and found it to work, see https://github.com/olliw42/mLRS/issues/1. so I assume it also will for you and hence close this issue please do not hesitate to reopen the issue if you feel it needs more attention, or raise a new issue in case of ongoing issues many thx