- 博客(20)
- 资源 (5)
- 收藏
- 关注
原创 stm32 SDRAM配置
SDRAM:http://news.eeworld.com.cn/mcu/ic466163.html大小:32M字节SDRAM时钟频率:90MHz/* hsdram1.Init /hsdram1.Init.SDBank = FMC_SDRAM_BANK2;hsdram1.Init.ColumnBitsNumber = FMC_SDRAM_COLUMN_BITS_NUM_9;hsdram1.Init.RowBitsNumber = FMC_SDRAM_ROW_BITS_NUM_13;hsdra
2021-06-11 17:47:40 768 1
原创 python字符转换
-- coding: utf-8 --import sysimport timeimport binasciiif name == ‘main’:while True:msg = input(‘请输入一个大写字符:’)if len(msg) > 1:continueif msg[0].isascii() and msg[0].isupper():temp = bytes(msg, encoding = “utf8”)[0]print(‘对应的ASCII码:十进制:%d 16进制:
2021-03-31 16:13:59 524
原创 二进制文件比较工具python
二进制文件比较工具python# -*- coding: utf-8 -*-import sysimport timeimport binasciiimport serialimport serial.tools.list_portsimport loggingimport osimport structimport datetimelogging.basicConfig(format='%(asctime)s,%(msecs)d %(levelname)-8s [%(filenam
2021-03-31 15:45:34 490
原创 DLT645-2007模拟表 python源码
DLT645-2007模拟点表python源码# -*- coding: utf-8 -*-import sysimport timeimport binasciiimport serialimport serial.tools.list_portsimport loggingimport osimport structimport datetimelogging.basicConfig(format='%(asctime)s,%(msecs)d %(levelname)-8s [%
2021-03-31 15:43:28 1799
原创 stm32cubemx 生成iar工程系统无法运行问题
stm32cubemx 生成iar工程系统无法运行问题stm32cubemx 生成的stm32f765工程无法正常运行,最后确认为操作系统不调度,处理方法如下:void SysTick_Handler(void){ /* USER CODE BEGIN SysTick_IRQn 0 */ SysTick->CTRL; HAL_IncTick(); if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) { /
2021-03-31 15:41:04 660
原创 python struct模块
python struct模块输入:4字节或8字节hex 字符串输出对应float或double数值#!usr/bin/env python# -*- coding: UTF-8 -*-import structimport binasciiu8_lit = struct.Struct('B')s8_lit = struct.Struct('b')u16_lit = struct.Struct('<H')s16_lit = struct.Struct('<h')u32_lit
2021-03-31 15:37:15 230
原创 嵌入式系统日志
嵌入式系统日志void wdbg_printf(const char * format, ... ) { va_list args; s32 len; if(g_trace_handle == NULL) { return; } s8* buf = (s8*)sys_malloc(128); if(buf) { va_start(args, format); len = vsnprintf ((char
2021-03-31 15:17:38 509
原创 STM32F7 LWIP socket 创建TCP server
STM32F7 LWIP socket 创建TCP server**阻塞方式:**typedef struct { struct sockaddr_in client_info; s32 id; u16 port;} client_info_s;void client_proc(void* parm) { client_info_s* info = (client_info_s*)parm; u8* rec_data = sys_malloc(1500);
2021-03-31 15:14:26 1384 1
原创 STM32 + stmcubemx + freertos 低功耗异常问题
STM32 + stmcubemx + freertos 低功耗异常问题最近开发一款产品出现以下问题, stmL151低功耗芯片,进入低功耗退出后一段时间出现系统异常,进入vListInsert->for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator-&
2021-01-03 13:38:10 566
GNU Binutils 2.39
2022-09-29
STM32F7 LWIP IAR参考示例
2021-03-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人