adafruit / adafruit/Adafruit_CircuitPython_LSM6DS
Memory Allocation issue on M0, others?
- Dominant language
- Python
- Stars
- 34
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Re this thread:
https://forums.adafruit.com/viewtopic.php?f=19&t=164655
And my testing:
```
Adafruit CircuitPython 5.3.0 on 2020-04-29; Adafruit Metro M0 Express with samd21g18
>>>
soft reboot
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
File "code.py", line 4, in
File "adafruit_lsm6ds.py", line 188, in
File "adafruit_lsm6ds.py", line 217, in LSM6DS
MemoryError: memory allocation failed, allocating 184 bytes
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked forum thread and reproduce the report on an Adafruit Metro M0 Express running CircuitPython 5.3.0. Inspect adafruit_lsm6ds.py around lines 188 and 217, where the failure occurs, and compare the allocation behavior during LSM6DS import and initialization. Done means the reported 184-byte MemoryError no longer occurs in the provided test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100