5758 views|11 replies

7462

Posts

2

Resources
The OP
 

XMC4700 Relax 5V shield Review 4 [Copy link]

 
This post was last edited by freebsder on 2018-1-27 03:48 XMC4700 Relax 5V shield 评测4.docx (2.09 MB, downloads: 19) This content was originally created by EEWORLD forum user freebsder. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source



This post is from MCU

Latest reply

Uncle Fu didn't even light the lights or set up the environment...  Details Published on 2018-2-4 20:50
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 

1310

Posts

3

Resources
2
 
XMC4700 Relax 5V shield review 4 Thanks to Infineon for completing the FULL EDITION of XMC4700 Relax Kit, and thanks to the relevant staff of EE for giving us the opportunity to look at the network and SD-related resources. Limited to the purpose of the review, the focus is on the resources provided by Infineon itself and the community resources. The referenceability of the resources provided by Infineon itself can indirectly show the status of this production line in the factory, and the referenceability of the resources provided by the community can also indirectly show the popularity of the product. Network systems and storage systems have always been top modules in any complete scale system, and the content they involve is far from being simply described. Let's talk about community resources first. I looked for a long time, and only found a network library CycloneTCP in the public resources within my range. There are indeed very few resources about Infineon in the community. Most of the popular public systems do not have any trace of Infineon. In other words, except for the undisclosed professional systems and professional fields, Infineon has almost no share, which is a bit of a pity. Of course, the problem may also be that my range is not enough and I have little experience. From the perspective of technology history, the so-called "high-end"/"professional" products have either disappeared, been sold, or transformed into full market coverage. Without exception, they are all dominant companies/products. I hope Infineon can cover the entire market and strengthen community investment. CycloneTCP was originally available for download directly from the Keil repository, but it seems to have been removed in the newer Keil. Although it has been removed from the Keil repository, it does not affect the use of CycloneTCP at all. The code that can be downloaded directly contains examples of web server and ftp client. Both examples support iar, Keil and dave. However, it should be noted that the dave project version in the demo is 3.x, and the latest dave4 cannot be opened. The project is very simple, but the GPL_LICENSE_TERMS_ACCEPTED macro needs to be activated to indicate that we are using GPL-licensed code. After compiling, you can directly burn it. When powered on, use the serial port tool to connect to the virtual serial port carried by the XMC4700 Kit and display the process information, as shown in the black background window part in the figure below. If you use DHCP to obtain the IP address, you can see it here. Visit this IP in the browser to open the homepage provided by the web server. A very complete network example. The xmclib library provided by Infineon is not used here, but cyclonetcp is used to operate the xmc4700 by hand. It mainly consists of two parts: phy and mac driver. They are in the two files drivers/phy/ksz8081_driver.c and drivers/mac/xmc4700_eth_driver.c respectively. As for the mac driver, I personally feel that it is more concise and intuitive than the official xmclib driver in Infineon DAVE. Most importantly, it is more reference-oriented than the simple xmclib driver with a working protocol stack. There are indeed very few community resources to be found. The network protocol stack above is already one of the few systems that support Infineon in high-quality code. I really hope that Infineon can strengthen its coverage of the entire market and strengthen its community investment. The resources provided by Infineon itself are mainly concentrated in the documents on the official website and the various references, libraries, and sample codes contained in DAVE. The official documents are well written, guiding users as complete beginners with no experience. It is very introductory, but it seems a bit overkill for people with some experience. Try it out, isn't it a test of patience? Of course, there are many other device manufacturers whose user manuals have such a low understanding threshold, and they are equally excellent. The sample code provided by Infineon is of great reference value. It includes a web server reference based on lwip protocol stack and rtx rtos, a reference to the typical working mode of IoT, a reference to modbus implementation based on lwip protocol stack and freemodbus, and a USB virtual FAT file system based on LUFA. The most interesting thing is that it provides a reference implementation of online firmware update, which is the popular mbed virtual disk direct drag and drop copy to download binary programs. The document is very detailed, and the details are anxious. Compared with the cyclonetcp mentioned above, the Lwip protocol stack is obviously a work of personal heroism, while the latter is a company-standard mass solidarity and cooperation work. From the perspective of design and code quality, there are still many problems to be solved if lwip is used in products, and the experience of using it is quite painful. I have no experience with cyclonetcp, but if I have the opportunity, I would be very happy to evaluate the quality and stability of cyclonetcp used in products. Compared with online resources, the two materials of modbus and IAP are more valuable for reference. The good thing is that the codes are all in the examples, which are very comprehensive and have detailed code and documentation instructions. Even those who do not use Infineon devices can refer to these two implementations. It should be noted that if you plan to transplant this part of the code in your own project, the relevant part of rtos in dave uses RTX from Keil (which was acquired by ARM a long time ago, and ARM has been controlled by the Japanese). This operating system is the reference implementation of ARM's CMSIS-RTOS, but I know that there are not many people in China who use and are familiar with this system. There is a poll test tool in the Modbus reference that is very practical. Not only does Infineon give you the source code, but Infineon is also worried that you don't have the environment to compile, so it also gives you executable files on Linux, Qnx, Solaris, and Win32 for running tests. The codes for protocol operations generated in the SDMMC app are very practical, neither complicated nor simple. It includes the most commonly used operations such as read, write, and ioctl, as well as commands such as obtaining the size and type of the underlying memory. At the same time, it does not fully implement all the operations required by the protocol, simplifying the complexity. The code quality is very high. I did not do any specific operations on the SD card, but just wanted to see how long it would take to make a basic application with the support of these resources. Maybe I have experience and am familiar with it, so it didn't take much time in total, but I feel that if an inexperienced person were to operate it, it wouldn't take much effort. Finally, there is a feeling of being freed from the cumbersome driver and being able to hold my head high and face the application directly. From the perspective of resources, Infineon has very few external resources. I don’t know whether it is due to the market strategy of Infineon products or the problem of closed industrial ecology. In short, it seems that people in non-traditional automobile and industrial control industries may encounter more or less support and resource problems when they want to use Infineon’s xmc4xxx series MCUs in a wider range of scenarios; in the traditional automobile and industrial control industries, although there are other semiconductor manufacturers that have launched processors based on the ARM Cortex core like Infineon, in most cases, this part of the professional market is not very receptive to Cortex. The information I understand is still inclined to use the stable and precipitated product series that have been verified in the past. The resources provided by Infineon are very detailed and valuable, but the content that a factory can provide is far from being comparable to the richness of content that a prosperous ecology can provide.
This post is from MCU
 
