TCP/IP example for Mikromedia plus for STM32 ARM MikroPascal

General discussion on mikroPascal PRO for ARM.
Post Reply
Author
Message
reba
Posts: 5
Joined: 22 Jan 2015 11:58

TCP/IP example for Mikromedia plus for STM32 ARM MikroPascal

#1 Post by reba » 22 Jan 2015 12:13

I am trying to develop TCP connection over internal Ethernet on Mikromedia plus for STM32. I have seen the library notes on http://www.mikroe.com/mikropascal/arm/libraries/
The example codes in the documents are somehow for Stellaris MCU. So i need to see some example codes for Ethernet used on stm32 M4.

Can any body give example codes about the ethernet or TCP usage on STM32 on mikroPascal for ARM.

:?:

User avatar
nemanja.nikolic
Posts: 171
Joined: 01 Dec 2014 10:50

Re: TCP/IP example for Mikromedia plus for STM32 ARM MikroPa

#2 Post by nemanja.nikolic » 23 Jan 2015 14:16

Hello,

Library for STM32:
http://www.libstock.com/projects/view/1 ... et-library
You can chose example for STM32 look at attach.

Nemanja.

Best regards.
Attachments
STM32.JPG
STM32.JPG (102.57 KiB) Viewed 5407 times

reba
Posts: 5
Joined: 22 Jan 2015 11:58

Re: TCP/IP example for Mikromedia plus for STM32 ARM MikroPa

#3 Post by reba » 26 Jan 2015 08:14

Thank you for the reply.

I have a mikromedia Plus for STM32 + mikromedia Plus for STM32 Shield which has an ethernet connection on it.

My question is about ethernet internal. It seems SPI_ethernet have more examples.
help1.png
help1.png (194.77 KiB) Viewed 5396 times
I am trying to use this help as you see the Ethernet_Intern_Init command differs for Stellaris MCU and ST MCU.
And then you can see that in the example part of help there is no select option for MCUs.
help2.png
help2.png (185.45 KiB) Viewed 5396 times
So I could not find any satisfying example for ethernet internal and any information for the

Code: Select all

module : ^const Module_Struct

in the init function...

Code: Select all

// for ST MCUs 
function Ethernet_Intern_Init(var mac : array[6] of byte; var ip : array[4] of byte; config : byte; module : ^const Module_Struct) : byte;
Questions :

1. Can you please give an example usage of the Ethernet_intern_init?

2. how to install or open the .mpkg file on a mikropascal compiler ?

Best regards.

User avatar
nemanja.nikolic
Posts: 171
Joined: 01 Dec 2014 10:50

Re: TCP/IP example for Mikromedia plus for STM32 ARM MikroPa

#4 Post by nemanja.nikolic » 26 Jan 2015 10:29

Hello,

You have example in your compiler:
\Examples\ST\Development Systems\EasyMx PRO v7 for STM32 ARM\Ethernet Demo\

For mpkg file you need package manager:
http://www.mikroe.com/package-manager/

Nemanja.

Best regards.

reba
Posts: 5
Joined: 22 Jan 2015 11:58

Re: TCP/IP example for Mikromedia plus for STM32 ARM MikroPa

#5 Post by reba » 26 Jan 2015 10:40

Thanks. I will check them and let you know.

regards.

reba
Posts: 5
Joined: 22 Jan 2015 11:58

Re: TCP/IP example for Mikromedia plus for STM32 ARM MikroPa

#6 Post by reba » 26 Jan 2015 16:21

i have installed the package manager

The libarary list on the file is not the same as the one installed on the compiler is that correct?
help3.jpg
help3.jpg (409.26 KiB) Viewed 5379 times
help4.jpg
help4.jpg (30.46 KiB) Viewed 5379 times
as you see the compiler does not have Net_Ethernet_Intern_STM32

in the library list.

regards.

User avatar
nemanja.nikolic
Posts: 171
Joined: 01 Dec 2014 10:50

Re: TCP/IP example for Mikromedia plus for STM32 ARM MikroPa

#7 Post by nemanja.nikolic » 27 Jan 2015 10:57

Hello,

Ethernet library designed to simplify handling of the underlying hardware (ENC24J600/ENC28J60 and internal ethernet module on PIC18, PIC32, TIVA and STM32). Library supports: TCP Stack (Server/Client), UDP, IPv4 protocol, ARP requests, ICMP echo requests, ARP client with cache, DNS client, DHCP client.
Is not same library but you can use for internal ethernet module.

Nemanja.

Best regards.
Attachments
netETH.PNG
netETH.PNG (31.67 KiB) Viewed 5371 times

reba
Posts: 5
Joined: 22 Jan 2015 11:58

Re: TCP/IP example for Mikromedia plus for STM32 ARM MikroPa

#8 Post by reba » 27 Jan 2015 13:08

Thank you for the reply...

As I realized later, the library names are changed with device selected. So if you select STM32F107 Net_Ethernet_Intern_Defs_STM32F107 is seen... if you select STM32F407 device selected, Net_Ethernet_Intern_Defs_STM32 is seen...
help5.jpg
help5.jpg (116.92 KiB) Viewed 5370 times
help6.jpg
help6.jpg (113.39 KiB) Viewed 5370 times
Best regards.

Post Reply

Return to “mikroPascal PRO for ARM General”