Hello,
Does it exist somewhere a tutorial to how to make the cfg and ocd scripts for openocd ?
Lets take this as sample :
** mww 0xffffec00 0x0a0a0a0a ← What this red mean ?**
** mww 0xffffec04 0x0b0b0b0b ← What this red mean ?**
i still try to understand from where is this parameters
there is many things i still not understand, as external flash chip can be programmed with Flash command or need absolutely Nand command…
I really hope to have answers.
Regards,
zergosfr:
Hello,
Does it exist somewhere a tutorial to how to make the cfg and ocd scripts for openocd ?
Lets take this as sample :
** mww 0xffffec00 0x0a0a0a0a ← What this red mean ?**
** mww 0xffffec04 0x0b0b0b0b ← What this red mean ?**
i still try to understand from where is this parameters
there is many things i still not understand, as external flash chip can be programmed with Flash command or need absolutely Nand command…
I really hope to have answers.
Regards,
From the user manual (accessed from: http://openocd.berlios.de/doc/pdf/openocd.pdf ):
It looks like mww is used to write word sized data to physical memory. The syntax is
mww [phys] addr word
Someone stop me if I’m wrong, but your line:
mww 0xFFFFEC04 0x0B0B0B0B
Writes the hex value ‘0b0b0b0b’ to the memory at the offset ‘FFFFEC04’.
I’d look through the user manual. It has a lot of good information, and the PDF is search-able.
hello,
thank you for answer, i was understand about write to adr but data to be write i not understand how to know,
like : 0x0b0b0b0b
this was from a cfg file with openocd :
mww 0xffffec00 0x0a0a0a0a
mww 0xffffec04 0x0b0b0b0b
i still tryning to make work flash function on AT91SAM9261 with external flash / ram.
zergosfr:
data to be write i not understand
The answer for that can be found from product datasheet. If the addresses are for AT91SAM9261 then according to [[this](http://www.atmel.com/dyn/resources/prod_documents/doc6062.pdf) datasheet those are SMC (Static Memory Controller) registers that are configured.](http://www.atmel.com/dyn/resources/prod_documents/doc6062.pdf)
SMC = 0xffffec00 this is ok
but this ? = 0x0a0a0a0a
and as i seen AT91SAM9261 not have ECC
i did many reseach and not found anything related to this chipset and openocd, i really dont know what i can do to figure out this… 
zergosfr:
SMC = 0xffffec00 this is ok but this ? = 0x0a0a0a0a
What is it that you do not understand about this? According to specification bits 0-5 are for NWE_SETUP, bits 8-13 for NCS_WR_SETUP etc.
zergosfr:
and as i seen AT91SAM9261 not have ECC
What ECC you are talking about, error-correcting code?
take a look in datasheet of 9261 and 9260, in 9260 is a ECC controller and in 9261 not only it not have it and as i seen this is required to use external memory.