|
From: Gheorghe G. <roa...@ya...> - 2008-09-23 13:44:44
|
Hello everybody,
I'm new on this development board.
I started to work on a project based on AT91SAM7XC256 and I saw that at91sam7 flash driver from OpenOCD has some issues.
Main issue for me was because my board use an external clock source and I was not able to perform any flash operations with old flash driver, so I start to update it.
Now is finalized but it's not fully tested. All tests were made for AT91SAM7XC256.
Please let me known how can I add these updates to OpenOCD.
Thanks,
Atlas
Improvements:
- a new flash driver command in which you can specify all the configuration parameters (old style command can be used but is not recommended)
Command format:
flash bank <driver> <base_addr> <size> <chip_width> <bus_width> <target_number> [<target_name> <banks> <sectors_per_bank> <pages_per_sector> <page_size> <num_nvmbits> <ext_freq_khz>]
Examples:
flash bank at91sam7 0x00100000 0 0 4 0 0 AT91SAM7XC256 1 16 64 256 3 25000
flash bank at91sam7 0 0 0 0 0 0 0 0 0 0 0 0 25000 (full auto-detection, except for clock)
flash bank at91sam7 0 0 0 0 0 (old style - full auto-detection)
- for modifying gpnvm bit, command is changed, bank number is no more needed, because these bits are valid only for bank 0
- ability to use an external clock source, by specifying in configuration file the frequency in kHz
- if input clock frequency is known, master clock is calculated based on registers values
- no more flash planes, only banks, now all sectors in a bank are displayed correctly, also in case flash has more than one bank, driver will be able to handle this also by creating a new flash_bank_s element
- sectors can be erased, locked or unlocked individually
- over-clocking capability ... :-)
|