cancel
Showing results for 
Search instead for 
Did you mean: 

How to build logicanalyser example M4 firmware?

Jin
Associate II

Hi,

not sure if I am missing something obvious here:

https://github.com/STMicroelectronics/logicanalyser

I cloned the sources and imported everything into CubeIDE, however it does not see any make targets, when I try to build how2eldb's main.c I get:

**** Build of configuration Debug for project how2eldb ****
 
 
Nothing to build for project how2eldb

I can build other M4 examples just fine, so it does not seem to be a general setup issue with my IDE. Any hints on how to proceed?

I am using STM32CubeIDE version 1.3.0 Build: 5720_20200220_1053 (UTC) on Linux with an STM32MP157A-EV1 board.

Kind regards,

Jin

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

​Hi @Jin​ 

Firmware library should not be "in" the logicanalyser folder but at same level :

MyWorkingFolder/

--- /logicanalyser

---/STM32Cube_FW_MP1_V1.1.0

I transfer your remark and concern internally in order we can improve it.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

6 REPLIES 6
Olivier GALLIEN
ST Employee

Hi @Jin​ 

Did you refer to example documentation below ?

https://wiki.st.com/stm32mpu/wiki/How_to_exchange_large_data_buffers_with_the_coprocessor_-_example

https://wiki.st.com/stm32mpu/wiki/How_to_exchange_large_data_buffers_with_the_coprocessor_-_principle

Hope it help

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Jin
Associate II

Hi Oliver,

> Did you refer to example documentation below ?

> https://wiki.st.com/stm32mpu/wiki/How_to_exchange_large_data_buffers_with_the_coprocessor_-_example

> https://wiki.st.com/stm32mpu/wiki/How_to_exchange_large_data_buffers_with_the_coprocessor_-_principle

>

> Hope it help

the above links were my starting point, however when I clone https://github.com/STMicroelectronics/logicanalyser and import it in CubeIDE - it won't compile out of the box. So I was wondering if I was missing something or if the repo is broken? Judging but the wiki I had the impression that these examples were not meant as pseudo-code, but should be fully functional.

Kind regards,

Jin

Olivier GALLIEN
ST Employee

​Hi @Jin​ 

This project is indeed full functionnal but so far only validated with SW4STM32.

Anyway conversion to STM32CubeIDE supposed to work smoothly.

I just did a test and I succeed to compile with STM32CubeIDE but instead of a basic "import" you should select "Import ac6 System Workbench for STM32 project"

in order to proceed to conversion.

Select project for M4 when prompt.

As it the project expect Firmware package library to be installed under same path as the logicanalyser folder.

Hope it help,

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Jin
Associate II

Hi @Community member​ ,

thank you for your response, this information would have been very helpful in the wiki...

I tried the import options which you suggested, got an "C/C++ indexing" error, but the project was imported afterwards.

However, I am still struggling to compile it, as simply copying the libraries into the logicanalyser folder does not make it work. I ended up addingg include paths for each library that I copied into the project, which turned out to be quite tedious and I am still not done.

How exactly did you get it going on a fresh installation?

Generally I wonder if it is a good idea to have an example that requires special knowledge on how to import and compile it, the wiki does not mention any of it and if you are just getting started it's not obvious at all. For instance, the example pack https://github.com/STMicroelectronics/STM32CubeMP1.git worked without any issues just as I expected, this in turn made me think that the logicanalyser example is broken (which judgnig by your answer turned out not to be true), so mentioning some steps either in the readme or in the wiki would really help.

Kind regards,

Jin

Olivier GALLIEN
ST Employee

​Hi @Jin​ 

Firmware library should not be "in" the logicanalyser folder but at same level :

MyWorkingFolder/

--- /logicanalyser

---/STM32Cube_FW_MP1_V1.1.0

I transfer your remark and concern internally in order we can improve it.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Jin
Associate II

Hi @Community member​ ,

> Firmware library should not be "in" the logicanalyser folder but at same level :

thank you for the details, I had to rename some paths as I am already using STM32Cube_FW_MP1_V1.2.0 but after some fiddling it finally worked.

> I transfer your remark and concern internally in order we can improve it.

Thanks, I think it would help everyone who tries to build this example. Of course it would be even better if the example would build out of the box like the others or perhaps it would make sense to simply move it to the https://github.com/STMicroelectronics/STM32CubeMP1.git repository?

Again, thanks for your help, the build works now.

Kind regards,

Jin