Search found 17 matches
- Wed Jun 16, 2021 7:13 pm
- Forum: General Discussion and Questions
- Topic: Compile new firmware, UART not available.
- Replies: 1
- Views: 918
Compile new firmware, UART not available.
I am attempting to use Firmware updat 1.14, after having been out of Micropython for a while. I am using a board that was previously used on firmware 1.9.3 and worked fine. however after creating a new board folder and using the PYBV11 files, with a few mods it compiles and runs, I am unable to acce...
- Thu Jun 28, 2018 7:18 am
- Forum: General Discussion and Questions
- Topic: Mounted devices shown in windows
- Replies: 0
- Views: 1294
Mounted devices shown in windows
I am wondering if there is a way to show the block device mounted in boot or main to show as a mounted drive in windows? I have internal flash, and when connected the SD card is shown in windows but using a flash device I am able to mount and use the mem as a drive on the pyb This however is not sho...
- Wed Jun 27, 2018 11:57 pm
- Forum: General Discussion and Questions
- Topic: os(uos) usage for mount
- Replies: 9
- Views: 5927
Re: os(uos) usage for mount
That did the trick, I didn't realize that the readblocks was a block address not a full byte address aligned to the pages. Once I shifted to the full byte address it works.
Thanks, just missed that on the details thanks.
Thanks, just missed that on the details thanks.
- Mon Jun 25, 2018 6:32 pm
- Forum: General Discussion and Questions
- Topic: uctypes and spi
- Replies: 5
- Views: 3573
Re: uctypes and spi
I was able to fix this issue by reducing the number of bytes written/read at one time I segmented the the read/writes over spi to 256 byte segments.
- Mon Jun 25, 2018 6:30 pm
- Forum: General Discussion and Questions
- Topic: os(uos) usage for mount
- Replies: 9
- Views: 5927
Re: os(uos) usage for mount
So I modified the driver. I have tested with a blockread and block write, it will read an write the given data correctly I do assume that it will not read/write blocks over 131,072 bytes at a time. uos mount is still failing as well as pyb.mount. page size is 512 >>> import uos >>> uos.VfsFat.mkfs(f...
- Wed Jun 20, 2018 7:54 pm
- Forum: General Discussion and Questions
- Topic: uctypes and spi
- Replies: 5
- Views: 3573
Re: uctypes and spi
So after a bit of review on spi i was able to find a post (https://github.com/micropython/micropython/issues/685) specifies Therefore, the SPI send/recv/send_recv methods will choose to use DMA if it detects that interrupts are enabled at that point, otherwise it uses the original polling transfers....
- Sat Jun 16, 2018 10:13 am
- Forum: General Discussion and Questions
- Topic: os(uos) usage for mount
- Replies: 9
- Views: 5927
Re: os(uos) usage for mount
Thanks that helps with another question I was having as to whether the uos uses the CCRAM on STM or not.
- Sat Jun 16, 2018 10:06 am
- Forum: General Discussion and Questions
- Topic: uctypes and spi
- Replies: 5
- Views: 3573
Re: uctypes and spi
def readblocks(self,block_num,buf): try: cmd=bytearray(1) cmd[0] = fourread cmd.extend(self.block_to_bytes(self._baseoffsett+block_num *self._block_size)) #print('read cmd {}'.format(list(cmd))) self._cs.low() time.sleep_us(1) self._port.send(cmd) 107** self._port.readinto(buf) self._cs.high() exce...
- Fri Jun 15, 2018 10:55 pm
- Forum: General Discussion and Questions
- Topic: os(uos) usage for mount
- Replies: 9
- Views: 5927
Re: os(uos) usage for mount
Thanks for the help after digging into this for a while the mkfs doesn't seem to be actually making any changes to the sectors on the drive. I am wondering if it has to do with the line. line 5144 in oofatfs/ff.c if (sz_vol < 50) return FR_MKFS_ABORTED; /* Check if volume size is >=50s */ but not su...
- Fri Jun 15, 2018 10:44 pm
- Forum: General Discussion and Questions
- Topic: uctypes and spi
- Replies: 5
- Views: 3573
uctypes and spi
I am having an issue with read write to mem locations. import uctypes ba=uctypes.bytearray_at(0x10000000,65536) flash_ic=flash_drv.flash(icport,flash_cs) flash_ic.readblocks(0,ba) Basically i have a SPI port with IC attached that is read write in blocks of 64Kb I am attempting to use the CCRAM on a ...