The expansion board of the Spresense is no longer responding.

Asked 2 years ago, Updated 2 years ago, 94 views

I'm trying to move the Presense on CircuitPython.My PC is MacBook Air and my operating system is Big Sur.

https://developer.sony.com/develop/spresense/docs/circuitpython_set_up_en.html

As I was working on the link above, I was able to illuminate the four LEOs on the main board of the Presense.
However, when I rewritten the contents of code.py like the code below, it suddenly stopped loading into the expansion board and the CIRCUITPY device that was supposed to be connected disappeared.After that, the CIRCUITPY device did not come out when I reseated the USB on the expansion board. (The blue LEO on the power supply is shining.)

import board
import digitalio
import time
from ulab import numpy as np

start = time.time()

led=digitalio.DigitalInOut (board.LED0)
led.direction=digitalio.direction.OUTPUT

b=np.array(range(25), dtype=np.uint8).reshape((5,5))
print("b",b)
counter = 0

for i in range (5):
    led.value = True
    time.sleep(0.5)
    led.value = False
    time.sleep(0.5)
    counter+=1

print("counter", counter)
process_time = time.time()-start
print("time[s]=", process_time)

As soon as I added the following part to the code, I couldn't write it anymore, so I suspect this part may be the cause, but I'm not sure...

start=time.time()
process_time=time.time()-start
print("time[s]=", process_time)

I was writing the code in the editor, so if you check the log,

2021-10-15 15:08:39,220-mu.logic:1207(save_tab_to_file) ERROR: [Errno6] Device not configured
2021-10-15 15:08:39,257-mu.interface.main:1038(show_message)DEBUG: File could not be saved (disk problem).
2021-10-15 15:08:39,257-mu.interface.main:1039(show_message)DEBUG: Error saving file to disk.Verify that you have sufficient write permission and disk space.
2021-10-15 15:08:39,404-mu.modes.base:136(close)INFO:Closing connection to REPL on port:/dev/cu.usbmodem8793CC766F1
2021-10-15 15:08:39,408-mu.interface.main:1038(show_message)DEBUG: The device does not appear to be connected.
2021-10-15 15:08:39,408-mu.interface.main:1039(show_message)DEBUG: Verify that the device is connected to this computer.

For REPL to work, MicroPython (or CircuitPython) must be forwarded to the device.

Finally, press the reset button on the device and try again.
2021-10-15 15:09:03,685-mu.logic:730(check_usb)INFO:circuitpython device disconnected on port:/dev/cu.usbmodem8793CC766F1 (VID:0x054C, PID:0x0BC2, manufacturer Sony)

There was an error as shown in .

Even if I try another Mac PC, it doesn't connect to the expansion board.

Is it because the description is bad and the flash memory is damaged?
I would appreciate it if you could give me some advice.

Thank you for your cooperation.

spresense

2022-09-30 20:17

1 Answers

This may be a physical connection issue between the spresense expansion board and the main board connector.A similar question has been asked in the past in the stack overflow.This is an SD card, but the USB connector may have the same problem.

SPRESENSE does not recognize SD card

If pressing the main board hard against the expansion board does not improve the symptoms, you may want to try the Recovery Tool.I use the Arduino environment, but sometimes when I write a program, it doesn't take effect, so I appreciate your help with this tool.

Spresense serial monitor displays "D>" or writes to the board fails


2022-09-30 20:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.