cancel
Showing results for 
Search instead for 
Did you mean: 

Use FP-ATR-LORA1 on B-L072Z-LRWAN1 without Accelerometer

martian_first
Associate II

I am trying to read GNSS data using B-L072Z-LRWAN1 and GPS module. I installed FP-ATR-LORA1 and 
wrote the project to my B-L072Z-LRWAN1 and viewed it with Teraterm, the following error message appeared.
"Accelerometer NOT initialized"
I don't use an accelerometer. I just want to use GPS module. How can I rewrite the code to prevent the above error message from appearing?

1 REPLY 1
Andrew Neil
Super User

Search the source code for the text "Accelerometer NOT initialized" - most likely, that will appear at the point where it tries to initialise the accelerometer.

Disable that.

You will also have to disable where it attempts to read the accelerometer.

 

PS:

Or perhaps it might be simpler to just use X-CUBE-GNSS1 and I-CUBE-LRWAN ?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.