Hello,
I am new and I am trying to code my Itsybitsy
First, my board was mounted and I could lunch MU and try to add some code.
Some time my board was "accidently ejected"
Now, after I pluged my board, it's not shown any more in Finder, but when I double click the reset button, I can see t he drive ITSYM4BOOT. After I click once on the reset button, the CIRCUITPY does not showup in my finder.
I suppose, it's because the board was ejected several time, but now I do not know how I can work with my board as the board is not showed in Finder, while the board is connected to my mac
Any idea how I can restore it?
Many thanks
[Itsybitsy] My board is not shown on my Macbook
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- pierrot10
- Posts: 349
- Joined: Tue Nov 17, 2015 4:34 pm
[Itsybitsy] My board is not shown on my Macbook
Last edited by pierrot10 on Sat Jun 10, 2023 6:23 pm, edited 1 time in total.
- dastels
- Posts: 15825
- Joined: Tue Oct 20, 2015 3:22 pm
Re: [Itsybitsy] My board is not shown on my Macbook
It sounds like you're using CircuitPython with it.
Try reinstalling. See https://learn.adafruit.com/welcome-to-c ... cuitpython. It sounds like you have an ItsyBitsy M4 Express, so grab the CircuitPython 8.1.0 UF2 from https://circuitpython.org/board/itsybitsy_m4_express/. Be sure you use libraries/modules from the 8.x bundle at https://circuitpython.org/libraries.
Dave
Try reinstalling. See https://learn.adafruit.com/welcome-to-c ... cuitpython. It sounds like you have an ItsyBitsy M4 Express, so grab the CircuitPython 8.1.0 UF2 from https://circuitpython.org/board/itsybitsy_m4_express/. Be sure you use libraries/modules from the 8.x bundle at https://circuitpython.org/libraries.
Dave
- pierrot10
- Posts: 349
- Joined: Tue Nov 17, 2015 4:34 pm
Re: [Itsybitsy] My board is not shown on my Macbook
Hello
Thanks for your reply. I updated my post because I wrote a mistake.
I just double click the reset button and ITSYMABOOT show in my finder.
I draged the file update-bootloader-itsybitsy_m4-v3.15.0.uf2 and then I drag the file adafruit-circuitpython-itsybitsy_m4_express-en_GB-8.1.0.uf2.
the INFO_UF2.TXT shows
Unfortunately, the drive CIRCUITPY is not showed in Finder any more, but a red LED is flashing on Itsybitsy board
Thanks for your reply. I updated my post because I wrote a mistake.
I just double click the reset button and ITSYMABOOT show in my finder.
I draged the file update-bootloader-itsybitsy_m4-v3.15.0.uf2 and then I drag the file adafruit-circuitpython-itsybitsy_m4_express-en_GB-8.1.0.uf2.
the INFO_UF2.TXT shows
Now I pressed once the reset button and an alert show upUF2 Bootloader v3.15.0 SFHWRO
Model: ItsyBitsy M4 Express
Board-ID: SAMD51G19A-Itsy-v0
I also removed my USB cable and reconnect it to my MacBook, hoping to see the drive CIRCUITPY.Disk Not Ejected properly
Eject "ITSYMABOOT" before disconnecting or turning it off
Unfortunately, the drive CIRCUITPY is not showed in Finder any more, but a red LED is flashing on Itsybitsy board
- dastels
- Posts: 15825
- Joined: Tue Oct 20, 2015 3:22 pm
Re: [Itsybitsy] My board is not shown on my Macbook
That's because resetting disconnects the filesystem. Just like if you pull out a USB drive without ejecting it.Disk Not Ejected properly
Eject "ITSYMABOOT" before disconnecting or turning it off
So after installing CircuitPython you had the CIRCUITPY drive mount?
Dave
- pierrot10
- Posts: 349
- Joined: Tue Nov 17, 2015 4:34 pm
Re: [Itsybitsy] My board is not shown on my Macbook
Sadly no :(So after installing CircuitPython you had the CIRCUITPY drive mount?
- pierrot10
- Posts: 349
- Joined: Tue Nov 17, 2015 4:34 pm
Re: [Itsybitsy] My board is not shown on my Macbook
Additionally, the command
does not print a new line after I connect the USB cable
here is the result, before and after I connect itsybitsy to my Macbook
Code: Select all
ll /dev/tty.*
here is the result, before and after I connect itsybitsy to my Macbook
Code: Select all
ll /dev/tty.*
crw-rw-rw- 1 root wheel 0x16000000 Jun 11 00:13 /dev/tty.BLTH
crw-rw-rw- 1 root wheel 0x16000002 Jun 11 00:13 /dev/tty.Bluetooth-Incoming-Port
- dastels
- Posts: 15825
- Joined: Tue Oct 20, 2015 3:22 pm
Re: [Itsybitsy] My board is not shown on my Macbook
Try reinstalling CircuitPython again. It should automatically disconnect, reset, and connect CIRCUITPY when the install is finished.
Dave
Dave
- pierrot10
- Posts: 349
- Joined: Tue Nov 17, 2015 4:34 pm
Re: [Itsybitsy] My board is not shown on my Macbook
Sadly, it does not.
I double click on the reset buttom, I draged the file 'adafruit-circuitpython-itsybitsy_m4_express-en_US-8.1.0.uf2' to ITSYM4BOOT. ITSYM4BOOT was ejected and from that point CIRCUITPY did not showup,... still not present.
I double click on the reset buttom, I draged the file 'adafruit-circuitpython-itsybitsy_m4_express-en_US-8.1.0.uf2' to ITSYM4BOOT. ITSYM4BOOT was ejected and from that point CIRCUITPY did not showup,... still not present.
- dastels
- Posts: 15825
- Joined: Tue Oct 20, 2015 3:22 pm
- pierrot10
- Posts: 349
- Joined: Tue Nov 17, 2015 4:34 pm
Re: [Itsybitsy] My board is not shown on my Macbook
Hello
I think I understand what cause the problem.
I baught two new itsybitsy M4 express and I pasted the following code
# Write your code here :-)
then I code the error
Then My MU Freezed (Finder as well) and the board was ejected and no way to hgave back CIRCUITPY
I supposed I make a mistake here but what the reason of that?
Is there a way to format my Itsybitsy? To resore my board?
Thanks
I think I understand what cause the problem.
I baught two new itsybitsy M4 express and I pasted the following code
# Write your code here :-)
Code: Select all
import board
import digitalio
import busio
# Global variable
debug = True
i2c = board.I2C() # uses board.SCL and board.SDA
# OLED
import displayio
import adafruit_displayio_ssd1306
# RTC
import time
import adafruit_ds3231
rtc = adafruit_ds3231.DS3231(i2c)
# Lookup table for names of days (nicer printing).
days = ("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")
# LEDs
led_board = digitalio.DigitalInOut(board.LED)
led_board.direction = digitalio.Direction.OUTPUT
def sprint(txt):
if debug == True:
print(txt)
while True:
t = rtc.datetime
# print(t) # uncomment for debugging
print(
"The date is {} {}/{}/{}".format(
days[int(t.tm_wday)], t.tm_mday, t.tm_mon, t.tm_year
)
)
print("The time is {}:{:02}:{:02}".format(t.tm_hour, t.tm_min, t.tm_sec))
sprint("LED ON")
led_board.value = True
time.sleep(0.25)
sprint("LED OFF")
led_board.value = False
time.sleep(0.25)
I decided to check my I2C bus and I added the code wetween # Check I2C.No I2C device at address: 0x68
Then My MU Freezed (Finder as well) and the board was ejected and no way to hgave back CIRCUITPY
Code: Select all
# Write your code here :-)
import board
import digitalio
import busio
# Global variable
debug = True
i2c = board.I2C() # uses board.SCL and board.SDA
# OLED
import displayio
import adafruit_displayio_ssd1306
# Check I2C
while not i2c.try_lock():
pass
try:
while True:
print(
"I2C addresses found:",
[hex(device_address) for device_address in i2c.scan()],
)
time.sleep(2)
finally: # unlock the i2c bus when ctrl-c'ing out of the loop
i2c.unlock()
# END Check I2C
# RTC
import time
import adafruit_ds3231
rtc = adafruit_ds3231.DS3231(i2c)
# Lookup table for names of days (nicer printing).
days = ("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")
# LEDs
led_board = digitalio.DigitalInOut(board.LED)
led_board.direction = digitalio.Direction.OUTPUT
def sprint(txt):
if debug == True:
print(txt)
while True:
t = rtc.datetime
# print(t) # uncomment for debugging
print(
"The date is {} {}/{}/{}".format(
days[int(t.tm_wday)], t.tm_mday, t.tm_mon, t.tm_year
)
)
print("The time is {}:{:02}:{:02}".format(t.tm_hour, t.tm_min, t.tm_sec))
sprint("LED ON")
led_board.value = True
time.sleep(0.25)
sprint("LED OFF")
led_board.value = False
time.sleep(0.25)
Is there a way to format my Itsybitsy? To resore my board?
Thanks
- pierrot10
- Posts: 349
- Joined: Tue Nov 17, 2015 4:34 pm
Re: [Itsybitsy] My board is not shown on my Macbook
OK, I solved my problem. I need to boot in safe mode
But where it happened? Where should I check my I2C bus?
I deleted the code I lastéy added and then CIRCUITPY came back.Entering Safe Mode in CircuitPython 7.x and Later
To enter safe mode when using CircuitPython 7.x, plug in your board or hit reset (highlighted in red above). Immediately after the board starts up or resets, it waits 1000ms. On some boards, the onboard status LED will blink yellow during that time. If you press reset during that 1000ms, the board will start up in safe mode. It can be difficult to react to the yellow LED, so you may want to think of it simply as a "slow" double click of the reset button. (Remember, a fast double click of reset enters the bootloader.)
But where it happened? Where should I check my I2C bus?
- dastels
- Posts: 15825
- Joined: Tue Oct 20, 2015 3:22 pm
Re: [Itsybitsy] My board is not shown on my Macbook
I would run the I2C bus check as a separate program.
Dave
Dave
Please be positive and constructive with your questions and comments.