<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/nothing454</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; nothing454]]></copyright><item><title><![CDATA[学习 FreeModbus TCP服务器 在stm32f103上的实现]]></title><link>https://blog.youkuaiyun.com/nothing454/article/details/104720108</link><guid>https://blog.youkuaiyun.com/nothing454/article/details/104720108</guid><author>nothing454</author><pubDate>Sun, 15 Mar 2020 12:16:49 +0800</pubDate><description><![CDATA[最近学习freemodbus 在stm32f103上的实现，有些心得，记录下来。

modbus rtu的实现在网上可以查到很多资料，很容易就成功了。而 modbus tcp的实现，费了一些周折，终于搞明白了。

测试用的是stm32f103c8t6 + enc28j60 + EncEthernet + freemodbus TCP。EncEthernet实现arp + icmp + tcp协议...]]></description><category></category></item><item><title><![CDATA[学习最简单的以太网协议实现EncEthernet]]></title><link>https://blog.youkuaiyun.com/nothing454/article/details/104641711</link><guid>https://blog.youkuaiyun.com/nothing454/article/details/104641711</guid><author>nothing454</author><pubDate>Tue, 03 Mar 2020 23:02:35 +0800</pubDate><description><![CDATA[发现一个很简单的以太网协议实现，网上有人称之为EncEthernet，不知道它的正宗名称是什么，姑且称之为EncEthernet吧。

它只支持ARP、ICMP(ping)、TCP和UDP协议。Keil编译后，ROM占用不到3K，RAM占用不到2K，真是非常mini。

如果单片机资源有限，可以考虑使用EncEthernet。

EncEthernet只有三个文件：

net.h    ...]]></description><category></category></item><item><title><![CDATA[在stm32f103c8t6 上进行无OS移植LWIP]]></title><link>https://blog.youkuaiyun.com/nothing454/article/details/104539145</link><guid>https://blog.youkuaiyun.com/nothing454/article/details/104539145</guid><author>nothing454</author><pubDate>Fri, 28 Feb 2020 09:00:59 +0800</pubDate><description><![CDATA[首先，为什么要做无OS的LWIP呢？原因很简单，因为stm32f103c8t6只有20K的RAM，很难支持OS+LWIP。

无OS的LWIP的一个优点是，可以提高单片机的以太网的响应速度。

LWIP的介绍就不说了，网上查一大把。

我的无OS移植LWIP基于ST官网的一个示例：

STSW-STM32026
			LwIP TCP/IP stack demonstration for STM3...]]></description><category></category></item><item><title><![CDATA[C++里的指针与引用作为函数参数的思考]]></title><link>https://blog.youkuaiyun.com/nothing454/article/details/103281123</link><guid>https://blog.youkuaiyun.com/nothing454/article/details/103281123</guid><author>nothing454</author><pubDate>Wed, 27 Nov 2019 19:20:05 +0800</pubDate><description><![CDATA[如果一个引用与指针作为参数传递给被调函数，从汇编语言角度，有什么异同呢

比如：

void func1(int *p)
{
 *p = *p + 1;
};
void func2(int &amp;r)
{
 r = r + 1;
};

int main()
{
 int a = 1;
 func1(&amp;a);
 func2(a);
  return 0...]]></description><category></category></item><item><title><![CDATA[keil mdk 学习stm32f103C8 IAP笔记]]></title><link>https://blog.youkuaiyun.com/nothing454/article/details/83052281</link><guid>https://blog.youkuaiyun.com/nothing454/article/details/83052281</guid><author>nothing454</author><pubDate>Sun, 14 Oct 2018 23:56:01 +0800</pubDate><description><![CDATA[1. 在学习stm32f103的IAP编程时候，需要生成bin文件，若需要还要生成反汇编文件，可在keil mdk进行如下设置



生成bin文件填入：fromelf.exe --bin -o &quot;$L@L.bin&quot; &quot;#L&quot;

生成反汇编文件填入：fromelf.exe --text -a -c --output=@L_asm.txt &quot;!L&quot;

 

2. 若要将代码片段（不是完整的程序）编译...]]></description><category></category></item><item><title><![CDATA[Keil C 汇编 Segment  段名称命名规则]]></title><link>https://blog.youkuaiyun.com/nothing454/article/details/81738003</link><guid>https://blog.youkuaiyun.com/nothing454/article/details/81738003</guid><author>nothing454</author><pubDate>Thu, 16 Aug 2018 11:11:14 +0800</pubDate><description><![CDATA[Segment Naming Conventions

Objects generated by the Cx51 Compiler (program code, program data, and constant data) are stored in segments which are units of code or data memory. A segment may be reloc...]]></description><category></category></item></channel></rss>