Go to advanced search

by pharos
Sun Sep 09, 2012 3:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Bit-banging a TSOP-48 NAND Flash with the RPi
Replies: 22
Views: 23293

Re: Bit-bangind a TSOP-48 NAND Flash with the RPi

So the NAND ID above is incorrect, it should be DA not D8. I've noticed the 360 Clip is extremely sensitive to the current position, which can be tiresome since the correct one must be maintained by applying pressure at the right spots when reading/writing the full NAND. In any case, here's the most...
by pharos
Sat Sep 08, 2012 7:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Bit-banging a TSOP-48 NAND Flash with the RPi
Replies: 22
Views: 23293

Re: Bit-bangind a TSOP-48 NAND Flash with the RPi

It works! Just a small mistake, I inverted command latch and address latch in address cycle 1.

Code: Select all

[email protected]:~# ./a.out 1
add8109544
Yes, that's a 5-byte NAND Flash ID above :)
by pharos
Sat Sep 08, 2012 6:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: GPIO programming
Replies: 6
Views: 3247

Re: GPIO programming

Actually, the snippet of code I posted, altough it works, could not work because there is no guarantee something is not already mapped ay 0x13370000 (like a library for instance). The original method of mallocing two pages of memory ensures that there is a portion of memory aligned to one page that ...
by pharos
Sat Sep 08, 2012 12:57 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: GPIO programming
Replies: 6
Views: 3247

Re: GPIO programming

Yep, I also removed the malloc code and it works just the same. if ((gpio = (volatile unsigned int *) mmap((caddr_t) 0x13370000, 4096, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FIXED, mem_fd, GPIO_BASE)) == MAP_FAILED) { perror("mmap GPIO_BASE"); return -1; } OUT_GPIO(N_WRITE_PROTECT); GPIO_SET_1(N_WRITE...
by pharos
Sat Sep 08, 2012 12:15 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Bit-banging a TSOP-48 NAND Flash with the RPi
Replies: 22
Views: 23293

Bit-banging a TSOP-48 NAND Flash with the RPi

Hi, I'm trying to bit-bang a 3.3V NAND Flash which has a very fine pitch (0.5mm) using a solderless clip called the 360 Clip. Although it was originally meant to hack game consoles (hence the name), I'm attempting to reuse it as a generic TSOP NAND reader/writer. The most interesting thing about thi...

Go to advanced search