Personal signature

RTEMS

 

1310

Posts

3

Resources
3
 
LZ, I will post the text for you. Although others can't see the pictures, it saves them from downloading them. If you are interested, please download them. I also hope that the group owner can give more guidance on LWIP and cyclonetcp.
This post is from MCU
 
Personal signature

RTEMS

 
 

6040

Posts

204

Resources
4
 
Uncle Free and Brother 4 are awesome
This post is from MCU
 
 
 

1366

Posts

6

Resources
5
 

Uncle Free and Brother 4 are awesome
This post is from MCU
 
Personal signature

1084534438 欢迎交流  [加油,一切皆有可能]

 
 

9720

Posts

24

Resources
6
 
XMC4700 Relax 5V shield Review 4
Thanks to Infineon for completing the FULL EDITION of XMC4700 Relax Kit, and thanks to the relevant staff of EE for giving us the opportunity to look at the resources related to network and SD. Limited to the purpose of the review, the focus is on the resources provided by Infineon itself and the community resources. The referenceability of the resources provided by Infineon itself can indirectly show the status of this production line in the factory, and the referenceability of the resources provided by the community can also indirectly show the popularity of the product. Network systems and storage systems have always been top modules in any complete scale system, and the content they involve is far from being simple to talk about.
Let's talk about community resources first. I looked for a long time, and only found one network library CycloneTCP in the public resources within my range.
There are indeed very few resources about Infineon in the community. Most of the popular public systems do not have any trace of Infineon. In other words, except for the undisclosed professional systems and professional fields, Infineon has almost no share, which is a pity. Of course, the problem may also be that my scope is not enough and my experience is limited. From the perspective of the history of science and technology, the so-called "high-end"/"professional" either disappeared, was sold, or transformed into full market coverage. Without exception, they were all dominant companies/products. I hope Infineon can cover the entire market and strengthen community investment.
CycloneTCP was originally available for direct download in the Keil repository, but it seems to have been removed in the newer Keil. Although it has been removed from the Keil repository, it does not affect the use of CycloneTCP at all. The code for direct download contains examples of web server and ftp client. Both examples support iar, Keil and Dave. However, it should be noted that the Dave project version in the demo is 3.x, and the latest Dave4 cannot be opened.
The project is very simple, but you need to activate the GPL_LICENSE_TERMS_ACCEPTED macro to indicate that we are using GPL-licensed code.
After compiling, you can directly burn it. When powered on, use the serial port tool to connect to the virtual serial port carried by the XMC4700 Kit to display the process information, as shown in the black background window part in the figure below.
If you use DHCP to obtain an IP address, you can see it here. Visit this IP in a browser to open the homepage provided by the web server.
A very complete network example. Here, we do not use the xmclib library provided by Infineon, but use cyclonetcp to operate xmc4700 by hand. It mainly consists of two parts: phy and mac driver. They are located in drivers/phy/ksz8081_driver.c and drivers/mac/xmc4700_eth_driver.c files. I personally feel that the mac driver is more concise and intuitive than the official xmclib driver in Infineon DAVE. Most importantly, it is more reference-oriented than the simple xmclibdriver with a working protocol stack.
There are indeed very few community resources to be found. The network protocol stack above is already one of the few high-quality codes that supports Infineon systems. I really hope that Infineon can strengthen its coverage of the entire market and community investment.
The resources provided by Infineon itself are mainly concentrated in the official website documents and the various references, libraries, and example codes included in DAVE.
The official documents are very well written, guiding users as complete beginners with no experience. It is very introductory, but it seems a bit overkill to people with some experience.
Try it out. Doesn't it test your patience?
Of course, there are many user manuals from other device manufacturers that have such a low understanding threshold, and they are equally excellent.
The sample code provided by Infineon is of great reference value. It includes a reference for a web server based on the lwip protocol stack and rtx rtos, a reference for the typical working mode of the Internet of Things (IOT), a reference for modbus implementation based on the lwip protocol stack and freemodbus, and a USB virtual FAT file system based on LUFA. The most interesting thing is that it provides a reference implementation for updating firmware online. This function is the popular mbed virtual disk that directly drags and copies to download binary programs.
The document is very detailed, and the details are anxious.
Compared with the cyclonetcp mentioned above, the lwip protocol stack is obviously a work of personal heroism, while the latter is a work of mass solidarity and cooperation under the company's specifications. From the perspective of design and code quality, there are still many problems to be dealt with if lwip is used in products, and the experience of using it is quite painful. I have no product experience with cyclonetcp. If I have the opportunity, I am very happy to evaluate the quality and stability of cyclonetcp used in products. Compared with online resources, the two materials of modbus and IAP are more valuable for reference. The good thing is that the codes are all in the examples, which are very comprehensive and have detailed code and documentation. Even those who do not use Infineon devices can refer to these two implementations. It should be noted that if you plan to transplant this part of the code in your own project, the relevant part of the RTOS in Dave uses RTX from Keil (which was acquired by ARM a long time ago, and ARM has also been controlled by the Japanese). This operating system is the reference implementation of ARM's CMSIS-RTOS, but I know that there are not many people in China who use and are familiar with this system. There is a poll test tool in the Modbus reference, which is very practical. 343149 In addition to giving you the source code, Infineon is also worried that you don't have the environment to compile, so it also gives you the executable files on Linux, Qnx, Solaris, and Win32 for running tests. The code generated by SDMMC app for protocol operation is very practical, neither complicated nor simple. It includes the most commonly used operations such as read, write, and ioctl, and commands such as obtaining the size and type of the underlying memory. At the same time, it does not fully implement all the operations required by the protocol, simplifying the complexity. The code quality is very high. I did not do any specific operations on the SD card, but just wanted to see how long it would take to make a basic application with the support of these resources. Maybe I have experience and am familiar with it, so it didn't take much time in total, but I feel that if an inexperienced person were to operate it, it wouldn't take much effort. Finally, there is a feeling of being freed from the cumbersome driver and being able to hold my head high and face the application.
From the perspective of resources, Infineon's external resources are pitifully few. I don't know whether it is due to the market strategy of Infineon's products or the problem of the closed industrial ecosystem. In short, it seems that people in the non-traditional automotive and industrial control industries may encounter more or less support and resource problems when they want to use Infineon's xmc4xxx series MCUs in a wider range of scenarios; in the traditional automotive and industrial control industries, although there are other semiconductor manufacturers that have launched processors based on the ARM Cortex core like Infineon, in most cases, this part of the professional market is not very receptive to Cortex. The information I understand is still inclined to use the stable and precipitated product series that have been verified in the past.
The resources provided by Infineon are very detailed and valuable, but the content that a factory can provide is far from being comparable to the richness of content that a prosperous ecosystem can provide.

