Search found 8 matches

by serkansatuk
Thu Jul 16, 2020 12:54 pm
Forum: General discussion
Topic: Arduino STM32F411CEU6 ADC Read Problem
Replies: 1
Views: 2774

Arduino STM32F411CEU6 ADC Read Problem

Hello there. Arduino with "STM32F411CEU6 blackpill board" with 12 bit resolution I am trying to read an analog value. STM32 1.9.0 library is installed. When I try to read data with analogRead it reads slowly. Is there anyone who can write sample code with Arduino? I looked in stm32f2xx_hal...
by serkansatuk
Tue Mar 17, 2020 10:27 pm
Forum: General discussion
Topic: 23LC512 SRAM Problem
Replies: 12
Views: 7775

Re: 23LC512 SRAM Problem

I'm sorry my friend. I made you busy.
There are 2 pieces 23lc512. I have always tried the other 23LC512 with arduino cards. I didn't realize the real problem.
the problem originated from the board.
so it works with STM32.
many thanks again.
by serkansatuk
Tue Mar 17, 2020 9:39 pm
Forum: General discussion
Topic: 23LC512 SRAM Problem
Replies: 12
Views: 7775

Re: 23LC512 SRAM Problem

Hello again. You have worked so hard for me, I am grateful to you for that. however, I was unable to communicate by 23LC512 by the library you edited and sent. It gave the same result. After that, I tried the library and code I added to the first post on the arduino due board which is 3.3v. It also ...
by serkansatuk
Tue Mar 17, 2020 1:54 pm
Forum: General discussion
Topic: 23LC512 SRAM Problem
Replies: 12
Views: 7775

Re: 23LC512 SRAM Problem

But it is working good on arduino board with same code.
I changed it to BUS_KBits but, it did not worked again.
stevestrong wrote: Tue Mar 17, 2020 1:01 pm I think you set it up wrongly, because the 23LC512 has 16bits address length (corresponding to BUS_KBits) and not 24 bits (BUS_MBits) as you use it currently.
by serkansatuk
Tue Mar 17, 2020 1:00 pm
Forum: General discussion
Topic: 23LC512 SRAM Problem
Replies: 12
Views: 7775

Re: 23LC512 SRAM Problem

I tried feeding it with both 5v and 3.3v. Sorry it doesn't work :(


stevestrong wrote: Tue Mar 17, 2020 12:56 pm How do you supply the SRAM chip? From 5V?
You should feed it with 3.3V because the STM32F103 works with 3.3V.
by serkansatuk
Tue Mar 17, 2020 12:44 pm
Forum: General discussion
Topic: 23LC512 SRAM Problem
Replies: 12
Views: 7775

Re: 23LC512 SRAM Problem

I made that definition and connected the CS pin to A4 but it still doesn't work. I am using STM32F103C8T6. I connected the VCC pin of the 23LC512 to 3.3v so it could be due to the pins being 3.3v in stm32. The problem continues.


stevestrong wrote: Tue Mar 17, 2020 12:38 pm Which core do you use?

please set

Code: Select all

const int SRAM_CS = PA4;
by serkansatuk
Tue Mar 17, 2020 12:35 pm
Forum: General discussion
Topic: 23LC512 SRAM Problem
Replies: 12
Views: 7775

Re: 23LC512 SRAM Problem

I tried corrected version, but it did not work again. It gave same output. The interesting thing is that the same sample code with this library works seamlessly on the arduno nano card. I can run MCP4921 and MCP3201 IC with SPI interface in STM32. I just couldn't run 23LC512. There is no SPI.begin()...
by serkansatuk
Tue Mar 17, 2020 10:34 am
Forum: General discussion
Topic: 23LC512 SRAM Problem
Replies: 12
Views: 7775

23LC512 SRAM Problem

Hello. I have to use 23LC512 SRAM in a project. I have tried a few 23LC512 libraries. One of them is attached. I run the library and the sample code on the arduino nano card without any problems when the CS pin is connected to pin 10. I make the same connections on the STM32F103C8T6 bluepill card as...

Go to advanced search