ST意法半导体
直播中

陈韵瑄

8年用户 1063经验值
私信 关注
[问答]

无法将LCD1602连接到stm32f100c4t6b怎么解决?

你好。我有一个问题。我尝试将 LCD1602 连接到 STM32f100c4t6b。没有 LCD 程序工作没有错误。但是当我连接基于 MCU HD44780 的 LCD1602 时,我的程序失败了。
当我尝试通过 ST-LINK 读取内存时,我出错了。“无法读取内存禁用读出保护并重试”。我知道 MCU 设置了锁定位。在 ST-LINK 中,我可以选择选项字节并禁用“读出保护”。
拆解清单是这样的
  • 1ffff759:   Failed to execute MI command:
  •           -data-disassemble -s 536868697 -e 536868742 -- 3
  •           Error message from debugger back end:
  •           Cannot access memory at address 0x1ffff758
  • 1ffff75a:   Failed to execute MI command:
  •           -data-disassemble -s 536868698 -e 536868742 -- 3
  •           Error message from debugger back end:
  •           Cannot access memory at address 0x1ffff75a
  • 1ffff75b:   Failed to execute MI command:
  •           -data-disassemble -s 536868699 -e 536868742 -- 3
  •           Error message from debugger back end:
  •           Cannot access memory at address 0x1ffff75a
  • 1ffff75c:   Failed to execute MI command:
  •           -data-disassemble -s 536868700 -e 536868742 -- 3
  •           Error message from debugger back end:
  •           Cannot access memory at address 0x1ffff75c
  • 1ffff75d:   Failed to execute MI command:
  •           -data-disassemble -s 536868701 -e 536868742 -- 3
  •           Error message from debugger back end:
  •           Cannot access memory at address 0x1ffff75c
这完全是记忆。
为什么会这样?没有 LCD 一切正常,但是当我连接 LCD 时程序崩溃。我在哪里弄错了?
Sheme 连接 LCD 到 stm 看起来像那样。对于 DB0-DB7,RS,E 我使用 stm 的 portb









回帖(1)

何圆

2023-2-6 10:48:31
你好。我有一个问题。我尝试将 LCD1602 连接到 stm32f100c4t6b。没有 LCD 程序工作没有错误。但是当我连接基于 MCU HD44780 的 LCD1602 时,我的程序失败了。
当我尝试通过 ST-LINK 读取内存时,我出错了。“无法读取内存禁用读出保护并重试”。我知道 MCU 设置了锁定位。在 ST-LINK 中,我可以选择选项字节并禁用“读出保护”。
拆解清单是这样的
  • 1ffff759:   Failed to execute MI command:
  •           -data-disassemble -s 536868697 -e 536868742 -- 3
  •           Error message from debugger back end:
  •           Cannot access memory at address 0x1ffff758
  • 1ffff75a:   Failed to execute MI command:
  •           -data-disassemble -s 536868698 -e 536868742 -- 3
  •           Error message from debugger back end:
  •           Cannot access memory at address 0x1ffff75a
  • 1ffff75b:   Failed to execute MI command:
  •           -data-disassemble -s 536868699 -e 536868742 -- 3
  •           Error message from debugger back end:
  •           Cannot access memory at address 0x1ffff75a
  • 1ffff75c:   Failed to execute MI command:
  •           -data-disassemble -s 536868700 -e 536868742 -- 3
  •           Error message from debugger back end:
  •           Cannot access memory at address 0x1ffff75c
  • 1ffff75d:   Failed to execute MI command:
  •           -data-disassemble -s 536868701 -e 536868742 -- 3
  •           Error message from debugger back end:
  •           Cannot access memory at address 0x1ffff75c
这完全是记忆。
为什么会这样?没有 LCD 一切正常,但是当我连接 LCD 时程序崩溃。我在哪里弄错了?
Sheme 连接 LCD 到 stm 看起来像那样。对于 DB0-DB7,RS,E 我使用 stm 的 portb









举报

更多回帖

发帖
×
20
完善资料,
赚取积分