自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(36)
  • 收藏
  • 关注

原创 Compose 的 setContent 和传统 View 的 setContentView冲突,导致Activity top resumed state loss timeout

把ComponentActivity改成AppComponentActivity 需要在build.gradle.kts添加implementation(libs.androidx.appcompat)3.manefest文件中的 android:Theme.Material.Light.NoActionBar 需要改成:Theme.AppCompat.Light.NoActionBar。在安卓学习中发现简单的程序运行崩溃。1.错误MainActivity文件如下。3.layout文件和string文件。

2025-10-11 13:42:38 176

原创 android studio 同步慢问题解决

3.在 .gradle目录下,添加init.gradle文件。我怎么弄都不行,暂时做个记录吧。安卓项目同步的本质,是把相关的包下载到本地,但是由于外网速度的原因下载很慢。所以可用使用下面的方法。

2025-08-28 11:30:31 253

原创 IAR 使用Terminal 完成printf输出设置

通常我们在调试程序的过程中,无论是使用Keil或IAR 这样的IDE工具时,都会需要通过串口输出debug信息。这样的话就需要程序中把printf重定向到串口。同时需要串口设备和串口调试工具软件接入到电脑中。IAR提供了一种方便的方法,用过使用terminal i/o,就可以直接输出printf信息。Project ->Option中 General options。. 至于J-link中接口选择JTAG或SWO都可以。

2025-08-05 13:19:08 445

原创 [Keil] Error: L6218E: Undefined symbol __aeabi_assert (referred from refered from xxx.o)

添加 compiler->i/o->STDERR解决。

2025-03-21 14:51:29 409

原创 SEGGER_RTT_Conf.h(279): warning: #47-D: incompatible redefinition of macro “SEGGER_RTT_LOCK“

参考大神的文章()解决问题。

2025-01-23 09:45:52 250

原创 Keil编译程序部分缺失,导致程序部分运行不到

经过测试后,发现只要把ARM compiler 从Use default compiler version6 改成Use default compiler version6 就能解决问题。在使用Keil中,程序编译运行到876行,就跳出,不能运行到877行。但是这可能不是根本的原因。

2024-12-25 11:07:28 321

原创 Keil中,调试cortex ARM程序LDR R0, =SystemInit 卡住错误。

卡在LDR R0, =SystemInit中循环,不能跳到main函数中。经常是使用printf函数,没有调用microlLIB库。勾选use microLIB库,重新编译工作正常。

2024-12-03 13:23:30 853 2

原创 SEGGER_RTT_Conf.h(279): warning: #47-D: incompatible redefinition of macro “SEGGER_RTT_LOCK“

使用Keil 5 编译程序Seger_RTT.c和Seger_RTT_syscalls_GCC.c 出现src\seger_rtt\SEGGER_RTT_Conf.h(279): warning: #47-D: incompatible redefinition of macro "SEGGER_RTT_LOCK" (declared at line 199) 错误。解决办法:把compiler 版本Use default compiler 5 改成Use default complier 6.

2024-11-25 13:43:44 641

