Forum: Mikrocontroller und Digitale Elektronik stm32f030 problem!


von icelon (Gast)


Lesenswert?

Hallo, ich habe dieses Problem und ich weiß nicht, warum es ist ... Ich 
benutze die LED blinken von 
https://github.com/jjflash65/stm32f030/tree/master/blinky die Wahrheit, 
ich weiß nicht, was passiert ist


st-flash write blinky.bin 0x8000000
st-flash 1.4.0-20-gaf4d2eb
2018-03-30T19:57:22 INFO common.c: Loading device parameters....
2018-03-30T19:57:22 INFO common.c: Device connected is: F0 small device, 
id 0x10006444
2018-03-30T19:57:22 INFO common.c: SRAM size: 0x1000 bytes (4 KiB), 
Flash: 0x4000 bytes (16 KiB) in pages of 1024 bytes
2018-03-30T19:57:22 INFO common.c: Attempting to write 1148 (0x47c) 
bytes to stm32 address: 134217728 (0x8000000)
Flash page at addr: 0x08000400 erased
2018-03-30T19:57:22 INFO common.c: Finished erasing 2 pages of 1024 
(0x400) bytes
2018-03-30T19:57:22 INFO common.c: Starting Flash write for 
VL/F0/F3/F1_XL core id
2018-03-30T19:57:22 INFO flash_loader.c: Successfully loaded flash 
loader in sram
2018-03-30T19:57:25 ERROR flash_loader.c: flash loader run error
2018-03-30T19:57:25 ERROR common.c: stlink_flash_loader_run(0x8000000) 
failed! == -1
stlink_fwrite_flash() == -1
../lib/libopencm3.mk:49: fallo en las instrucciones para el objetivo 
'flash'
make: *** [flash] Error 255

von Nop (Gast)


Lesenswert?

icelon schrieb:

> st-flash write blinky.bin 0x8000000

Bist Du Dir sicher, daß Du das Programm wirklich ins RAM laden willst? 
Ist das Binfile überhaupt fürs RAM gelinkt?

von pegel (Gast)


Lesenswert?

0x8000000 ist schon Flash, aber vielleicht das Problem wie hier?

https://github.com/texane/stlink/issues/269

von Nop (Gast)


Lesenswert?

Äh.. Kommando zurück, 0x8000000 ist das Flash-ROM.

von icelon (Gast)


Lesenswert?

Autor: Nop (Gast)

st-flash write blinky.bin 0x8000000


st-flash 1.4.0-20-gaf4d2eb
2018-03-30T22:18:01 INFO common.c: Loading device parameters....
2018-03-30T22:18:01 INFO common.c: Device connected is: F0 small device, 
id 0x10006444
2018-03-30T22:18:01 INFO common.c: SRAM size: 0x1000 bytes (4 KiB), 
Flash: 0x4000 bytes (16 KiB) in pages of 1024 bytes
2018-03-30T22:18:01 INFO common.c: Attempting to write 1148 (0x47c) 
bytes to stm32 address: 134217728 (0x8000000)
Flash page at addr: 0x08000400 erased
2018-03-30T22:18:01 INFO common.c: Finished erasing 2 pages of 1024 
(0x400) bytes
2018-03-30T22:18:01 INFO common.c: Starting Flash write for 
VL/F0/F3/F1_XL core id
2018-03-30T22:18:01 INFO flash_loader.c: Successfully loaded flash 
loader in sram
2018-03-30T22:18:01 ERROR flash_loader.c: write error, count == 512
2018-03-30T22:18:01 ERROR common.c: stlink_flash_loader_run(0x8000000) 
failed! == -1
stlink_fwrite_flash() == -1

von icelon (Gast)


Lesenswert?

Nop (Gast)

ist das Skript Ich benutze direkt die Marke der Adresse von git Hub mit 
der Option make flash






pegel (Gast)
Ich habe alle möglichen Lösungen gelesen und bleibt gleich

von pegel (Gast)


Lesenswert?

Jetzt gibt es eine andere Meldung?
Dann setz mal die Geschwindigkeit runter.

von pegel (Gast)


Lesenswert?

Zum testen deine Hardware kannst du auch den STM32Cube Programmer 
probieren.

von icelon (Gast)


Lesenswert?

wieder ändern, mit der Option reset (st-flash) macht den Versuch, ich 
sehe den Prozess mit st-term, mehrere Male zurückgesetzt, laden und 
laufen, wenn ich den Code neu laden muss alles wieder beginnt

von pegel (Gast)


Lesenswert?

verstehe ich jetzt nicht so ganz.

http://www.st.com/en/development-tools/stm32cubeprog.html

Den benutze ich unter Linux. Es gibt eine Kommando Zeilen Version die 
sich in das Makefile einbauen lässt.

von Ice L. (Firma: developer) (icelon)


Lesenswert?

ist eine finale Anwendung, ein Modul für die Erfassung von 
landwirtschaftlichen Daten, wenn ich es ein wenig mehr profiliere, werde 
ich es in das Forum hochladen, damit Sie einen Kommentar abgeben können 
... natürlich, wenn ich blitzen kann ...

von pegel (Gast)


Lesenswert?


von Ice L. (Firma: developer) (icelon)


Lesenswert?

Ich werde versuchen, den stm32cube zu benutzen, ... wenn es funktioniert 
DANKE !!!!!

von Ice L. (Firma: developer) (icelon)


Lesenswert?

STM32_Programmer.sh -c port=SWD -w blinky.bin  0x08000000
      -------------------------------------------------------------------
                        STM32CubeProgrammer v1.0.0
      -------------------------------------------------------------------

ST-LINK Firmware version : V2J30S7
SWD frequency = 4000 KHz
Connection mode: Normal
Device ID: 0x444

Device name:  STM32F030x4/F030x6
Device type:  MCU
Device CPU :  Cortex_M0


Memory Programming ...
Openeing and parsing file: blinky.bin
  File          : blinky.bin
  Size          : 1148 Bytes
  Address       : 0x08000000


Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 1]
Download in Progress:
[==================================================] 100%

File download complete
Time elapsed during the download operation is: 00:00:00.154

DANKE !!!!!

von pegel (Gast)


Lesenswert?

Bitte

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.