Got a few questions for Gemma M0

Wearable electronics: boards, conductive materials, and projects from Adafruit!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Iono
 
Posts: 1
Joined: Thu Nov 10, 2022 1:16 pm

Got a few questions for Gemma M0

Post by Iono »

Hello,

1. How do I read/write data to ATTiny85's EEPROM?
2. Do you have power consumption for parts or modes for Gemma M0? This link here is for ESP32 but do you have something similar to this? https://lastminuteengineers.com/esp32-s ... nsumption/

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Got a few questions for Gemma M0

Post by dastels »

The Gemma M0 uses a SAMD21, not an ATTiny85. That was the original Gemma. The SAMD21 doesn't have EEPROM.

Power consumption is involved, have a look at section 41.6 of the SAMD21 datasheet (page 1004) at https://ww1.microchip.com/downloads/en/ ... 01882F.pdf.

Dave

User avatar
michaelmeissner
 
Posts: 1819
Joined: Wed Aug 29, 2012 12:40 am

Re: Got a few questions for Gemma M0

Post by michaelmeissner »

Ummm, note the Gemma M0 does not use an ATtiny85 like the previous Gemma parts used, which means it doesn't have EEPROM. The Gemma M0 uses an ATSAMD21E18 32-bit Cortex M0+. However, it does have a flash memory that you can write to.

If you use circuitpython on the M0, the learning guide for the Gemma M0 has a page on accessing the flash storage system: https://learn.adafruit.com/adafruit-gem ... -storage-2

There is an equivalent way to do it under Arduino, but I don't remember the method used on the Gemma M0.

Locked
Please be positive and constructive with your questions and comments.

Return to “Wearables”