Search found 243 matches

by ag123
Fri Feb 14, 2020 4:17 am
Forum: Code snipplets
Topic: Example: Write / Read to IPS6404 PSRAM (8 MB)
Replies: 22
Views: 3136

Re: Example: Write / Read to IPS6404 PSRAM (8 MB)

oops didn't realize your response earlier. nope, i just solder the psram on the pads below the F401 black pill board
those are intended for a spi flash, but spi psram is pin compatible.

schematics for the F401 black pill
https://mcu.selfip.com/viewtopic.php?f=25&t=138#p1461
by ag123
Sun Jan 19, 2020 3:03 pm
Forum: STM32F4 Boards
Topic: STM32F401CCU6 LQFP100 (!) development board
Replies: 20
Views: 4373

Re: STM32F401CCU6 LQFP100 (!) development board

oops misposted reposted in the official stm32duino forum as well https://www.stm32duino.com/viewtopic.php?f=24&t=52&p=714#p714 ------------ hi steve, i think we need to rework the clock setting f4 code. blackpill f411 runs on a 25mhz crystal while disco f411 runs on a 8mhz crystal https://github.com...
by ag123
Sun Jan 19, 2020 9:22 am
Forum: Projects
Topic: (yet another) SUMP compatible logic analyzer board for STM32duino (steve's libmaple core) - stm32f401cc pill board
Replies: 1
Views: 726

Re: (yet another) SUMP compatible logic analyzer board for STM32duino (steve's libmaple core) - stm32f401cc pill board

this one use dma on stm32f401cc, i hooked the timer and get it to trigger dma to read from gpiob PB0 - PB7 it seemed dma do have real speed limits, i do not have a means to verify it. up to 5mhz, the chart looks like expanded by about that factor but 10mhz and beyond it seemed the chart stop expandi...
by ag123
Sun Jan 19, 2020 8:57 am
Forum: Projects
Topic: (yet another) SUMP compatible logic analyzer board for STM32duino (steve's libmaple core) - stm32f401cc pill board
Replies: 1
Views: 726

(yet another) SUMP compatible logic analyzer board for STM32duino (steve's libmaple core) - stm32f401cc pill board

github repository: https://github.com/ag88/SumpSTM32F401cc --------------------------------------------------------------- readme.md: SUMP compatible logic analyzer for STM32duino (steve's libmaple core) - stm32f401cc pill board This is an implementation of (yet another) logic analyzer based on the ...
by ag123
Wed Jan 15, 2020 2:41 pm
Forum: Code snipplets
Topic: Example: Write / Read to IPS6404 PSRAM (8 MB)
Replies: 22
Views: 3136

Re: Example: Write / Read to IPS6404 PSRAM (8 MB)

I just wonder why is there a big difference between with and w/o DMA, since I optimized quite a lot the non-DMA read and write routines. I mean the USB and systick IRQs should not have such an influence. don't worry too much about that difference, it is pretty fast after all ! in the stm32 running ...
by ag123
Wed Jan 15, 2020 12:44 pm
Forum: Code snipplets
Topic: Example: Write / Read to IPS6404 PSRAM (8 MB)
Replies: 22
Views: 3136

Re: Example: Write / Read to IPS6404 PSRAM (8 MB)

blackpill F401CCU the recent one with the pads for spi flash below, spi psram is pin compatible. running at stock speeds 84 mhz and hence spi is at 42 mhz (fcpu/2) the psram i used i noted is from expressif, slightly pricier but looks of good quality https://www.aliexpress.com/item/4000242457828.htm...
by ag123
Wed Jan 15, 2020 8:08 am
Forum: Code snipplets
Topic: Example: Write / Read to IPS6404 PSRAM (8 MB)
Replies: 22
Views: 3136

Re: Example: Write / Read to IPS6404 PSRAM (8 MB)

next test update the codes a little to use DMA 8 MB test 8 kB blocks /*************************************************** * Read or Write <len> bytes from/to PSRAM **************************************************/ void psram_data(uint8_t cmd, uint32_t address, uint8_t *buf, uint32_t len){ uint8_t ...
by ag123
Wed Jan 15, 2020 6:31 am
Forum: Code snipplets
Topic: Example: Write / Read to IPS6404 PSRAM (8 MB)
Replies: 22
Views: 3136

Re: Example: Write / Read to IPS6404 PSRAM (8 MB)

next test the full 8 MB of the psram, writing 8KB blocks of random data writing a full 8MB and later reading the 8MB /** * * IPS6404 8 MB PSRAM (SPI SRAM) Write/Read example * * (c) 2019 by Vassilis Serasidis <avrsite@yahoo.gr> * Home: https://www.serasidis.gr * Forum: https://mcu.selfip.com , https...
by ag123
Wed Jan 15, 2020 5:52 am
Forum: Code snipplets
Topic: Example: Write / Read to IPS6404 PSRAM (8 MB)
Replies: 22
Views: 3136

Re: Example: Write / Read to IPS6404 PSRAM (8 MB)

i did a slighly bigger test this time i used random numbers and used a 54k buffer, there is 64k sram in f401, i leave a little room to prevent crashes :P this time round i used random numbers /** * * IPS6404 8 MB PSRAM (SPI SRAM) Write/Read example * * (c) 2019 by Vassilis Serasidis <avrsite@yahoo.g...
by ag123
Tue Jan 14, 2020 10:57 am
Forum: Code snipplets
Topic: Example: Write / Read to IPS6404 PSRAM (8 MB)
Replies: 22
Views: 3136

Re: Example: Write / Read to IPS6404 PSRAM (8 MB)

i think you are likely right, after all this test is just 8 kB out of that 8 MB, maybe i'd make a bigger test, i'd try that 2s test as well :) but that say we are streaming from an adc + dma, one way is to alternate the buffers. e.g. for dma half transfers, transfer the first half when that interrup...