Skip to main content
starlin lin
Associate
August 14, 2017
Question

How to read SFR

  • August 14, 2017
  • 1 reply
  • 1045 views
Posted on August 14, 2017 at 10:25

Dear Sir:

I am using STM32L476, and I have some issue on GPIO setting.

If I only have BIN files, and I want see my SFR value, 

have any tools can do this?, flash my firmware and read SFR value.

At this moment, I am using st-flash read test.bin 0x48000000 0x2000 (-> read GPIO SFR)

And I have modify some GPIO-G's setting, but I see 0x1800 all is 0xFF

Is because I can't read SFR by this way? any other tools can do this?

    This topic has been closed for replies.

    1 reply

    andy b
    Senior
    August 15, 2017
    Posted on August 15, 2017 at 17:09

    Hi Satrlin

    I would suggest that you try it with st utility (

    http://www.st.com/content/st_com/en/products/embedded-software/development-tool-software/stsw-link004.html

     ) This tool might be able to help you see what values you have in your file.You will need an st-link debugger to make this work.

    Good luck

    -Andy