2025-03-17 4:47 AM - last edited on 2025-03-17 4:53 AM by Andrew Neil
Hello
I am using STM32F103C8 and I want to read and write to CAT28F010P Flash chip.
This flash chip has parallel buses for data and address. Also there are 3 control lines as CE, OE and WE.
So there are 28 lines in total coming out of this chip. I was able to physically interface all lines with STM32F103C8.
But I have no idea how to code the microcontroller in order to get that done.
Please help!
Thanks
currently I use STM32CubeMX and Keil uVision 5 as developing environment. Program debugger is st-link v2.
2025-03-17 4:50 AM - edited 2025-03-17 4:55 AM
@VarioSL wrote:But I have no idea how to code the microcontroller in order to get that done.
Read the datasheet for the Flash chip - that will show you what needs to happen on all the interface lines.
But wouldn't it be better to just use a flash chip with a serial interface?
PS:
@VarioSL wrote:This flash chip has parallel buses for data and address. Also there are 3 control lines as CE, OE and WE.
So there are 28 lines in total
You mean 31 in total.
2025-03-17 5:04 AM
Do you have the FMC bus up, and can you interact with the memory?
You can either write your app per the part data sheet to send the sequences to erase, write and wait of the Flash device.
Test your methods there as you'll need to write an external loader FLM for Keil, or STLDR for STM32 Cube Programmer to interact and program the external flash during download.
2025-03-17 5:10 AM - edited 2025-03-17 5:10 AM
Does an STM32F103C8 have FMC (aka FSMC) ?
2025-03-17 5:15 AM
I don't recall. The OP doesn't really indicate what GPIO pins were committed here.
Seems like a lot of work to add this memory to this part.