原创 core_cm4.h(1250): function ‘NVIC_SystemReset‘ could be declared with attribute ‘noreturn‘ [-Wmissing

把编译器的版本,从 ARM compiler :Use default compiler version 6 降低 Use default compiler version 5 问题解决。可能的原因是:以前写的core_cm4文件,在新的编译器中不兼容。使用Keil 5 编译Atmel sam4s16c 发现出现问题:NVIC_SystemReset' could be declared with attribute 'noreturn'。

2024-11-25 13:38:38 592

原创 <sam4s.h>‘; specified path differs in case from file name on disk [-Wnonportable-include-path]

使用Keil 5版本,程序出现:system_SAM4S.c(26): warning: non-portable path to file '<sam4s.h>';specified path differs in case from file name on disk [-Wnonportable-include-path]错误。解决办法:把User default complier 6 改成 User default compiler 5 解决。

2024-11-25 13:31:35 484

原创 头文件的定义和作用

会包含多个源码文件(.c),当某些公共资源需要在各个源码文件中使用时,为了避免多次编写相同的代码,一般的做法是将这些大家都需要用到的公共资源放入头文件(.h)当中,然后在各个源码文件中直接包含即可。

2024-11-20 09:33:01 581

原创 Keil编译出现core_cmInstr.h(280): error: unknown type name ‘inline 问题

使用keil编译器编译中出现./src/board_define/sam4s/CMSIS/Include\core_cmInstr.h(280): error: unknown type name 'inline' 问题。是C99标准引入的新关键字,用于声明内联函数。如果编译器不支持C99或更新的标准,它将无法识别这个关键字,从而抛出错误。Keil编译器默认的设置是:C90。所以需要更改为C99。

2024-11-18 09:56:47 1777

原创 <3>WSL (10) ERROR: CreateProcessParseCommon:763: Failed to translate D:\1Work\xJL\xxxx

在网上遨游学习,发现是因为安装了docker。wsl默认设置 docker-desktop-data。在win10上,学习使用开源实时物联网操作系统RT-thread中,出现。使用 wsl --setdefault docker-desktop 问题解决!

2024-10-30 15:41:08 2348

原创 Microsoft office2016 中 PPT 如何将图文拆分、合并形状、组合?

Microsoft office2016 中 PPT 如何将图文拆分、合并形状、组合?

2024-07-30 15:41:35 549

原创 Keil 移植freeRtos 过程中 freeRtos\portable\GCC\ARM_CM3\portmacro.h(137): error: #18: expected a “)“ 错误解决

在使用Keil 移植freeRtos过程中,出现.\src\freeRtos\portable\GCC\ARM_CM3\portmacro.h(137): error: #18: expected a ")"__asm volatile ( "clz %0, %1" : "=r" ( ucReturn ) : "r" ( ulBitmap ) : "memory" );->改成 use default compliler version 6 解决。经过反复排查发现原因是选择ARM编译器版本错误。

2024-07-27 21:46:16 835

原创 C语言预处理#define 和## 运算符

参考大神文章学习:C语言学习笔记(19)程序环境和预处理_#define 程序根据不同环境定义-CSDN博客C语言预处理#define 和## 运算符_#define objdefine() objtype obj-CSDN博客

2024-06-24 17:28:47 216

原创 学习笔记参考

2.【C语言 | 预处理】C语言预处理详解(一) —— #define、#under、#if、#else、#elif、#endif、#include、#error:

2024-05-16 10:48:59 282

原创 Vant3更新Vant4中,Toast API也必须变更。否则将不能正确显示

Vant3更新到Vant4中,Dialog API也进行了调整使用了驼峰命名方式。同样Toast方式也进行了调整。

2024-04-16 11:16:28 632 1

原创 Vue 设置CSS样式不起作用解决

经过debug返现是样式没起作用。Vue设计代码,但是设置CSS样式不起作用。更改后,输入添加了边框。

2024-04-15 17:55:26 937 1

原创 node + express后端 + mysql数据库,postman put模式 404 Not Found错误 解决

使用传送参数:req.body。必须和前端postman发送的请求。2.userApi.js 文件。4.server.js 文件。5.sqlMap.js文件。1.后端文件组织架构。注意:router.

2024-04-06 20:46:17 466 1

原创 学习Vant中,van-dialog不能弹窗问题解决。

van-dialog v-model:show="addressShow" title="添加地址" show-cancel-button>在学习前端Vue中,使用van-dialog发现不能弹窗,源代码如下。title="添加地址" show-cancel-button>虽然在VS编辑器上有红色错误提示。一点点debug发现,问题出在。如全局注册,依然不起作用。参考网上大神的解决方案,

2024-04-06 11:46:40 2504 1

原创 Vue3 Cannot read properties of undefined (reading ‘goodsPicture‘)

学习Vue,遇到Cannot read properties of undefined (reading 'goodsPicture')。经过一步步调试,发现<van-cell v-for="item in list" :key="item" :title="item"显示是<img :src="require('../assets/image/goods/'+item.<h3>商品名:{{ item.goodsName }}</h3>下面是goodsList.vue代码。

2024-03-09 21:27:34 427 1

原创 Vue前端+Vue后端(postman测试)+mysql数据库

参考大神生成shopping项目。安装后:2.Vue3前端Toast主要的原因是vant从3版本更新到4版本。调用代码差异导致。博文所以把更改引用1: import { showToast,closeToast } from 'vant';2 把引用方法给成 showToast,closeToast 成功!

2024-03-08 20:44:11 1634 1

原创 Vue3 引入axios报错 Cannot read properties of undefined (reading ‘post‘)

【代码】Vue3 引入axios报错 Cannot read properties of undefined (reading ‘post‘)

2024-02-05 18:24:46 673 1

原创 Vue3项目启动后显示空白,控制台 vue-router.mjs:2959 Uncaught Error: Provide the “history“ option when calling 错误

上述代码,看着都没问题啊?反复网上查找前辈跑过的坑,终于发现问题。Vue2和Vue3代码引用上的不同。初学Vue时,遇到项目启动显示空白页面。Vue2 引用使用router中。Vue3 引用使用router中。

2024-02-05 11:08:20 898 2

原创 vue3:element ui 失败。配置element-plus/lib/theme-chalk/index.css错。Cannot read properties of undefined (re

另外Vue3,已不支持Vue.use(ElementPlus)方式。使用app.use(ElementPlus)方式。否则会报报错:Cannot read properties of undefined (reading ‘use‘)

2024-02-04 20:45:17 975 2

原创 node.js安装,配置npm更改镜像源。以及Vue安装vue2过程

设置默认镜像源:使用 `npm config set registry` 命令将默认镜像源设置为 `https://registry.npmmirror.com/`。淘宝的镜像源:https://registry.npm.taobao.org,可能近期有问题,一直连不上。选择> Default ([Vue 2] babel, eslint)创建vue,安装vue2。选择>Overwrite。安装element-ui。

2024-02-04 13:36:17 1367 1

原创 学习django celery 遇到Received unregistered task of type ‘App07.tasks.hello_world‘. 错误解决过程

shared_task 也可以。celery 和 beat 启动。

2024-01-06 22:15:43 1334 2

原创 django 学习邮箱注册激活。发现127.0.0.1 发送了无效的响应 问题解决。

看到debug信息:[01/Jan/2024 09:16:15] You're accessing the development server over HTTPS, but it only supports HTTP.参考网上大神的方法,如 停止服务W‎orldWideWebPubli‎shingServi‎ce等等,不能解决问题。SECRET_KEY 生成token。url设置的https有问题呢?和active.html。

2024-01-01 10:00:28 794

原创 django 多文件上传 ValueError: ClearableFileInput doesn‘t support uploading multiple files. 问题解决。

在学习django框架,多个文件上传时遇到ValueError: ClearableFileInput doesn't support uploading multiple files. 代码如下:urls.pyurlpatterns = [ # path('',views.index,name='index'), # 单个文件上传 path('upload/',views.upload,name='upload'), # 多个文件上传 path('many

2023-12-31 17:35:37 1342 1

原创 django-simple-captcha 图形码验证,captcha点击不能刷新的问题解决

1.setting配置: 安装”captcha“和captcha配置。点击验证码图片,可以刷新验证码。3. 应用App路由配置。的博文终于解决问题。2. 项目路由的配置。4. views 代码。5. html 代码。

2023-12-28 11:49:10 1333 1

原创 python manage.py makemigrations ValueError: source code string cannot contain null bytes

pycharm 2023.2.5版 使用python manage.py inspectdb > App/models.py 生成。编码格式不是UTF-8而是UTF-16。所以产生如标题的错误。

2023-12-06 10:25:54 480 1

原创 pycharm 版本2023.2.5 下django框架下添加异步celery问题总结

4. 启动celery -A celery_demo worker -l info 又出现缺少tzdata,然后产生zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC'1.django下celery,django-celery-result, greenlet等不同的版本会冲突。5.启动beat : celery -A celery_demo beat -l info。经过测试下面的版本ok。

2023-11-22 10:53:15 365

原创 django-simple-captcha 图形码验证,图形不能加载原因

django-simple-captcha 图形码验证,图形不能加载原因

2023-11-07 20:08:14 605

原创 django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.

在使用pycharm termianl:python manage.py startapp App01 时,产生django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.错误。解决办法:在项目目录day02下的__init__.py中,添加。

2023-10-13 14:02:56 540

原创 虚拟机Vmware 安装openEuler-22.03-LTS版本显示分辨率设置1980x1080方法

我的虚拟机Vmware workstation 16pro 安装openEuler-22.03-LTS版本 但是集成分表率的列表中没有显示分辨率1980x1080。在网上也参考了一些大神们的方法。

2023-09-20 09:55:08 2194 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除