**** BEGIN LOGGING AT Thu Apr 05 02:59:56 2007 Apr 05 07:52:43 good morning Apr 05 07:53:02 drath_: do you have 5 minutes ? Apr 05 11:41:33 drath: are you there ? Apr 05 11:42:50 hey aproemel Apr 05 11:42:58 hi :-) Apr 05 11:43:22 I've got real trouble with my flash, i can write every half word alinged address Apr 05 11:43:46 but the others wont work :-( Apr 05 11:46:11 is your flash 8 or 16 bits wide? Apr 05 11:46:16 16 Apr 05 11:46:33 M29W128FL, 16bit Databus #BYTE is connected to VCC Apr 05 11:46:53 A0 (Flash) A1(AT91) like figure 18-8 on AT91 Datasheet Apr 05 11:49:30 i'm writing with this command Apr 05 11:49:44 str r1, [r3,r0,lsl #1] Apr 05 11:49:58 r1 data, r3 BASE_FLASH_ADDRESS, r0 Offset Apr 05 11:51:40 you said "i can write every half word alinged address" - and what doesn't work? Apr 05 11:52:08 example Apr 05 11:52:13 using a str is probably not a good idea - i guess the AT91 translates that to two writes on the 16-bit bus Apr 05 11:52:22 write to adress 0x00 the value 0x00 and to address 0x02 the value 0x02 Apr 05 11:52:29 and take a look to openOCD Apr 05 11:52:37 0xffff0000 0xffff0002 Apr 05 11:53:00 strh won't work, compile error :-( Apr 05 11:53:23 did you configure the chipselect for 16-bit? Apr 05 11:53:43 SMC_CS0 Register 0x00003288 Apr 05 11:53:50 16 bit CS, 1 16bit device Apr 05 11:54:04 BAT = 1, DBW 01b Apr 05 11:56:15 ok, you definitely have to use strh for your 16-bit bus Apr 05 11:56:52 if i use asm("strh r1, [r3,r0, lsl #1]"); Apr 05 11:56:59 i get missing ']' Apr 05 11:57:20 wrote the write functions in inline asm Apr 05 11:58:21 strh uses a different addressing mode Apr 05 11:59:07 check the ARM ARM for valid addressing modes (page 250 in the PDF) Apr 05 12:00:30 mhh, well on page 194 the STRH seems to be equal with the STR Apr 05 12:00:38 but there i can see the difference Apr 05 12:01:03 it uses Addressing mode 3, misc load/stores Apr 05 12:01:44 yes, and STR mode 2 Apr 05 12:02:10 omg, and i'm searching everywhere, but not at the adressing modes Apr 05 12:02:45 heh, yeah, i learned about the differences when i wrote the disassembler code for the openocd Apr 05 12:03:14 I'll hope i get it work today, so then i can take my board home to get uboot working Apr 05 12:03:19 3 weeks to go :-( Apr 05 12:09:48 drath: now i cant compile it :-) Apr 05 12:15:19 drath: works now, thanks a lot Apr 05 12:19:28 you're welcome Apr 05 12:19:50 :-) Apr 05 13:16:58 drath: uboot works i think Apr 05 13:19:31 cool Apr 05 13:20:33 but not the flash :-( Apr 05 13:20:39 but it boots Apr 05 13:20:43 and serial works Apr 05 13:20:57 so I'm sure that my loader works correctly Apr 05 13:24:03 what's wrong with the flash? Apr 05 13:25:30 i don't know atm :-( Apr 05 13:25:59 should use CFI Driver, and take a look to another board which uses it Apr 05 13:26:09 I think i have missconfigured it Apr 05 13:47:38 drath: but my luck is, i can take my board home, and don't need any oszi :-) Apr 05 17:26:15 drath: are you still there ? Apr 05 18:34:23 Hi! I'm looking for information on how to flash an IXP425 board using OpenOCD. Can anybody help? Apr 05 18:35:41 basically it should work, but the XScale stuff isn't tested very well Apr 05 18:37:11 Trouble is, I don't know how to access the flash. I don't which flash driver I have to use in the .cfg file. I can use OpenOCD for debugging without problems. Apr 05 18:49:02 what type of flash is on your board? Apr 05 19:02:17 The flash chips are Intel 28F128J3D75. Apr 05 19:04:04 the cfi driver supports the intel chips Apr 05 19:04:17 flash bank cfi 0x60000000 0x1000000 2 2 0 Apr 05 19:04:52 this defines a flash bank of 16mb size at address 0x6000000 with 16-bit bus and chip width (i.e. a single 16-bit chip) Apr 05 19:10:53 Ok, I've got to such chips, so I assume I've got 32 MB flash. That would make 0x2000000, but what about the bus and chip width? Apr 05 19:11:08 s/to such/two such/ Apr 05 19:11:09 pogo1231735 meant: Ok, I've got two such chips, so I assume I've got 32 MB flash. That would make 0x2000000, but what about the bus and chip width? Apr 05 19:18:53 i guess the chips are connected in parallel to form a 32-bit bus Apr 05 19:22:05 That's bus_width = 4, right? Apr 05 19:24:49 Hm, still no luck with Apr 05 19:24:50 flash bank cfi 0x50000000 0x1000000 2 4 0 Apr 05 19:25:23 0x50000000 is the address that Redboot reports. Apr 05 19:41:21 I've got no luck, whatever address I try. Maybe OpenOCD doesn't support XScale well enough. I'll try again tomorrow. Thanks for your help, drath! **** ENDING LOGGING AT Fri Apr 06 03:00:00 2007