HWD32F407-HAL_FLASH

摘要: (1)HWD32F407上的嵌入式FLASH有2M,支持单双bank,默认是单bank,常用的也是单bank,双bank较少使用; (2)单bank和双bank有各自的下载算法,在单bank模式下需要使用单bank下载算法,在双bank模式下需要使用双bank下载算法,如下图所示: (3)单双ban 阅读全文
posted @ 2026-03-30 12:07 LiveWithACat 阅读(3) 评论(0) 推荐(0)

HWD32F407-HAL_延时微妙和毫秒

摘要: 如下函数是在调用HAL_Init()后可用的毫秒级延迟函数,在HAL库中跟时间有关的函数参数一般都是毫秒级。 void HAL_Delay(uint32_t Delay); 如果我们使用微妙级的延迟函数,可以使用如下: #ifndef __DELAY_H #define __DELAY_H void 阅读全文
posted @ 2026-03-30 11:10 LiveWithACat 阅读(3) 评论(0) 推荐(0)

HWD32F407-HAL_串口

摘要: 串口基本配置如下: /*Usage: * UART_HandleTypeDef huart = {0}; * huart.Instance = USART1; * uart_base_init(GPIOB, GPIO_PIN_14, GPIO_AF4_USART1, GPIOB, GPIO_PIN_ 阅读全文
posted @ 2026-03-30 10:49 LiveWithACat 阅读(1) 评论(0) 推荐(0)

HWD32F407-HAL_RCC时钟

摘要: 1 /** 2 * @brief System Clock Configuration 3 * @retval None 4 */ 5 void SystemClock_Config(void) 6 { 7 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; 8 阅读全文
posted @ 2026-03-30 10:06 LiveWithACat 阅读(0) 评论(0) 推荐(0)

mlir(google/heir)operation

摘要: (1)TableGen 语法 TableGen Syntax We use TableGen as the language for specifying operation information. TableGen itself just provides syntax for writing 阅读全文
posted @ 2025-04-23 21:37 LiveWithACat 阅读(120) 评论(0) 推荐(0)

mlir(google/heir)dialect

摘要: 方言: https://mlir.llvm.org/docs/DefiningDialects/ LangRef Refresher Before diving into how to define these constructs, below is a quick refresher from 阅读全文
posted @ 2025-04-21 14:06 LiveWithACat 阅读(74) 评论(0) 推荐(0)

mlir(google/heir) attributes and types

摘要: https://mlir.llvm.org/docs/DefiningDialects/AttributesAndTypes/ (1)什么是attribute Attributes Attributes are the mechanism for specifying constant data o 阅读全文
posted @ 2025-04-20 15:00 LiveWithACat 阅读(140) 评论(0) 推荐(0)

mlir(google/heir)traits

摘要: https://mlir.llvm.org/docs/Traits/ MLIR allows for a truly open ecosystem, as any dialect may define attributes, operations, and types that suit a spe 阅读全文
posted @ 2025-04-18 21:40 LiveWithACat 阅读(58) 评论(0) 推荐(0)

分析Edk2启动流程

摘要: 总体认识: 下图是援引的”UEFI原理与编程_戴正华(著) 机械工业出版社_完整版.pdf”中的图1-2, 据我所研究到的,开源Edk2主要实现阶段SEC、PEI、DXE 启动顺序: 描述:开源Edk2中首先被执行的代码是一段汇编,它首先初始化临时存储区域,然后把控制权交给SEC入口函数SecCor 阅读全文
posted @ 2022-02-14 16:40 LiveWithACat 阅读(4321) 评论(1) 推荐(0)

LwIP的编译记录 - 编译自带的测试用例

摘要: 1.准备好文件[plh@localhost LwIP_v2]$ lscontrib-2.1.0.zip lwip-2.1.2.zip[plh@localhost LwIP_v2]$ unzip contrib-2.1.0.zip[plh@localhost LwIP_v2]$ unzip lwip- 阅读全文
posted @ 2020-12-23 20:57 LiveWithACat 阅读(1449) 评论(0) 推荐(0)