2014-05-31 07:51 AM
I'm a student of University of Tunisia and I'm using IAR Embedded Workbench for ARM, v. 7.10, 32K Kickstart Edition on WIndows 7...
I am
currently
alternating
,and my
first
project is to
establish communication between
my computer
and
STM3221g-eval
ethernet
connection
.I
focused on creating
blocks
of the function that
will allow
to transform
a file request
by my client
(web
browser)
on appeal from
subroutine.
#!rocketscience2014-05-31 08:23 AM
There should be a couple of ethernet examples under the Design Resources of the F2 chip you are using. For example the LwIP and IAP ones, the former has a simple web server, this could be modified using other code in the firmware library to read data off an SD card. I think I've had a discussion about an F2 or F4 (near identical for interfaces) http server using files off a card.
2014-05-31 09:23 AM
how to implement
tcp
/ ip
stack
in the board,
and
how to initialize
the
Ethernet
Port
...2014-05-31 09:40 AM
Google ''STM3221G-EVAL''
http://www.st.com/web/en/catalog/tools/PF251702
Click ''DESIGN RESOURCES'' tab Download board and platform examples Google ''STM32F217IG
''http://www.st.com/web/en/catalog/mmc/FM141/SC1169/SS1575/LN9/PF250172
Click ''DESIGN RESOURCES'' tab Search ''TCP'' or ''LWIP''http://www.st.com/web/en/catalog/tools/PF257896
Scroll to the bottom, Click DOWNLOAD There should be examples in there of a web server, and other TCP/IP examples, using Ethernet, and initializing your board's hardware. REVIEW2014-05-31 10:35 AM
2014-05-31 11:03 AM
Ok,. you'll want to review documentation for your board, and any associated README.TXT type file with the source. You might have to configure specific jumper setting, or settings within the code, depending on how the clocks are generated (external crystal vs MCO pin PA8), MII/RMII modes of PHY, etc.
Think also how device is cabled. Standard cable to a hub/switch, a cross-over cable if connected directly to a PC. The latter might also have issue with the assignment of IP address fixed, or via DHCP. I would generally connect to a router/nat type device that provided DHCP based IP in common subdomain to PC and EVAL board.2014-06-01 10:35 AM
2014-06-01 10:36 AM
with the notion of the web server.
I know this is a stupid app for you , but I find it difficult to achieve.
If you can
spend some
of your time to
help me
and i would be grateful thanks.2014-06-01 03:05 PM
Still, you really should be old enough to do this by yourself, and I learn nothing from the exercise.
Make sure your board is jumpered correctly, and that the software you are building has the right configurations. That the network setting for the MAC and IP addresses are appropriate for what you are attaching it too. If this is not a new board you might want to check the clocks look right and nothing has been modified.http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00025pdf
pg 17? STM32F2x7_ETH_LwIP_V1.1.0\Project\Standalone\httpserver\EWARM\Project.eww STM32F2x7_ETH_LwIP_V1.1.0\Project\Standalone\httpserver\inc\main.h/* MII and RMII mode selection, for STM322xG-EVAL Board(MB786) RevB ***********/
//#define RMII_MODE // User have to provide the 50 MHz clock by soldering a 50 MHz
// oscillator (ref SM7745HEV-0M or equivalent) on the U3
// footprint located under CN3 and also removing jumper on JP5.
// This oscillator is not provided with the board.
// For more details, please refer to STM3220G-EVAL evaluation
// board User manual (UM1057).
#define MII_MODE
/* Uncomment the define below to clock the PHY from external 25MHz crystal (only for MII mode) */
#ifdef MII_MODE
#define PHY_CLOCK_MCO
#endif
/* STM322xG-EVAL jumpers setting
+==========================================================================================+
+ Jumper | MII mode configuration | RMII mode configuration +
+==========================================================================================+
+ JP5 | 2-3 provide 25MHz clock by MCO(PA8) | Not fitted +
+ | 1-2 provide 25MHz clock by ext. Crystal | +
+ -----------------------------------------------------------------------------------------+
+ JP6 | 2-3 | 1-2 +
+ -----------------------------------------------------------------------------------------+
+ JP8 | Open | Close +
+==========================================================================================+
*/
2014-06-02 06:22 AM
this step
..
but the problem of
the initiation of
the port
ethernet
remains
...
I get
always
this
error
''
ETHERNETINIT
FAILED''
..
thank you