Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid flash type, unknown memory region on STM32F779I #749

Closed
5 tasks done
alexmikhalevich opened this issue Dec 10, 2018 · 8 comments
Closed
5 tasks done

Invalid flash type, unknown memory region on STM32F779I #749

alexmikhalevich opened this issue Dec 10, 2018 · 8 comments

Comments

@alexmikhalevich
Copy link

alexmikhalevich commented Dec 10, 2018

  • Programmer/board type: Stlink/v2-onboard
  • Operating system: Linux 4.14.3
  • Stlink tools version and/or git commit hash: v1.5.0
  • Stlink commandline tool name: st-info, st-flash
  • Target chip (and optional board): STM32F779I-EVAL

When I try to flash my STM32, I get this error:

$ st-flash --reset write intflash.bin 0x8000000
st-flash 1.5.0
2018-12-11T00:52:25 INFO common.c: Loading device parameters....
2018-12-11T00:52:25 WARN common.c: Invalid flash type, please check device declaration
Unknown memory region

It seems, that st-info utility is unable to detect my device:

$ st-info --chipid
0x0000

lsusb output (maybe it would be helpful):

$ lsusb
... 
Bus 001 Device 024: ID 0483:374b STMicroelectronics ST-LINK/V2.1
...
@nit1995
Copy link

nit1995 commented Feb 6, 2019

How did you solve this issue?

@alexmikhalevich
Copy link
Author

@nit1995, it was a problem with power supply. After I fixed my power adapter, all is ok.

@lucaspeixotot
Copy link

My problem is not related to power supply, someone knows how to solve this?

@ngoc-emg
Copy link

I have a same error. Did you have any solution for it? @lucaspeixotot

@skypodolsky
Copy link

The same problem for me.

@TomHyhlik
Copy link

Also stucked with the same problem.

@JasonShiao
Copy link

I have a similar problem in #107 .
I try to short the reset pin to GND and then this Unknown memory region error message is shown too.
I'm using Mac so I am not able to use ST-link Utility for Windows.
So far the only solution works for me is:

  1. Short the reset pin to GND at first
  2. Immediately unplug the reset pin and enter st-flash command simultaneously.
    The timing is critical and it may take several times to succeed.

@susundberg
Copy link

Confirm what @JasonShiao said -- i had similar trouble with STM32F103 "blue pill" board and ST-LINK V2 -- both were (too) cheap. Just adding this comment for rest of ppl out there.

Did several tries push RESET to GND - release the RESET around the time first characters appear to terminal from ST-LINK.

Also had several "unknown chip id! 0x5fa0004" tries -- i would say same root cause

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants