Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Memory Error Lora_Device with BME280
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Memory Error Lora_Device with BME280

by lawrence01073 on Sat Jun 13, 2020 9:23 am

Thank You again for your reply. I guess I will bite the bullet and buy a LoRa board that has more memory since I would like to learn more about IoT. I must admit that I have learned a lot from this experience and I do like Adafruit boards.
Art

lawrence01073
 
Posts: 15
Joined: Thu Jul 04, 2013 2:53 pm

Re: Memory Error Lora_Device with BME280

by jerryn on Sat Jun 13, 2020 11:03 am

There are no "one-piece" boards with LoRA and a larger MCU -- I use the LoRA FeatherWing and Breakout boards with several of the more powerful MCUs (M4, nRF52840, STM32F405] many choices.
Good luck!

P.S. the Feather_m0_LoRa will work well under Arduino.

jerryn
 
Posts: 1251
Joined: Sat Sep 14, 2013 9:05 am

Re: Memory Error Lora_Device with BME280

by brubell on Mon Jun 15, 2020 9:33 am

Getting very frustrated with this project and would like some answers from Adafruit as to why this project has been published (looks like without any testing with the above board

Hi Art - when I initially wrote the guide (last fall), both CircuitPython and the supporting libraries (RFM9x, BME280) were smaller and fit nicely on the M0. Unfortunately, this is not the case anymore. Thank you Jerryn for debugging and attempting to resolve the memory issue (there is a discussion about reducing the memory footprint of the BME280 library here: https://github.com/adafruit/Adafruit_Ci ... /issues/37).

I am going to edit the guide to use a Feather M4 Express (https://www.adafruit.com/product/3857) and a LoRa Radio FeatherWing (https://www.adafruit.com/product/3231). This board has more memory and will be able to fit CircuitPython along with the RFM9x and BME280 libraries.

brubell
 
Posts: 946
Joined: Fri Jul 17, 2015 10:33 pm

Re: Memory Error Lora_Device with BME280

by lawrence01073 on Mon Jun 15, 2020 11:43 am

Sad that I have to use 3 boards (M4, LoRa Featherwing Breakout and the BME280) instead of 2 and the current Featherwing MO RFM95 board will collect dust. Glad I did not invest in the second Featherwing MO RF95 that the project called for. Hopefully you will go through all of the projects that you list and make sure they run correctly with the new libraries and when libraries get larger. Many Thanks to Jerryn for all of his help... Still very frustrated.... Art

lawrence01073
 
Posts: 15
Joined: Thu Jul 04, 2013 2:53 pm

Re: Memory Error Lora_Device with BME280

by brubell on Mon Jun 15, 2020 12:10 pm

Hi, if you are unable to use this board, email support@adafruit.com and ask for a refund

brubell
 
Posts: 946
Joined: Fri Jul 17, 2015 10:33 pm

Re: Memory Error Lora_Device with BME280

by lawrence01073 on Mon Jun 15, 2020 12:52 pm

Thank You, I will... Art

lawrence01073
 
Posts: 15
Joined: Thu Jul 04, 2013 2:53 pm

Re: Memory Error Lora_Device with BME280

by jerryn on Wed Jun 17, 2020 8:38 am

This is just an update on some work I have been doing to see if this example can be made to work with the feather_m0_rfm9x board -- there have been some promising results, but it is still a "work in progress".

I have successfully been able to run the example code for the weather monitor using the feather_m0_rfm9x and bme280.
It required a custom build of CircuitPython for the feather_m0_rfm9x board to remove several modules so the adafruit_rfm9x module could be "frozen" into the flash memory. Doing this greatly reduces the amount of memory needed when the library is imported. In addition, several modifications were made to reduce the code size of the rfm9x module.
There is more work to be done but it has been encouraging. If it continues to work as desired, I'll follow up with a PR to modify the feather_m0_rfm9x build and the rfm9x library.

I would still recommend migrating to the M4 MCU if that is an option for you. The M0 will continue to be very limited in its capabilities.

jerryn
 
Posts: 1251
Joined: Sat Sep 14, 2013 9:05 am

Re: Memory Error Lora_Device with BME280

by lawrence01073 on Wed Jun 17, 2020 9:00 am

Thanks Jerryn for your reply and help. Look forward to seeing your results.... Art

lawrence01073
 
Posts: 15
Joined: Thu Jul 04, 2013 2:53 pm

Please be positive and constructive with your questions and comments.