cancel
Showing results for 
Search instead for 
Did you mean: 

How does the single bank mode operate exactly?

PScal
Associate III

If have read the RM0456 and could not found a detailed description.

If I switch the option byte DUALBANK to 0 single-bank mode, what will happen if I access a address which is normally supposed to be in bank 2? Do I get a memory access error?

So is my assumption correct?

That would mean switching on the single bank mode of a 2MB device, I can only used 1MB of the first bank?

best regards

P.

1 ACCEPTED SOLUTION

Accepted Solutions
Diane POMABIA
ST Employee

Hi @PScal​ 

If you switch the option byte DUALBANK to 0 single-bank mode and try to access to an address which is normally supposed to be in bank 2, you will have an hardfault.

Q: That would mean switching on the single bank mode of a 2MB device, I can only used 1MB of the first bank?

R: yes

Regards

DianeP

View solution in original post

2 REPLIES 2
Diane POMABIA
ST Employee

Hi @PScal​ 

If you switch the option byte DUALBANK to 0 single-bank mode and try to access to an address which is normally supposed to be in bank 2, you will have an hardfault.

Q: That would mean switching on the single bank mode of a 2MB device, I can only used 1MB of the first bank?

R: yes

Regards

DianeP

Thanks for the great and fast answer: @DianeP