Closed HenriqueMisson closed 1 year ago
@HenriqueMisson Try to use the flag -marm
(enables arm mode) or -mthumb
(enables thumb mode). Try to use the correct -mtune=cortex-m4
since you are using the stm32f4.
I inserted that into Makefile and also the path -Lhome/labvant/rmtld3synth/rtmlib/
and static library -llibrtml.a
. But now I have the error which says that RTML_reader.h
is not found ( RTML_reader.h: No such file or directory
). I suppose that this was caused due the ignoring nonexistent directory:
ignoring nonexistent directory "/opt/gcc-arm-none-eabi-4_9-2015q3/bin/../arm-none-eabi/usr/include"
ignoring nonexistent directory "home/labvant/workspace/provant-software_RV/VANT_2.0/io-board/stm32f4/base/FreeRTOSV7.5.2/FreeRTOS/Source/include"
ignoring nonexistent directory "home/labvant/rmtld3synth/rtmlib/arch/arm/include/"
ignoring nonexistent directory "home/labvant/rmtld3synth/rtmlib/"
I searched about this error, however, none could help me.
-L
is for searching libraries. You have to use -I
for the correct path of rtmlib.
I assume -I/home/labvant/rmtld3synth/rtmlib/
-I
will include headers.
Another issue is that you forgot the root /
in the path, and It's why is saying ignoring nonexistent directory
.
Edit: When you use -l
you should use the suffix of librtml.a
without considering the library extension .a
. The correct is -lrtml
.
I'm sorry, this it was my lack of attention.
Now, I need to adapt the the rtmlib to my FreeRTOS context, since the time_compat.h
, used by many headers, calls the <nuttx/clock.h>
. So due to this I could not finish the compilation.
Thank you Andre.
@HenriqueMisson Yes. time
and task
compatible files should be some you may have to change. Everything else should work well.
Version 0.4-alpha of rmtld3synth now includes support for rtmlib2, which in turn provides compatibility with FreeRTOS.
Hello,
I'm trying to integrate monitors using rtmlib in an embedded software based on FreeRTOS. I followed the steps written in the readme and I generated the folder "mon1" with the monitor and auxiliary functions.
I have changed the paths into Makefile in order to compile the mon1.cpp :
And when I type
make arm-mon
, I get this error:I don't know why it says "ignoring nonexistent directory" and after reported an error.
This step is to compile the monitor before integrating that into my software. For the software I compile that with only "make" command to generate an .elf executable.
The toolchain that I'm using is the "arm-none-eabi", and to debug my code I use the "arm-none-eabi-gdb".
Could you help me in this sense?
Thanks.