**** BEGIN LOGGING AT Thu Mar 19 02:59:57 2009 Mar 19 06:57:32 <|val|> Hello all, I have a problem to write into the flash memory via JTAG. I can dump flash memory, I can write something in it (I see it), but when I restart the embedded device, the flash memory become like it was before I write something. Someone can help me to understand why ? (the MMU is disabled, AMR926ej, no DCache set) Mar 19 07:03:04 and the flash detect works? Mar 19 07:10:09 <|val|> it's via the JTAG and via the CPU so it's detected like memory Mar 19 07:10:58 <|val|> but it's possible to write to flash memory with the cpu ? Mar 19 07:36:49 <|val|> I have read some informations about flashing flash devices. When you use the JTAG to flash this device, you use the CPU or you bypass it ? Mar 19 07:49:07 |val|: the thing is that is usualy is memory-mapped so you need to know the address in memory where it is mapped Mar 19 07:59:56 <|val|> keesj: I searched specifications about the arm926ej and I found that the reset is at 0x0 or 0xffff0000. I have a copy of the bootloader in my pc and it's exactly the same as the code in 0xffff0000. So I conclude that 0xffff0000 contains the bootloader, and it's obligatory the flash (not a RAM memory), so I deviced to modify some bytes of the bootloader and when I restart nothing changes. Mar 19 08:00:23 <|val|> What did I miss ? Mar 19 08:02:09 <|val|> I don't have memory map specs of my embedded device Mar 19 09:32:31 Don't know sorry Mar 19 09:33:29 usually you need to enable flash writing in some special way Mar 19 09:33:45 it doesn't work as writable memory Mar 19 09:33:56 what is your device? Mar 19 09:37:17 <|val|> roxfan2: the memory chip is a KBE00F005M Mar 19 09:37:32 <|val|> it contains SDRAM and NAND flash Mar 19 09:38:08 if it's an external flash you usually need to use CFI Mar 19 09:38:51 if openocd supports your specific cpu, try flash writing commands Mar 19 09:38:52 <|val|> there is a pin for write protection into flash memory (active up), I force it to down Mar 19 09:39:06 (not memory writing) Mar 19 09:40:17 <|val|> roxfan: if I understand well (french), you tell me it's not possible to write into flash memory directly with cpu, but we need specific command to write in ti ? Mar 19 09:40:34 yes, usually that's the case Mar 19 09:40:55 http://openocd.berlios.de/doc/Flash-Configuration.html#Flash-Configuration Mar 19 09:41:13 <|val|> roxfan: thanks a lot, I have to see to openocd way ? Mar 19 09:41:22 <|val|> any other documentation ? Mar 19 19:35:27 hello there Mar 19 23:02:14 http://www.hardocp.com/image.html?image=MTIzNzQ3Njc2N2ZQWU1ISXNZVkZfMV8xX2wuZ2lm <--- this is a joke right? Mar 19 23:56:43 * flyback bbl Mar 20 00:12:14 * flyback wanders off to shave and then mabye go blow up some electronics and build something or just drive his car off a cliff :P Mar 20 00:50:14 pulls the pieces for this out of storage and plays with it http://www.vintage-computer.com/epsonhx20.shtml Mar 20 02:08:12 * flyback munches on pickled hot sausage ....nothing beats the great taste of "echnically seperated chicken" Mar 20 02:09:22 mechanically seperated chicken Mar 20 02:53:22 i have a project that involves a spansion flash chip and jtag via xilinx. id appreciate someone wiser just giving me an ear... Mar 20 02:55:24 i could not find much in the form of cheap (<$1k) programmers for the flash. JTAG is somewhat frustrating because openocd does not support xilinx spartan 3s. i have considered adding this support but before that, i would like to explore other routes Mar 20 02:56:08 one route being using the xilinx tools to create a xsvf to then be played using the Amontec JTAG Key device svf player Mar 20 02:56:25 the next being digging my ditch with urtag Mar 20 02:57:20 another option, i am curious if anyone has explored is: the flash chip is CFI compatible. Would it be possible to build a CFI controller with some off the shelf consumer hardware (with modifications, i assume)? Mar 20 02:58:27 Another route i have considered is bit-banging the interface. after reading the data sheet it does not seem overly complicated Mar 20 02:58:59 Or, should I go back to openocd and urjtag, looking at bsdl definition files and trying to add support in one of these programs in order to deal with the flash via them? Mar 20 02:59:29 as you can see as one considers all the possible routes, it is easy to get into a deadlock where you cant figure out which one to take **** ENDING LOGGING AT Fri Mar 20 03:00:02 2009