cancel
Showing results for 
Search instead for 
Did you mean: 

stm32L100 can not access flash (0x8000000)

huang
Associate

Moved from MPUs section - STM32L100 is an MCU, not an MPU


I compare this my layout board (with outer st-linkv2 connected), and stm32l100c disco.

stm32l100c disco does not have such a question.

2284530.jpg

 

It will show "Error 57: Illegal Address(0x8000000)".

And I disable download to flash, this error is disappeared.

However, the program runs in 0x1ffffxxxx,not flash (0x8000000). It won't run my codes (no flash could be found?).

 

I could not run my codes after download, either.

But I am totally sure these codes could be executed in stm32l100c disco.

And help?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

Is BOOT0 pulled down?

0x1FFFxxxx indicates it's running the system bootloader. See AN2606 for all ways that can happen. Usually it's because BOOT0 is floating or pulled up.

 

You can change option bytes such that user flash is always executed, if that's what you want. Connect over SWD in STM32CubeProgrammer and use the OB tab to change.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
TDK
Super User

Is BOOT0 pulled down?

0x1FFFxxxx indicates it's running the system bootloader. See AN2606 for all ways that can happen. Usually it's because BOOT0 is floating or pulled up.

 

You can change option bytes such that user flash is always executed, if that's what you want. Connect over SWD in STM32CubeProgrammer and use the OB tab to change.

If you feel a post has answered your question, please click "Accept as Solution".
Andrew Neil
Super User

Welcome to the forum.

 


@huang wrote:

 

 this my layout board


You mean you're working on a custom-designed board?

Then you need to show your schematic - see: How to write your question to maximize your chances to find a solution.

 

How to take  a screenshot: 

https://www.techrepublic.com/article/how-to-take-screenshots-in-windows-10/

this will give much better results than a photograph of the screen!

 

#HowToTakeAScreenshot

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.