Search found 542 matches: Teensy 4.0

Searched query: teensy 4 0

ignored: 4

by mathieu
Sun Aug 28, 2022 9:29 am
Forum: Other Boards
Topic: [teensy41] help getting started
Replies: 8
Views: 30892

Re: [teensy41] help getting started

... without any arguments, I get this response: $mpremote Connected to MicroPython at /dev/cu.Bluetooth-Incoming-Port So, the default device is not my teensy (/dev/cu.usbmodem14401 or /dev/tty.usbmodem14401). So, if I try to do "mpremote mount ." but cannot specify a device, is it trying the Bluetooth ...
by danhalbert
Sun Jul 31, 2022 12:31 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 465464

Re: Teensy 4.0 & 4.1

Adafruit keeps a TOML database of flash chip characteristics here: https://github.com/adafruit/nvm.toml. This is used in the CircuitPython to generate C struct compile-time information to support the various chips used on various boards, especially their QSPI characteristics and idiosyncrasies. I do...
by pythoncoder
Sun Jul 31, 2022 9:46 am
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 465464

Re: Teensy 4.0 & 4.1

... Other flash chips might not require that option, or the need it to be set as: cmd5=True ... As you may know, some chip designs use 4 byte commands and others use 5 bytes. Aside from studying the datasheet, trial and error with the cmd5 arg is required. Unless there is a way to query the chip to...
by Roberthh
Sat Jul 30, 2022 8:16 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 465464

Re: Teensy 4.0 & 4.1

Ok. I found the problem. It was with the flash chip I used, which requires a different option. To use the flash with a LFS file system, You need the files bdevice.py and flash_spi.py from @pythoncoder's repository. Then, you can use for instance the script below to mount the file system: import os f...
by Roberthh
Sat Jul 30, 2022 3:16 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 465464

Re: Teensy 4.0 & 4.1

I have to correct myseld. I tried the flash drive again, and it does not work. What works is the SD card, using the sdcard.py driver from the MicroPyhton repository. Then, you can mount the SD card with the little script below, giving you access to the files on the SD card at the directory /flash. T...
by Roberthh
Sat Jul 30, 2022 12:55 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 465464

Re: Teensy 4.0 & 4.1

Assuming you have soldered a flash chip to the audio board, you can create a LFS file system using @pythoncoder's driver for flash at https://github.com/peterhinch/micropython_eeprom.git. I tried that and it worked. I made most of the tests with I2S with a SD card.
by toani
Sat Jul 30, 2022 12:19 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 465464

Re: Teensy 4.0 & 4.1

Hi everyone. Question. How do I transfer audio files from my computer to the SPI flash on the Audio Shield? I'm using the Teensy4.0 and I intend to use LFS. I used EraseEverything and CopyFromSD utilities but then ListFiles doesn't show any files. I'm assuming CopyFromSD is not creating a LFS system...
by rkompass
Thu Jul 28, 2022 6:12 pm
Forum: General Discussion and Questions
Topic: Using machine Pin class no way to get pin number or channel when running on Pi Pico?
Replies: 7
Views: 9932

Re: Using machine Pin class no way to get pin number or channel when running on Pi Pico?

Hey Scruss, Pin('LED') works for me on Teensy 4.1 and this name is revealed indeed if I look it up in Pin.board.__dict__.items() like posted above. In RPI Pico I don't find Pin.board or Pin.cpu (those nasty inconsistencies in different ports ...
by rkompass
Thu Jul 28, 2022 4:16 pm
Forum: General Discussion and Questions
Topic: Using machine Pin class no way to get pin number or channel when running on Pi Pico?
Replies: 7
Views: 9932

Re: Using machine Pin class no way to get pin number or channel when running on Pi Pico?

... == pin1))) # or print(list((name for name, code in Pin.cpu.__dict__.items() if code == pin1))) returns ['D26', 'A12'] ['GPIO_AD_B1_14'] for me on Teensy 4.1
by jornamon
Thu Jul 28, 2022 4:23 am
Forum: ESP32 boards
Topic: File write speed
Replies: 18
Views: 14636

Re: File write speed

... . It's not very tidy but better than nothing. In the above testing, the SD card was connected always via SPI, but recently I found a Teensy 4.1 laying around and I tested it. It has a single core processor, but besides being really fast, it has an integrated SD card reader which uses ...