原创 mbed 更改調試信息 printf 默認輸出 串口com Serial1或Serial2

 默認情況下 調試信息是通過 ST-Link 虛擬串口com port 輸出的。有時候我們需要輸出到別的串口,比如Serial2,可以通過下面的代碼來實現。 #include "mbed.h" // 定義stdio uart 參數

原创 使用EmBitz編譯mbed提示mbed_wait_api.c:(.text.wait+0x0): multiple definition of `wait'

 使用EmBitz編譯mbed提示mbed_wait_api.c:(.text.wait+0x0): multiple definition of `wait' 提示重複定義 wait函數 第一次定義在libc.a中的syswait.c。

原创 C:/MinGW/lib/libmingw32.a(main.o):main.c:(.text+0x104): undefined reference to `WinMain@16'

需要加 -lmingw32  例如使用minGW32 :執行g++命令:g++ -o mysql.exe main.cpp -lmingw32 -lSDLmain -lSDL main.cpp #include <stdio.h> #i

原创 怎樣在物聯網操作系統mbed註冊賬號跟創建工程使用教程圖解

mbed是什麼         mbed是一個面向ARM處理器的原型開發平臺,它具體包括免費的軟件庫(SDK),硬件參考設計(HDK)和在線工具(Web)三部分內容,各個部分的具體介紹如下:         SDK:mbed設計了一個硬件

原创 關於STM32 使用ARM GCC編譯鏈接C++生成固件的壓縮、減少和優化大小的幾個編譯鏈接參數

隨之進來的物聯網的興起,要像安卓那樣建立生態,需要跟多的開發者投入其中,那麼就要降低門檻。物聯網系統中arm 自家的mbed 系統就採用了c++, 用對象的形式封裝了外設驅動,比如GPIO口封裝成AnalogIn,AnalogOut,Bu

原创 stm32 基於ARM GCC Compliler(EmBitz IDE) print重定向到串口打印輸出 com serial

<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);"> print重定向到串口打印輸出 com se

原创 mbed使用EmBitz 提示warning: .objs\main.o: linker input file unused because linking not done

 使用mbed在線IDE 導出EmBitz工程。編譯錯誤: ||warning: .objs\main.o: linker input file unused because linking not done| ||warning: mb

原创 在 mbed平臺使用 airkiss_cloudapi sdk 過程中碰到問題解決方法

在 mbed平臺使用 airkiss_cloudapi 過程中碰到不少問題。問題的根源在於mbed大部分驅動是用c++實現的。c++(在mian.cpp中) 調用 c靜態庫  libwxcloud.a 中的函數(airkiss_cloud

原创 使用EmBitz 編譯mbed提示required from 'void WIZnet_Chip::reg_wr(uint16_t, T) [with T = short unsigned int;

If optimization level is >= 2 in gcc-4.1, strict-aliasing is used, and this could cause probelms when a pointer is refe

原创 Embitz 使用ARM GCC Compiler(generic) 兼容性問題

<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">ARM GCC Compiler(generic

原创 NET service 服務 無法序列化 DataTable 的解決方法

  <WebMethod()> _     Public Function GetGroupData1() As DataTable         Dim dt  as DataTable =Adapter.GetDataTable()

原创 解決方法找不到具有綁定 NetTcpBinding 的終結點的與方案 net.tcp 匹配的基址

在使用WCF過程中經常碰到莫名其妙的各種方案匹配的基址和註冊基址方案不符的異常信息。比如方案匹配基址net.tcp和註冊註冊基址方案http、方案匹配基址http和註冊註冊基址方案net.tcp和方案匹配基址http和註冊註冊基址方案ht

原创 stm32 使用malloc申請內存和free釋放內存造成的內存碎片測試

本例中使用stm32c8t6  mdk3.5 和 gcc-arm-none-eabi-4_9。使用EmBitz IDE  ARM GCC Compiler。 單片機是不建議使用 內存管理函數,但是在物聯網應用當中,內存資源很是寶貴,MQT

原创 使用CooCox的CoIDE打開mbed項目失敗:提示 The chip:STM32F103RB information of current project has sonething wrong

使用CooCox的CoIDE打開mbed項目失敗:提示 The chip:STM32F103RB information of current project has sonething wrong 用文本編輯器打開項目文件 Nucle

原创 VS2013使用MySql.Data.Entity.EF6實體數據模型嚮導閃退的問題解決

一、安裝MySql相關。 MySQL Connector Net 6.8.3 MySQL for Visual Studio 1.1.4 二、使用VS2013 NuGet安裝 EntityFramework 6.0.0 三、實體數據模型