资源简介
本文设计了基于WiFi-UART的STC单片机下载调试模块,这样便于对嵌入式系统进行远程调试开发,特别是在一些具有移动功能的平台,强电平台以及需要实时监视和修改程序的应用场合。

代码片段和文件信息
//---------------------------------------------------------------------------
// BLSTM32.CPP: -- by Dr. ZhuoQing 20124
//
//---------------------------------------------------------------------------
#pragma hdrstop
#include
#include “serifile.h“
#include “config.h“
#define BLSTM32_GLOBALS 1
#include “BLSTM32.h“
#include “mainfrm.h“
#include “HEXFILE.h“
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
int BLSTM32Init(void) {
return 0;
}
//---------------------------------------------------------------------------
int BLSTM32SendWord(unsigned int nWord) {
unsigned char ch0 ch1 ch2 ch3;
ch3 = (unsigned char)(nWord & 0xff);
nWord >>= 8;
ch2 = (unsigned char)(nWord & 0xff);
nWord >>= 8;
ch1 = (unsigned char)(nWord & 0xff);
nWord >>= 8;
ch0 = (unsigned char)(nWord & 0xff);
BLSTM32SendChar(ch3);
BLSTM32SendChar(ch2);
BLSTM32SendChar(ch1);
BLSTM32SendChar(ch0);
return 0;
}
int BLSTM32ReceWord(unsigned int * pWord) {
unsigned int nWord;
unsigned char c0 c1 c2 c3;
if(BLSTM32ReceChar(&c0)) return 1;
if(BLSTM32ReceChar(&c1)) return 1;
if(BLSTM32ReceChar(&c2)) return 1;
if(BLSTM32ReceChar(&c3)) return 1;
nWord = c3;
nWord = (nWord << 8) + c2;
nWord = (nWord << 8) + c1;
nWord = (nWord << 8) + c0;
*(pWord) = nWord;
return 0;
}
int BLSTM32SendChar(unsigned char c) {
SendChar(c PORT1);
return 0;
}
int BLSTM32ReceChar(unsigned char * pc) {
return ReceChar(pc PORT1);
}
int BLSTM32ReceCharL(unsigned char * pc int nLoop) {
return ReceCharL(pc PORT1 nLoop);
}
int BLSTM32ClearPort(void) {
ClearPort(PORT1);
return 0;
}
int BLSTM32SendBuffer(unsigned char * pBuffer int nLength) {
SendCharDim(pBuffer nLength PORT1);
return 0;
}
int BLSTM32ReceBuffer(unsigned char * pBuffer int nLength) {
int i;
for(i = 0; i < nLength; i ++) {
unsigned char ucChar;
if(BLSTM32ReceCharL(&ucChar 20)) return 1;
*(pBuffer + i) = ucChar;
}
return 0;
}
int BLSTM32Reset(void) {
DTREnable(1 PORT1);
Sleep(10);
DTREnable(0 PORT1);
return 0;
}
//---------------------------------------------------------------------------
int BLSTMShowInfor(char * pszInfor) {
MainForm->ShowInfor(pszInfor);
return 0;
}
int BLSTMClearInfor(void) {
MainForm->ClearInfor();
return 0;
}
int BLSTMShowProgress(int nProgress) {
MainForm->ShowProgress(nProgress);
return 0;
}
//---------------------------------------------------------------------------
int BLSTM32Hello(void) {
BLSTM32ClearPort();
BLSTM32SendChar(BLSTM32_HELLO);
unsigned char ucChar;
if(BLSTM32ReceCharL(&ucChar 10)) return 1;
if(ucChar != BLSTM32_OK) r
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-05-03 19:51 WiFi-STC-DOWNLOADER\
目录 0 2020-05-03 19:51 WiFi-STC-DOWNLOADER\PC机\
目录 0 2020-05-03 19:51 WiFi-STC-DOWNLOADER\PC机\STM32BL\
文件 155 2017-07-26 16:23 WiFi-STC-DOWNLOADER\PC机\STM32BL\9ed2edbe.ini
文件 154 2017-07-08 19:09 WiFi-STC-DOWNLOADER\PC机\STM32BL\9edcedbe.ini
文件 360 2017-03-08 09:55 WiFi-STC-DOWNLOADER\PC机\STM32BL\adc8b5c2.ini
文件 40 2017-09-29 21:15 WiFi-STC-DOWNLOADER\PC机\STM32BL\b9f1b6c4.ini
文件 16417 2015-10-17 21:06 WiFi-STC-DOWNLOADER\PC机\STM32BL\BLSTM32.cpp
文件 5392 2015-10-05 19:40 WiFi-STC-DOWNLOADER\PC机\STM32BL\BLSTM32.h
文件 594813 2020-05-03 11:20 WiFi-STC-DOWNLOADER\PC机\STM32BL\BLSTM32.obj
文件 16417 2015-10-17 21:06 WiFi-STC-DOWNLOADER\PC机\STM32BL\BLSTM32.~cpp
文件 5392 2015-10-05 19:40 WiFi-STC-DOWNLOADER\PC机\STM32BL\BLSTM32.~h
文件 10714 2019-11-22 18:09 WiFi-STC-DOWNLOADER\PC机\STM32BL\CmdSub.cpp
文件 3865 2019-04-26 21:07 WiFi-STC-DOWNLOADER\PC机\STM32BL\CmdSub.h
文件 587928 2020-05-03 11:20 WiFi-STC-DOWNLOADER\PC机\STM32BL\CmdSub.obj
文件 10716 2019-11-22 18:09 WiFi-STC-DOWNLOADER\PC机\STM32BL\CmdSub.~cpp
文件 3865 2019-04-26 21:07 WiFi-STC-DOWNLOADER\PC机\STM32BL\CmdSub.~h
文件 19115 2020-05-01 23:44 WiFi-STC-DOWNLOADER\PC机\STM32BL\config.cpp
文件 3800 2020-05-01 23:44 WiFi-STC-DOWNLOADER\PC机\STM32BL\config.h
文件 3663 2020-05-03 17:57 WiFi-STC-DOWNLOADER\PC机\STM32BL\config.ini
文件 62485 2020-05-01 23:45 WiFi-STC-DOWNLOADER\PC机\STM32BL\config.obj
文件 18991 2020-05-01 17:40 WiFi-STC-DOWNLOADER\PC机\STM32BL\config.~cpp
文件 3800 2020-05-01 23:44 WiFi-STC-DOWNLOADER\PC机\STM32BL\config.~h
文件 135 2017-04-17 09:28 WiFi-STC-DOWNLOADER\PC机\STM32BL\d7eedebc.ini
目录 0 2020-05-03 19:51 WiFi-STC-DOWNLOADER\PC机\STM32BL\Document\
文件 74752 2012-04-06 22:41 WiFi-STC-DOWNLOADER\PC机\STM32BL\Document\HEX文件格式.doc
文件 6063 2020-05-01 23:07 WiFi-STC-DOWNLOADER\PC机\STM32BL\HEXFILE.cpp
文件 1544 2007-05-24 17:47 WiFi-STC-DOWNLOADER\PC机\STM32BL\HEXFILE.h
文件 9851 2020-05-01 23:07 WiFi-STC-DOWNLOADER\PC机\STM32BL\HEXFILE.obj
文件 6016 2016-01-26 10:57 WiFi-STC-DOWNLOADER\PC机\STM32BL\HEXFILE.~cpp
文件 1544 2007-05-24 17:47 WiFi-STC-DOWNLOADER\PC机\STM32BL\HEXFILE.~h
............此处省略150个文件信息
相关资源
- 加密cad图形的lisp文件
- Auto CAD_LISP程序集
- CAD LISP24个源代码
- CAD剖面图制作LISP程序
- VESA Computer Display Monitor Timing (DMT)
- 六款ISP电路原理图
- AT89S ISP下载编程软件(串口)
- 适用于STC单片机和51单片机的SX1262驱动
- Symantec Brightmail AntiSpam产品手册
-
VESA eDP_v1_3 (em
bedded displayPort Stand -
VESA eDP_v1_3 (em
bedded displayPort Stand - STC-ISP_V4.83
- AutoCAD二次开发在直齿圆柱齿轮参数化
- TH upstream-inhibited ARHGAP12 subnetwork for
-
Jli
nk V7V8固件烧录及步骤 - 黑客与画家 英文版.pdf
- CISP学习资料
- CISP V4.2.0 修订版讲义
- 使用MybatisPlus+SpringMBVC完成的CUID以及分
- 国外开源视频监控iSpy源代码20180905
- CISP培训资料与课件4.2.zip
- CISP2018年课件
- nisp二级.zip
- lisp源代码 ***工具箱代码 cad二次开发
- cisp培训PPT.zip
- rkispcamera
- redisplus 3.2 客户端
- STC-ISP51单片机
- Display Driver Uninstaller v18.0.1.4.zip
- DynamicDataDisplay 文档
评论
共有 条评论