image007.png (139.7 KB, downloads: 0)

image007.png
This post is from MCU
 
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 

7462

Posts

2

Resources
7
 
@54chenjq @littleshrimp Thanks to 4ge and xiage for the layout
This post is from MCU

Comments

It's a hooligan to thank you without sending a board  Details Published on 2018-1-29 11:36
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

1366

Posts

6

Resources
8
 
I really haven't learned anything about the network. But I borrowed my uncle's building and ran it in F746. The code comments are very standard. It's very suitable for learning
This post is from MCU
 
Personal signature

1084534438 欢迎交流  [加油,一切皆有可能]

 
 

2700

Posts

0

Resources
9
 
freebsder posted on 2018-1-27 15:23 @54chenjq @littleshrimp Thank you 4ge and xiage for the layout
Thanking without sending a board is just a hooligan
This post is from MCU

Comments

The boards are given away for free. As usual, we only charge for the consecration fee.  Details Published on 2018-1-29 13:33
 
Personal signature作为一个水军,就是尽量的多回帖,因为懂的技术少,所以回帖水分大,见谅!
EEWORLD开发板置换群:309018200,——电工们免费装β的天堂,商家勿入!加群暗号:喵
 
 

7462

Posts

2

Resources
10
 
elvike posted on 2018-1-29 11:36 It’s just rude to say thank you without giving away a board
I’ll give away the board, as per the old rule, I’ll only charge for the consecration fee.
This post is from MCU
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

3414

Posts

0

Resources
11
 
hooly niubility
This post is from MCU
 
Personal signature

So TM what......?

 

 

2774

Posts

8

Resources
12
 
Uncle Fu didn't even light the lights or set up the environment...
This post is from MCU
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list