{"id":2693,"date":"2019-07-01T08:49:34","date_gmt":"2019-07-01T08:49:34","guid":{"rendered":""},"modified":"2019-07-01T16:50:04","modified_gmt":"2019-07-01T08:50:04","slug":"stm32%e5%b5%8c%e5%85%a5%e5%bc%8f%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e7%9a%84%e7%89%b9%e7%82%b9%e4%bb%a5%e5%8f%8a%e4%b8%8d%e8%b6%b3","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2693","title":{"rendered":"stm32\u5d4c\u5165\u5f0f\u64cd\u4f5c\u7cfb\u7edf\u7684\u7279\u70b9\u4ee5\u53ca\u4e0d\u8db3"},"content":{"rendered":"

\n\tSTM32<\/u>\u7cfb\u521732\u4f4d\u5fae\u63a7\u5236\u5668\uff0c\u57fa\u4e8eARM<\/u> Corte<\/u>x-M3\u5904\u7406\u5668\u3002\u5b83\u80fd\u652f\u630132\u4f4d\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u652f\u6301\u5305\u62ec\u9ad8\u6027\u80fd\u3001\u5b9e\u65f6\u529f\u80fd\u3001\u6570\u5b57\u4fe1\u53f7\u5904\u7406\uff0c\u548c\u4f4e\u529f\u8017\u3001\u4f4e\u7535\u538b\u64cd\u4f5c\uff0c\u540c\u65f6\u62e5\u6709\u4e00\u4e2a\u5b8c\u5168\u96c6\u6210\u548c\u6613\u7528\u7684\u5f00\u53d1\u3002\u57fa\u4e8eSTM\u5e73\u53f0\u4e14\u6ee1\u8db3\u5b9e\u65f6\u63a7\u5236\u8981\u6c42\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6709\u4ee5\u4e0b4\u79cd\u53ef\u4f9b\u9009\u62e9\u3002\u5206\u522b\u4e3aμC\/OS-II\u3001μClinux<\/u>\u3001eCos\u3001FreeRTOS<\/u>\u548c\u90fd\u6c5f\u5830\u64cd\u4f5c\u7cfb\u7edf(djyos)\u3002\u4e0b\u9762\u5206\u522b\u4ecb\u7ecd\u8fd9\u4e94\u79cd\u5d4c\u5165\u5f0f\u64cd\u4f5c\u7cfb\u7edf\u7684\u7279\u70b9\u53ca\u4e0d\u8db3\u3002<\/p>\n

\n\tμC\/OS-II \u662f\u4e00\u79cd\u57fa\u4e8e\u4f18\u5148\u7ea7\u7684\u62a2\u5360\u5f0f\u591a\u4efb\u52a1\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5305\u542b\u4e86\u5b9e\u65f6\u5185\u6838\u3001\u4efb\u52a1\u7ba1\u7406\u3001\u65f6\u95f4\u7ba1\u7406\u3001\u4efb\u52a1\u95f4\u901a\u4fe1\u540c\u6b65(\u4fe1\u53f7\u91cf\uff0c\u90ae\u7bb1\uff0c\u6d88\u606f \u961f\u5217)\u548c\u5185\u5b58\u7ba1\u7406\u7b49\u529f\u80fd\u3002\u5b83\u53ef\u4ee5\u4f7f\u5404\u4e2a\u4efb\u52a1\u72ec\u7acb\u5de5\u4f5c\uff0c\u4e92\u4e0d\u5e72\u6d89\uff0c\u5f88\u5bb9\u6613\u5b9e\u73b0\u51c6\u65f6\u800c\u4e14\u65e0\u8bef\u6267\u884c\uff0c\u4f7f\u5b9e\u65f6\u5e94\u7528\u7a0b\u5e8f\u7684\u8bbe\u8ba1\u548c\u6269\u5c55\u53d8\u5f97\u5bb9\u6613\uff0c\u4f7f\u5e94\u7528\u7a0b\u5e8f\u7684\u8bbe\u8ba1\u8fc7\u7a0b\u5927\u4e3a\u51cf\u5316\u3002<\/p>\n

\n\t <\/div>\n

\n\tμC\/OS-II\u662f\u5728μC\/OS\u7684\u57fa\u7840\u4e0a\u53d1\u5c55\u8d77\u6765\u7684\uff0c\u662f\u7528C\u8bed\u8a00\u7f16\u5199\u7684\u4e00\u4e2a\u7ed3\u6784\u5c0f\u5de7\u3001\u62a2\u5360\u5f0f\u7684\u591a\u4efb\u52a1\u5b9e\u65f6\u5185\u6838\u3002μC\/OS-II\u80fd\u7ba1\u740664\u4e2a\u4efb\u52a1\uff0c\u5e76\u63d0\u4f9b\u4efb\u52a1\u8c03\u5ea6\u4e0e\u7ba1\u7406\u3001\u5185\u5b58\u7ba1\u7406\u3001\u4efb\u52a1\u95f4\u540c\u6b65\u4e0e\u901a\u4fe1\u3001\u65f6\u95f4\u7ba1\u7406\u548c\u4e2d\u65ad\u670d\u52a1\u7b49\u529f\u80fd\uff0c\u5177\u6709\u6267\u884c\u6548\u7387\u9ad8\u3001\u5360\u7528\u7a7a\u95f4\u5c0f\u3001\u5b9e\u65f6\u6027\u80fd\u4f18\u826f\u548c\u6269\u5c55\u6027\u5f3a\u7b49\u7279\u70b9\u3002<\/p>\n

\n\t\"stm32\u5d4c\u5165\u5f0f\u64cd\u4f5c\u7cfb\u7edf\u7684\u7279\u70b9\u4ee5\u53ca\u4e0d\u8db3\"<\/p>\n

\n\t\u5bf9\u4e8e\u5b9e\u65f6\u6027\u7684\u6ee1\u8db3\u4e0a\uff0c\u7531\u4e8eμC\/OS-II\u5185\u6838\u662f\u9488\u5bf9\u5b9e\u65f6\u7cfb\u7edf\u7684\u8981\u6c42\u8bbe\u8ba1\u5b9e\u73b0\u7684\uff0c\u6240\u4ee5\u53ea\u652f\u6301\u57fa\u4e8e\u56fa\u5b9a\u4f18\u5148\u7ea7\u62a2\u5360\u5f0f\u8c03\u5ea6;\u8c03\u5ea6\u65b9\u6cd5\u7b80\u5355\uff0c\u53ef\u4ee5\u6ee1\u8db3\u8f83\u9ad8\u7684\u5b9e\u65f6\u6027\u8981\u6c42\u3002μC\/OS-II \u7684\u9c9c\u660e\u7279\u70b9\u5c31\u662f\u6e90\u7801\u516c\u5f00\uff0c\u4fbf\u4e8e\u79fb\u690d\u548c\u7ef4\u62a4\u3002<\/p>\n

\n\t\u5728\u5185\u5b58\u7ba1\u7406\u4e0a\uff0cμC\/OS-II\u628a\u8fde\u7eed\u7684\u5927\u5757\u5185\u5b58\u6309\u5206\u533a\u6765\u7ba1\u7406\uff0c\u6bcf\u4e2a\u5206\u533a\u4e2d\u90fd\u5305\u542b\u6574\u6570\u4e2a\u5927\u5c0f\u76f8\u540c\u7684\u5185\u5b58\u5757\uff0c\u4f46\u4e0d\u540c\u5206\u533a\u4e4b\u95f4\u5185\u5b58\u7684\u5927\u5c0f\u53ef\u4ee5\u4e0d\u540c\u3002\u7528\u6237\u52a8\u6001\u5206\u914d\u5185\u5b58\u65f6\uff0c\u53ea\u987b\u9009\u62e9\u4e00\u4e2a\u9002\u5f53\u7684\u5206\u533a\uff0c\u6309\u5757\u6765\u5206\u914d\u5185\u5b58\uff0c\u91ca\u653e\u65f6\u5c06\u8be5\u5757\u653e\u56de\u5230\u4ee5\u524d\u6240\u5c5e\u7684\u5206\u533a\uff0c\u8fd9\u6837\u5c31\u6d88\u9664\u4e86\u56e0\u591a\u6b21\u52a8\u6001\u5206\u914d\u548c\u91ca\u653e\u5185\u5b58\u6240\u5f15\u8d77\u7684\u788e\u7247\u95ee\u9898\u3002<\/p>\n

\n\t\u5728\u6587\u4ef6\u7cfb\u7edf\u7684\u652f\u6301\u65b9\u9762\uff0c\u7531\u4e8eμC\/OS-II\u662f\u9762\u5411\u4e2d\u5c0f\u578b\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\uff0c\u5373\u4f7f\u5305\u542b\u5168\u90e8\u529f\u80fd\uff0c\u7f16\u8bd1\u540e\u5185\u6838\u4e5f\u4e0d\u523010 KB\uff0c\u6240\u4ee5\u7cfb\u7edf\u672c\u8eab\u5e76\u6ca1\u6709\u63d0\u4f9b\u5bf9\u6587\u4ef6\u7cfb\u7edf\u7684\u652f\u6301\u3002\u4f46\u662fμC\/OS-II\u5177\u6709\u826f\u597d\u7684\u6269\u5c55\u6027\u80fd\uff0c\u5982\u679c\u9700\u8981\u4e5f\u53ef\u81ea\u884c\u52a0\u5165\u6587\u4ef6\u7cfb\u7edf\u7684\u5185\u5bb9\u3002<\/p>\n

\n\t\u5728\u5bf9\u786c\u4ef6\u7684\u652f\u6301\u4e0a\uff0cμC\/OS-II\u80fd\u591f\u652f\u6301\u5f53\u524d\u6d41\u884c\u7684\u5927\u90e8\u5206CPU<\/u>\uff0cμC\/OS-II\u7531\u4e8e\u672c\u8eab\u5185\u6838\u5c31\u5f88\u5c0f\uff0c\u7ecf\u8fc7\u88c1\u526a\u540e\u7684\u4ee3\u7801\u6700\u5c0f\u53ef\u4ee5\u4e3a2KB\uff0c\u6240\u9700\u7684\u6700\u5c0f\u6570\u636eRAM<\/u>\u7a7a\u95f4\u4e3a4 KB\uff0cμC\/OS-II\u7684\u79fb\u690d\u76f8\u5bf9\u6bd4\u8f83\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4fee\u6539\u4e0e\u5904\u7406\u5668\u76f8\u5173\u7684\u4ee3\u7801\u5c31\u53ef\u4ee5\u3002<\/p>\n

\n\t\u7efc\u4e0a\u53ef\u77e5\uff0cμC\/OS-II\u662f\u4e00\u4e2a\u7ed3\u6784\u7b80\u5355\u3001\u529f\u80fd\u5b8c\u5907\u548c\u5b9e\u65f6\u6027\u5f88\u5f3a\u7684\u5d4c\u5165\u5f0f\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\uff0c\u9488\u5bf9\u4e8e\u6ca1\u6709MMU\u529f\u80fd\u7684CPU\uff0c\u5b83\u662f\u975e\u5e38\u5408\u9002\u7684\u3002\u5b83\u9700\u8981\u5f88\u5c11\u7684\u5185\u6838\u4ee3\u7801\u7a7a\u95f4\u548c\u6570\u636e\u5b58\u50a8<\/u>\u7a7a\u95f4\uff0c\u62e5\u6709\u826f\u597d\u7684\u5b9e\u65f6\u6027\uff0c\u826f\u597d\u7684\u53ef\u6269\u5c55\u6027\u80fd\uff0c\u5e76\u4e14\u662f\u5f00\u6e90\u7684\uff0c\u7f51\u4e0a\u62e5\u6709\u5f88\u591a\u7684\u8d44\u6599\u548c\u5b9e\u4f8b\uff0c\u6240\u4ee5\u5f88\u9002\u5408\u5411STM32\u4e0a\u79fb\u690d\u3002<\/p>\n

\n\t\"stm32\u5d4c\u5165\u5f0f\u64cd\u4f5c\u7cfb\u7edf\u7684\u7279\u70b9\u4ee5\u53ca\u4e0d\u8db3\"<\/p>\n

\n\tμClinux\u662f\u4e00\u79cd\u4f18\u79c0\u7684\u5d4c\u5165\u5f0fLinux\u7248\u672c\uff0c\u5176\u5168\u79f0\u4e3ami<\/u>cro-control Linux\uff0c\u4ece\u5b57\u9762\u610f\u601d\u770b\u662f\u6307\u5fae\u63a7\u5236Linux\u3002\u540c\u6807\u51c6\u7684Linux\u76f8\u6bd4\uff0cμClinux\u7684\u5185\u6838\u975e\u5e38\u5c0f\uff0c\u4f46\u662f\u5b83\u4ecd\u7136\u7ee7\u627f\u4e86Linux\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e3b\u8981\u7279\u6027\uff0c\u5305\u62ec\u826f\u597d\u7684\u7a33\u5b9a\u6027\u548c\u79fb\u690d\u6027\u3001\u5f3a\u5927\u7684\u7f51\u7edc\u529f\u80fd\u3001\u51fa\u8272\u7684\u6587\u4ef6\u7cfb\u7edf\u652f\u6301\u3001\u6807\u51c6\u4e30\u5bcc\u7684API<\/u>\uff0c\u4ee5\u53caTCP\/IP\u7f51\u7edc\u534f\u8bae\u7b49\u3002\u56e0\u4e3a\u6ca1\u6709MMU\u5185\u5b58\u7ba1\u7406\u5355\u5143\uff0c\u6240\u4ee5\u5176\u591a\u4efb\u52a1\u7684\u5b9e\u73b0\u9700\u8981\u4e00\u5b9a\u6280\u5de7\u3002<\/p>\n

\n\tμClinux\u5728\u7ed3\u6784\u4e0a\u7ee7\u627f\u4e86\u6807\u51c6Linux\u7684\u591a\u4efb\u52a1\u5b9e\u73b0\u65b9\u5f0f\uff0c\u5206\u4e3a\u5b9e\u65f6\u8fdb\u7a0b\u548c\u666e\u901a\u8fdb\u7a0b\uff0c\u5206\u522b\u91c7\u7528\u5148\u6765\u5148\u670d\u52a1\u548c\u65f6\u95f4\u7247\u8f6e\u8f6c\u8c03\u5ea6\uff0c\u4ec5\u9488\u5bf9\u4e2d\u4f4e\u6863\u5d4c\u5165\u5f0fCPU\u7279\u70b9\u8fdb\u884c\u6539\u826f\uff0c\u4e14\u4e0d\u652f\u6301\u5185\u6838\u62a2\u5360\uff0c\u5b9e\u65f6\u6027\u4e00\u822c\u3002<\/p>\n

\n\t\u5728\u5185\u5b58\u7ba1\u7406\u4e0a\u7531\u4e8eμClinux\u662f\u9488\u5bf9\u6ca1\u6709MMU\u7684\u5904\u7406\u5668\u8bbe\u8ba1\u7684\uff0c\u4e0d\u80fd\u4f7f\u7528\u5904\u7406\u5668\u7684\u865a\u62df\u5185\u5b58\u7ba1\u7406\u6280\u672f\uff0c\u53ea\u80fd\u91c7\u7528\u5b9e\u5b58\u50a8\u5668<\/u>\u7ba1\u7406\u7b56\u7565\u3002\u7cfb\u7edf\u4f7f\u7528\u5206\u9875\u5185\u5b58\u5206\u914d\u65b9\u5f0f\uff0c\u5728\u542f\u52a8\u65f6\u5bf9\u5b9e\u9645\u5b58\u50a8\u5668\u8fdb\u884c\u5206\u9875\u3002\u7cfb\u7edf\u5bf9\u5185\u5b58\u7684\u8bbf\u95ee\u662f\u76f4\u63a5\u7684\uff0c\u64cd\u4f5c\u7cfb\u7edf\u5bf9\u5185\u5b58\u7a7a\u95f4\u6ca1\u6709\u4fdd\u62a4\uff0c\u591a\u4e2a\u8fdb\u7a0b\u53ef\u5171\u4eab\u4e00\u4e2a\u8fd0\u884c\u7a7a\u95f4\uff0c\u6240\u4ee5\uff0c\u5373\u4f7f\u662f\u4e00\u4e2a\u65e0\u7279\u6743\u8fdb\u7a0b\u8c03\u7528\u4e00\u4e2a\u65e0\u6548\u6307\u9488\u4e5f\u4f1a\u89e6\u53d1\u4e00\u4e2a\u5730\u5740\u9519\u8bef\uff0c\u5e76\u6709\u53ef\u80fd\u5f15\u8d77\u7a0b\u5e8f\u5d29\u6e83\u751a\u81f3\u7cfb\u7edf\u5d29\u6e83\u3002<\/p>\n

\n\tμClinux\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e2d\u65ad\u7ba1\u7406\u662f\u5c06\u4e2d\u65ad\u5904\u7406\u5206\u4e3a\u4e24\u90e8\u5206\uff1a\u9876\u534a\u5904\u7406\u548c\u5e95\u534a\u5904\u7406\u3002\u5728\u9876\u534a\u5904\u7406\u4e2d\uff0c\u5fc5\u987b\u5173\u4e2d\u65ad\u8fd0\u884c\uff0c\u4e14\u4ec5\u8fdb\u884c\u5fc5\u8981\u7684\u3001\u975e\u5e38\u5c11\u3001\u901f\u5ea6\u5feb\u7684\u5904\u7406\uff0c\u5176\u4ed6\u5904\u7406\u4ea4\u7ed9\u5e95\u534a\u5904\u7406;\u5e95\u534a\u5904\u7406\u6267\u884c\u90a3\u4e9b\u590d\u6742\u3001\u8017\u65f6\u7684\u5904\u7406\uff0c\u800c\u4e14\u63a5\u53d7\u4e2d\u65ad\u3002\u56e0\u4e3a\u7cfb\u7edf\u4e2d\u5b58\u5728\u6709\u8bb8\u591a\u4e2d\u65ad\u7684\u5e95\u534a\u5904\u7406\uff0c\u6240\u4ee5\u4f1a\u5f15\u8d77\u7cfb\u7edf\u4e2d\u65ad\u5904\u7406\u7684\u5ef6\u65f6\u3002<\/p>\n

\n\tμClinux\u5bf9\u6587\u4ef6\u7cfb\u7edf\u652f\u6301\u826f\u597d\uff0c\u7531\u4e8eμClinux\u7ee7\u627f\u4e86Linux\u5b8c\u5584\u7684\u6587\u4ef6\u7cfb\u7edf\u6027\u80fd\uff0c\u5b83\u652f\u6301ROM<\/u>FS\u3001NFS\u3001ext2\u3001MS-DOS\u3001JFFS\u7b49\u6587\u4ef6\u7cfb\u7edf\u3002\u4f46\u4e00\u822c\u91c7\u7528ROMFS\u6587\u4ef6\u7cfb\u7edf\uff0c\u8fd9\u79cd\u6587\u4ef6\u7cfb\u7edf\u76f8\u5bf9\u4e8e\u4e00\u822c\u7684\u6587\u4ef6\u7cfb\u7edf(\u5982ext2)\u5360\u7528\u66f4\u5c11\u7684\u7a7a\u95f4\u3002\u4f46\u662fROMFS\u6587\u4ef6\u7cfb\u7edf\u4e0d\u652f\u6301\u52a8\u6001\u64e6\u5199\u4fdd\u5b58\uff0c\u5bf9\u4e8e\u7cfb\u7edf\u9700\u8981\u52a8\u6001\u4fdd\u5b58\u7684\u6570\u636e\u987b\u91c7\u7528\u865a\u62dfRAM\u76d8\/JFFS\u7684\u65b9\u6cd5\u8fdb\u884c\u5904\u7406\u3002<\/p>\n

\n\t\u7efc\u4e0a\u53ef\u77e5\uff0cμClinux\u6700\u5927\u7279\u70b9\u5728\u4e8e\u9488\u5bf9\u65e0MMU\u5904\u7406\u5668\u8bbe\u8ba1\uff0c\u8fd9\u5bf9\u4e8e\u6ca1\u6709MMU\u529f\u80fd\u7684stm32f103\u6765\u8bf4\u662f\u5408\u9002\u7684\uff0c\u4f46\u79fb\u690d\u6b64\u7cfb\u7edf\u9700\u8981\u81f3\u5c11512KB\u7684RAM\u7a7a\u95f4\uff0c1MB\u7684ROM\/FLASH\u7a7a\u95f4\uff0c\u800cstmf103\u62e5\u6709256K\u7684FLASH\uff0c\u9700\u8981\u5916\u63a5\u5b58\u50a8\u5668\uff0c\u8fd9\u5c31\u589e\u52a0\u4e86\u786c\u4ef6\u8bbe\u8ba1\u7684\u6210\u672c\u3002μClinux\u7ed3\u6784\u590d\u6742\uff0c\u79fb\u690d\u76f8\u5bf9\u56f0\u96be\uff0c\u5185\u6838\u4e5f\u8f83\u5927\uff0c\u5176\u5b9e\u65f6\u6027\u4e5f\u5dee\u4e00\u4e9b\uff0c\u82e5\u5f00\u53d1\u7684\u5d4c\u5165\u5f0f\u4ea7\u54c1\u6ce8\u91cd\u6587\u4ef6\u7cfb\u7edf\u548c\u4e0e\u7f51\u7edc\u5e94\u7528\u5219μClinux\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

STM32 \u7cfb\u521732\u4f4d\u5fae\u63a7\u5236\u5668\uff0c\u57fa\u4e8e ARM Cor te x-M3\u5904\u7406\u5668\u3002\u5b83\u80fd\u652f\u630132\u4f4d\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u652f\u6301\u5305\u62ec\u9ad8\u6027\u80fd\u3001\u5b9e\u65f6\u529f\u80fd\u3001\u6570\u5b57\u4fe1\u53f7\u5904\u7406\uff0c\u548c\u4f4e\u529f\u8017\u3001\u4f4e\u7535\u538b\u64cd\u4f5c\uff0c\u540c\u65f6\u62e5\u6709\u4e00\u4e2a\u5b8c\u5168\u96c6\u6210\u548c\u6613\u7528\u7684\u5f00\u53d1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2693"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2693"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2693\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2693"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}