You are here

STM32 fejlesztőkártya programozása

11 posts / 0 new
Last post
Jaca
Jaca picture
*****

Sziasztok!

Hozzájutottam a bolhapiacon egy STM32F042K6-os fejlesztőpanelhez:
https://shop.mystm32.de/index.php?sp=article.sp.php&artID=200195
Illetve fogok kapni még egy STM32F429I fejlesztőkártyát.
https://www.hestore.hu/prod_10041888.html#

A kérdésem az lenne, milyen szoftverrel lehet ezet az eszközöket programozni? 
Az első panel csak szórakozáshoz lenne, a második viszont fontosabb, egy GOWIN FPGA-ra kell rátöltenem a szoftvert. Az STM32 kártyához való szoftvert már megkaptam a GOWIN supporttól, de gondolom azt mág rá kell töltenem a fejlesztőkártyára is.

Minden segítséget előre köszönök!

Comments
Jaca
Jaca picture
*****

Sziasztok!
Sehogy sem sikerül. Az RS232 (CH340) működik. Az normális, hogy ha terminálban megnyitom a soros portot, akkor látszik, amit írok? Ez csak akkor szokott lenni, ha az RX-TX össze van kötve, vagy élő eszköz van rákötve.
Beállítások:
115200 8 1 even
logfile:

07:36:05 : STM32CubeProgrammer API v2.19.0 | Windows-64Bits 
07:36:30 : UR connection mode is defined with the HWrst reset mode
07:36:30 : RTS low
07:36:30 : DTR low
07:36:30 : Serial Port COM3 is successfully opened.
07:36:30 : Port configuration: parity = even, baudrate = 115200, data-bit = 8,                     stop-bit = 1.0, flow-control = off
07:36:30 : Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again... 
07:36:44 : UR connection mode is defined with the HWrst reset mode
07:36:44 : RTS low
07:36:44 : DTR low
07:36:44 : Serial Port COM3 is successfully opened.
07:36:44 : Port configuration: parity = even, baudrate = 115200, data-bit = 8,                     stop-bit = 1.0, flow-control = off
07:36:44 : Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again... 
07:37:08 : UR connection mode is defined with the HWrst reset mode
07:37:08 : RTS low
07:37:08 : DTR low
07:37:08 : Serial Port COM8 is successfully opened.
07:37:08 : Port configuration: parity = even, baudrate = 115200, data-bit = 8,                     stop-bit = 1.0, flow-control = off
07:37:08 : Activating device: OK
07:37:08 : Board       : --
07:37:08 : Chip ID: 0x445 
07:37:08 : BootLoader protocol version: 3.1
07:37:11 : Timeout error occured while waiting for acknowledgement.
07:37:11 : Error: GETID command not acknowledged!
07:37:12 : Reemission of GetID command
07:37:14 : Timeout error occured while waiting for acknowledgement.
07:37:14 : Error: GETID command not acknowledged!
07:37:14 : Reemission of GetID command
07:37:16 : Timeout error occured while waiting for acknowledgement.
07:37:16 : Error: GETID command not acknowledged!
07:37:17 : Disconnected from device.
07:38:16 : UR connection mode is defined with the HWrst reset mode
07:38:16 : RTS low
07:38:16 : DTR low
07:38:16 : Serial Port COM8 is successfully opened.
07:38:16 : Port configuration: parity = even, baudrate = 115200, data-bit = 8,                     stop-bit = 1.0, flow-control = off
07:38:16 : Activating device: OK
07:38:16 : Board       : --
07:38:16 : Chip ID: 0x445 
07:38:16 : BootLoader protocol version: 3.1
07:38:17 : Device Read Unprotect requested
07:38:57 : Timeout error occured while waiting for acknowledgement.
07:38:57 : Error: GETID command not acknowledged!
07:38:57 : Reemission of GetID command
07:38:57 : Timeout error occured while waiting for acknowledgement.
07:38:57 : Error: GETID command not acknowledged!
07:38:57 : Reemission of GetID command
07:38:57 : Timeout error occured while waiting for acknowledgement.
07:38:57 : Error: GETID command not acknowledged!
07:38:57 : Error: RDP is set to level 1 or target is held under reset, try using Read UnProtect (-rdu) command in order to remove the Read Out Protection.
07:38:57 : UPLOADING OPTION BYTES DATA ...
07:38:57 :   Bank          : 0x00
07:38:57 :   Address       : 0x1ffff800
07:38:57 :   Size          : 16 Bytes
07:38:57 : Timeout error occured while waiting for acknowledgement.
07:38:57 : Error: READ command not acknowledged at address: 0x1FFFF800
07:38:57 : Error: Uploading Option Bytes bank: 0 failed
07:38:57 : Error: Initializing the Option Bytes failed
07:38:57 : Disconnected from device.
 

0

tvdoktor
tvdoktor picture

Szia

Ha hamis a chip a cubeval semmit nem tudsz csinálni érdemben.
ST-link is van ami hamis.
ST-link-v2 van ilyened? Ezzel tudsz csatlakozni.>>>>>SWCLK>>SWDIO>>GND>3.3V az STM-hez
Töltsél le egy flash doownloader demonstratort
Meg kell egy STM32 ST link utility ........itt van info is.
Ha usb vel akarsz csatlakozni akkor oda kell egy pár dolog.....
Ardunioval is lehet  oda is kell egy pár dolog >>>>driver a gépre sofware bootloader az stm-re,,,kevés az infó
A Mecrisp-Stellaris Forth M0, M3, M4 és M7 ARM Cortex M chipeken fut,,,,,nézz utána

Ha van bluepill modulod és meg tudsz egy ledet villogtatni azzal sok infóhoz jutsz.

0

Jaca
Jaca picture
*****

Szia!

A flashdownloaderrel tudtam törölni, köszi.
Már csak kellene rá egy kis program, amivel legalább egy kimenetet kapcsoltatok. Vagy bármi, s19 kiterjesztéssel.

És már megy cube-bal is.
Ezer köszi!

0

tvdoktor
tvdoktor picture

Szia
Mit töröltél le? ugye nem a boot loadert?

 */

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin PB1 as an output.
  pinMode(PC13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(PC13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(PC13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

A kimenetet átírod arra amelyikre gondolod /tehát a PC13 mind a három helyen át írod/ ezt csak arduino ide-vel tudod rátenni..
Vagy lefordítod bin vagy hex -re
Egy FTDI-vel az RX TX re csatlakozol,,,  ha van jumper át kell tenni írás olvasáskor ,,,,nézz utána van amelyikre csak 3.3v mehet

0

Jaca
Jaca picture
*****

Szia!
Nem, arra figyeltem. Csak a user memóriatartalmat.

0

kovacsna
kovacsna picture
*

Szia!

Kapcsoldi ki a local echot a terminálodban.

Rádugott eszköznél sem mindig van amúgy. Attól függ , hogy megírták-e benne az echo-t.

KN

 

0

Jaca
Jaca picture
*****

Szia!

Teraterm van fent, alapból nincs bekapcsolva. Úgy szoktam tesztelni a soros eszközt, hogy összekötöm az RX-TX-t, akkor szoktam látni, amit írok.

0

zus
zus picture

Már vésték és én is így csináltam, ArduinoIDE-vel.

0

pumi
pumi picture

0

szoke
szoke picture

Szia

Én STM32-őt ArduinoIDE-vel programoztam.

üdv: Szőke

0

Sponsored links