Memfault Issue on deviceOS 5.5.0/ tracker-edge

Hi there,

I am trying out the new asset OTA and having issues with compiling it locally using Particle Workbench.

Before I was using deviceOS 4.1.0.

Currently, my repo contains the tracker-edge v18 and deviceOS 5.5.0. I've cleaned my repo multiple times and compiled it, always with the following prompt:

c:/users/user1/.particle/toolchains/gcc-arm/10.2.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: ../../../build/target/user/platform-26-m/prtcl/\libuser.a(memfault.o): in function `memfault_platform_sanitize_address_range':
c:/Git/prtcl/lib/memfault/src/memfault.cpp:437: undefined reference to `_ram_start'
c:/users/user1/.particle/toolchains/gcc-arm/10.2.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/Git/prtcl/lib/memfault/src/memfault.cpp:437: undefined reference to `_ram_end'
collect2.exe: error: ld returned 1 exit status
make[3]: *** [../../../build/[module.mk:239](http://module.mk:239/): c:/Git/prtcl/target/5.5.0/tracker/prtcl.elf] Error 1
make[2]: *** [../build/[recurse.mk:12](http://recurse.mk:12/): modules/tracker/user-part] Error 2
make[1]: *** [C:\Users\user1\.particle\toolchains\buildscripts\1.15.0\Makefile:142: make-main] Error 2
make: *** [C:\Users\user1\.particle\toolchains\buildscripts\1.15.0\Makefile:87: compile-user] Error 2

The submodule memfault is checked out at release tag 1.1.2 (pulled on 06.10.2023 at 15:19 UTC+2).
The project.properties file contains the keyword assetOtaDir=assets.

Going back to deviceOS 4.1.0 throws no compilation error, which is why I believe it has to do something with the newest release 5.5.0.

I would appreciate any help on narrowing down this issue.

Thanks!

Hi Johannes,

Memfault should be excluded when targeting Device OS v5.x, unfortunately this is not present in Tracker Edge's v18 directory. This will be incorporated in an upcoming v19 release, but in the meantime you can work from develop to work around this.

Hope this helps!

2 Likes

Hi Manuel,

thanks, it does help as it compiles now. This information is very useful and could be worth adding to the Particle Docs Asset OTA page.

Have a great day!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.