SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By lduck
#138789
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)???