-
N76E003AT20 keil无法仿真
大家好,第一次接触这个单片机,按手册上说的,调试引脚都是独立的,没有连接任何电阻电容,但是还是无法仿真。手册说OCDEN=0;需要代码里配置为0,还是用Keil调试时,调试器自动就把OCDEN配置为0了?
1734浏览量 2回复量 关注量 -
HT32F57341仿真时出现这个,编译无错 sos
Load "C:\\Users\\hppen\\Desktop\\HT32Fxx\\example\\GPIO\\InputOutput\\MDK_ARMv5\\Obj\\HT32.axf" Cannot access Memory ([url=home.php?mod=space&uid=72445]@[/url] 0x00000000, Write, Acc Size: 4 Byte) Cannot access Memory (@ 0x00001000, Write, Acc Size: 4 Byte) *** error 57: illegal address (0x00001000) Include "C:\\Users\\hppen\\Desktop\\HT32Fxx\\example\\GPIO\\InputOutput\\MDK_ARMv5\\HT32F5xxxx_01_DebugSupport.ini" /*----------------------------------------------------------------------------------------------------------*/ /* Holtek Semiconductor Inc. */ /* */ /* Copyright (C) Holtek Semiconductor Inc. */ /* All rights reserved. */ /* */ /*------------------------------------------------------------------------------------------------------------ File Name : HT32F5xxxx_01_DebugSupport.ini Version : V1.03 Date : 2019-07-08 Description : Debug Support Initialization file. ------------------------------------------------------------------------------------------------------------*/ // Supported Device // ======================================== // HT32F5xxxx // <<< Use Configuration Wizard in Context Menu >>> FUNC void DebugSupport (void) { //
Configure MCU Debug Control Register // Debug Sleep Mode (DBSLP) // LDO = On, FCLK = On, and HCLK = On in Sleep mode // Debug Deep-Sleep Mode 1 (DBDSLP1) // LDO = On, FCLK = On, and HCLK = On in Deep-Sleep mode 1 // Debug Deep-Sleep Mode 2 (DBDSLP2) // LDO = On, FCLK = On, and HCLK = On in Deep-Sleep mode 2 // Debug Power-Down Mode (DBPD) // LDO = On, FCLK = On, and HCLK = On in Power-Down mode // WDT Debug Mode Enable (DBWDT) // WDT Timer counter is stopped when the core is halted // MCTM0 Debug Mode Enable (DBMCTM0) // MCTM0 Timer counter is stopped when the core is halted // GPTM0 Debug Mode Enable (DBGPTM0) // GPTM0 Timer counter is stopped when the core is halted // GPTM1 Debug Mode Enable (DBGPTM1) // GPTM1 Timer counter is stopped when the core is halted // USART0 Debug Mode Enable (DBUSART0) // USART0 Rx FIFO timeout counter is stopped when the core is halted // USART1 Debug Mode Enable (DBUSART1) // USART1 Rx FIFO timeout counter is stopped when the core is halted // UART0 Debug Mode Enable (DBUART0) // UART0 Rx FIFO timeout counter is stopped when the core is halted // UART1 Debug Mode Enable (DBUART1) // UART1 Rx FIFO timeout counter is stopped when the core is halted // UART2 Debug Mode Enable (DBUART2) // UART2 Rx FIFO timeout counter is stopped when the core is halted // UART3 Debug Mode Enable (DBUART3) // UART3 Rx FIFO timeout counter is stopped when the core is halted // SPI0 Debug Mode Enable (DBSPI0) // SPI0 Rx FIFO timeout counter is stopped when the core is halted // SPI1 Debug Mode Enable (DBSPI1) // SPI1 Rx FIFO timeout counter is stopped when the core is halted // I2C0 Debug Mode Enable (DBI2C0) // I2C0 timeout counter is stopped when the core is halted // I2C1 Debug Mode Enable (DBI2C1) // I2C1 timeout counter is stopped when the core is halted // I2C2 Debug Mode Enable (DBI2C2) // I2C2 timeout counter is stopped when the core is halted // SCI0 Debug Mode Enable (DBSCI0) // SCI0 Waiting Time counter is stopped when the core is halted // SCI1 Debug Mode Enable (DBSCI1) // SCI1 Waiting Time counter is stopped when the core is halted // BFTM0 Debug Mode Enable (DBBFTM0) // BFTM0 Timer counter is stopped when the core is halted // BFTM1 Debug Mode Enable (DBBFTM1) // BFTM1 Timer counter is stopped when the core is halted // SCTM0 Debug Mode Enable (DBSCTM0) // SCTM0 Timer counter is stopped when the core is halted // SCTM1 Debug Mode Enable (DBSCTM1) // SCTM1 Timer counter is stopped when the core is halted // SCTM2 Debug Mode Enable (DBSCTM2) // SCTM2 Timer counter is stopped when the core is halted // SCTM3 Debug Mode Enable (DBSCTM3) // SCTM3 Timer counter is stopped when the core is halted // PWM0 Debug Mode Enable (DBPWM0) // PWM0 counter is stopped when the core is halted // PWM1 Debug Mode Enable (DBPWM1) // PWM1 counter is stopped when the core is halted // if (0) { _WDWORD(0x40088304, 0x00000000); } } DebugSupport(); /*----------------------------------------------------------------------------------------------------------*/ /* Uncomment to debug stack/heap underflow, overflow, and overwrite */ /*----------------------------------------------------------------------------------------------------------*/ //BS Write __HT_check_sp, 2 //BS Write __HT_check_heap, 2 /*----------------------------------------------------------------------------------------------------------*/ /* Load debug symbol */ /*----------------------------------------------------------------------------------------------------------*/ //LOAD %L INCREMENTAL 1723浏览量 0回复量 关注量 -
基于单片机倒计时 sos
[color=#333333][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]选择 5 位数码管做显示,实现 5 种倒[/size][/font][/backcolor][/color][color=rgb(65, 131, 196)][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]计时[/size][/font][/backcolor][/color][color=#333333][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]模式,通过控制按键进行选择[/size][/font][/backcolor][/color] [color=#333333][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]1、99999s-0s[/size][/font][/backcolor][/color] [color=#333333][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]2、9999s-0s[/size][/font][/backcolor][/color] [color=#333333][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]3、999s-0s[/size][/font][/backcolor][/color] [color=#333333][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]4、99s-0s[/size][/font][/backcolor][/color] [color=#333333][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]5、9s-0s[/size][/font][/backcolor][/color] [color=#333333][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]6、开始值由[/size][/font][/backcolor][/color][color=rgb(65, 131, 196)][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]人工[/size][/font][/backcolor][/color][color=#333333][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]输入-0s[/size][/font][/backcolor][/color] [color=#333333][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]求c程序及[/size][/font][/backcolor][/color][color=rgb(65, 131, 196)][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]仿真[/size][/font][/backcolor][/color][color=#333333][backcolor=rgb(255, 255, 255)][font=微软雅黑][size=16px]图[/size][/font][/backcolor][/color]
2100浏览量 0回复量 关注量 -
PCB若干条线,哪个软件可以仿真任意两点间的总电容 sos 赏100家园币
[color=#444444][backcolor=rgb(222, 240, 251)][font=Tahoma, "][size=16px]两条线之间的寄生电容,可以计算[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(222, 240, 251)][font=Tahoma, "][size=16px]某条线的寄生电容,cadence可以直接查看到。[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(222, 240, 251)][font=Tahoma, "][size=16px]问题:[/size][/font][/backcolor][/color][color=#444444][backcolor=rgb(222, 240, 251)][font=Tahoma, "][size=16px]1、pcb板如果有多条线,(分布有规律或者分布无规律),想知道某些点之间的寄生电容值[/size][/font][/backcolor][/color] 2、如果有一个复杂的电容网络拓扑,测量任意两个点之间的电容 [color=#444444][backcolor=rgb(222, 240, 251)][font=Tahoma, "][size=16px]哪个软件可以完成这个任务呢,谢谢大家[/size][/font][/backcolor][/color]
15409浏览量 0回复量 关注量 -
dsPIC33CK256MP508在线仿真出错
能够正常烧录程序,调试时,出现如下错误,是什么情况。Fatal error: 0xc04 The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most common causes for this failure are oscillator and/or PGC/PGD settings.
4549浏览量 8回复量 关注量 -
Modelsim仿真FIR IP核遇到问题 sos
在自己的设计中调用Quartusii生成的firIP核,我的设计是verilg,fir的顶层是verilog,功能实现全是vhdl。然后在modelsim中进行仿真,仿真时提示错误Instantiation of 'fir_top_0002' failed.quartus版本是13.0 modelsim版本是 modelsim_altera 10.1d 百度也查不到。。求助高手。。
1138浏览量 0回复量 关注量 -
LM358仿真结果与实际结果不符,请大神指点,拜谢!
[i=s] 本帖最后由 yydianzi 于 2020-8-26 16:27 编辑 [/i] [img]C:\Users\Administrator\Desktop\1.png[/img]
2546浏览量 8回复量 关注量