# prj_stm32wb55rg **Repository Path**: yongxing912/prj_stm32wb55rg ## Basic Information - **Project Name**: prj_stm32wb55rg - **Description**: 使用nucleo wb55rg board, 从HAL库开始,手动创建工程模板,逐步开发功能,最终成为产品。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-28 - **Last Updated**: 2025-06-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 使用nucleo wb55rg board, 从HAL库开始,手动创建工程模板,逐步开发功能,最终成为产品。 ## print msg * flash id * lvgl version * freeRTOS version * epd information * power cycle times * accumulate power on time length * key-down times * flash erase times * firmware version * hardware type * hardware version * hardware SN * product SN * product name * mcu type and package type, gpio num * firmware date ## phase bare-metal ### RTC - [ ] 每秒打印RTC - [ ] usart 菜单更新设置RTC time - [ ] save RTC to flash, restore after power on - [ ] 倒计时闹钟,支持多个,且不重复时间 ### KEY & LED - [x] 1个 heartbeat led, 周期默认2s,使用systick中断 - [x] default 每5秒两个流水灯切换 - [ ] 中断捕捉按键,sw1按键控制流水灯切换周期+1, sw2 控制周期 -1,上下限10s:1s ### system - [ ] OTA - [ ] record run time long ## phase rtos - [ ] porting freeRTOS - [ ] include bare-metal tasks - [ ] add ble tasks - [ ] add ESP8266 AT cmd task - [ ] add NFC task - [ ] add finger sensor task - [ ] add EPD task - [ ] add fatFS ## external module - [ ] RGB LED - [ ] EPD as display save and restore rtc from register epd display epd display with LVGL from bare-metal to freeRTOS from bare-metal to zeyphr from bare-metal to rt-thread - [ ] 超声波模块 # question * flash 从第206page开始,erase会进入hardfault。 实际page只有 205page, datasheet 显示255page. # manual read flash, usart # Pin Mapping | MCU Pin | Function | CN Pin | Comment | | ------- | --------- | --------- | ----------------- | | PA1 | SPI_SCK | CN7/P32 | EPD_CLK | | PA6 | SPI_MISO | | | | PA7 | SPI_MOSI | CN10/P15 | EPD_DIN | | PA9 | | CN10/P19 | EPD_DC | | PA10 | | CN10/P31 | EPD_BUSY | | PA13 | SWDIO | | | | PA14 | SWCL | | | | PB0 | | | LED GREEN | | PB1 | | | LED RED | | PB3 | SWO | | | | PB5 | | | LED BLUE | | PB6 | USART_TX | | | | PB7 | USART_RX | | | | PB11 | | CN7/P1 | EPD_VCC | | PC0 | | CN7/P28 | EPD_RST | | PC4 | | | SW1 | | PC5 | | CN7/P3 | EPD_CS | | PD0 | | | SW2 | | PD1 | | | SW3 | | PA5 | | CN10/P11 | 红外探头 HCSR501 OUT | | | | CN7/P6 | 红外探头 HCSR501 VCC | | | | CN7/P20 | 红外探头 HCSR501 GND | | | | CN7/P12 | RGB_LED VCC +5V/3V3 | | | | CN7/P19 | RGB_LED GND | | | | CN7/P20 | EPD_GND | | PB8 | | CN10/P3 | RGB_LED CLK 通信时钟线 | | PB9 | | CN10/P5 | RGB_LED DATA 通信数据线 | ## functions - EPD Display, x,y axis, 26 characters - lvgl for different display - uart rx functions - freertos for multi-task ### LCD 12864 ### 串口输入 按键中断输入,控制EPD显示 EPD使用LVGL组件,先用LVGL组件做PC显示 电子时钟, HW: stm32+EPD+ESP8266+温湿度计 SW:freeRTOS+LVGL com: uart+ble+wifi end:nucleowb55rg+android app