driver at91sam7 handling 2 (or more) banks

Open source ARM Debugger

Moderator: phalanx

driver at91sam7 handling 2 (or more) banks

Postby lduck » Wed Jan 25, 2012 10:02 am

Hi,
I'm experiencing problem with driver for at91sam7 when I'm using at91sam7x512, which has 2 flash banks? what is the correct way to configure it?
the problem is, that whit "autodetection" it sets 2 banks, but the bank->name of the second bank is not set, what creates segfault.

I was thinking about setting the t_bank->name in src/flash/nor/at91sam7.c around line 884, but I'm not sure, if this is the best place and if I didn't miss something. Also how should I name it??

if I understand right, in configuration script is a place for name for flash, and also for numbers of banks. But if I have tow or more banks, and give them one name, then what should return functions like "get_flash_bank_by_name"(line 200 in src/flash/nor/core.c)???
lduck
 
Posts: 1
Joined: Wed Jan 25, 2012 9:28 am


Return to OpenOCD

Who is online

Users browsing this forum: No registered users and 1 guest