完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
亲爱的同事们,我对PIC24FJ系列设备有些困难,不知道是否有人能给我一些助手。我遇到过其他有相似问题的帖子,并且已经穷尽了上面提到的所有显而易见的东西,我对正在发生的事感到困惑。但是问题依然存在。顺便说一下,PicKit3有固件版本01.28.90、算法版本01.15.19和OS版本01.23.02。我是PIC24系列的新手,因此我做了相当多的在线搜索,例如汇编代码,我可以适应我的测试,并在一段时间之后发现一些有效的东西。我成功地获得了一些配置设置,并成功地将测试程序编译并下载到设备上。在这个问题上,我发现很难获得关于在汇编程序中使用什么术语来配置位的简明信息,所以希望指出正确的方向。工作好,频率似乎很低,在500千赫左右。我依赖于内部8MHz时钟,但是尽管如此,我还是希望输出频率快得多。Gram)希望是振荡器设置有问题,之后开始经历一些非常奇怪的结果,即,当下载一个程序时,我不断地得到“目标设备ID(00000000)与预期的设备ID(10190000)”不匹配!我试了几次,但结果相似,现在我确信我的3RDPIC24设备已经进入硅天堂!我不能擦除或编程设备,但它似乎读回OK。我注意到,一旦读取了设备,MPLAB的配置设置就会改变为奇怪的设置,我不记得选择了这些设置,并且怀疑设备是否真的被读回或者仅仅是读取垃圾!当检查设备是否为空时,我得到消息“以下内存区域失败空白检查:程序内存地址:00000000期望值:00ffffffffff接收值:00000000Blank检查失败。因此,我不确定我做错了什么,或者我确实烹调了这些PIC24设备。我也不确定是否有PACKIT3或MPLAB可能导致这些问题。我应该补充说,PIC的焊接到PCB上,并具有0.1uF去耦电容器。MLCR引脚通过一个11K电阻和引脚56(VCAP)有一个10uF钽电容绑高。所有的VSS引脚到地上,所有VDD引脚到3.3VDC电源从一个良好的质量工作台PSU。如果需要的话,我可以提供更多这方面的信息,并且在阅读设备之前和之后还可以看到MPLAB配置位的屏幕截图,以防万一。我真的不想再烹饪PIC24设备了,直到我能够发现什么或者如果我做错了什么,所以非常感谢你的帮助。p与此。最后,我应该指出,我已经用相同的软件对许多PIC16和PIC18系列设备进行了编程,尽管PicKit2程序员没有出现任何问题或故障。ENVREG输入管脚是浮动的,一旦连接到+3.3V电源上,程序员就能够再次看到设备,并且我能够像金子一样地读取、擦除和重新编程PIC。我试过几次回复您最后的帖子,但是由于一些奇怪的原因,网站不允许我这样做!大多数集市
以上来自于百度翻译 以下为原文 Dear colleagues I am having some difficulties with PIC24FJ series device and wonder if someone here can offer some assistant please. I have come across other posts with similar issues and having exhausted all the obvious things mentioned I am perplexed as to what is happening. I am using MPLAB IDE v8.92 programming in assembler and also have just invested in a PicKit3 programmer after tests with PicKit2 proved unsuccessful as well but still the issues persist. Incidentally the PicKit3 has Firmware Version 01.28.90, Algorithm Version 01.15.19 and OS Version 01.23.02. I am new to the PIC24 series so have done quite a bit of on-line searching for example assembler code that I could adapt for my tests and after some time found something that worked. I managed to get some configuration settings and managed to successfully compile and download a test program to the device. On this matter I found it hard to acquire concise information on what terminology to use for the configuration of the bits in assembler so would appreciate being pointed in the right direction please. The test program basically just turned one output on and off cyclically and although this seemed to work ok that frequency seemed very low at around 500 kHz. I am relying on the internal 8 MHz clock but despite that I expected a significantly faster output frequency. As I wasn't completely sure on the terminology of the config bits in the program, I manually altered the settings in the Configuration Bits section in MPLAB (and commented them out in the program) in the hope that it was something awry with the oscillator settings and after that started to experience some very strange results, namely, when downloading a program I kept getting a “Target Device ID (00000000) does not match expected Device ID (10190000)”! I tried this several times but with similar results and now I am convinced that my 3rdPIC24 device has gone to silicon heaven! I cannot erase or program the device but it appears to read back ok. I have noticed that the MPLAB configuration settings, once the device has been read, change to strange settings that I don’t remember selecting and wonder if the device is indeed being read back or if it is just reading junk! When checking if the device is blank I get the message “The following memory regions failed blank check: Program Memory Address: 00000000 Expected Value: 00ffffff Received Value: 00000000 Blank check failed. So, I am not sure what I am doing wrong or if I have indeed cooked these PIC24 devices. I also am not sure if there are issues with PicKit3 or with MPLAB that could be causing these problems. I should add that the PIC’s are soldered onto a PCB and have 0.1uF decoupling capacitors. The MLCR pin is tied high via a 11K resistor and pin 56 (Vcap) has a 10uF tantalum capacitor. All Vss pins go to ground and all Vdd pins go to 3.3vdc supply from a good quality bench PSU. I can supply more information on this if required and also have screen shots of MPLAB config bits before and after reading the device in case it helps. I don’t really want to cook any more PIC24 devices until I can find out what or if I am doing something wrong so would greatly appreciate your help with this. Lastly I should point out that I have programmed many PIC16 and PIC18 family devices with the same software, albeit with the PicKit2 programmer with zero issues or failures. Regards UPDATE >>> RESOLVED Thanks very much DarioG and btbass for all your help, I have found the problem. The ENVREG input pin was floating and once connected to the +3.3V supply the programmer was able to see the device once again and I was able to read, erase and reprogram the PIC good as gold. I tried several times to reply to your last posts but for some strange reason the site won't let me do that! Most bazaar. Regards |
|
相关推荐
10个回答
|
|
因此,在您之前关于编程问题的帖子http://www..hip.com/for./m943480.aspxAs之后,您应该检查所有电源引脚是否都已连接,是否有适当的去耦帽(100nF)以及VCAP帽(一些uF低ESR)。图设置和一些寄存器运行时间设置太…
以上来自于百度翻译 以下为原文 So, following your previous post http://www.microchip.com/forums/m943480.aspx As for programming issues, you should check that all power pins are connected, that you have proper decoupling caps in place (100nF) and also the VCAP one (some uF low ESR). As for the PLL, that PIC should need both some CONFIG settings and some register run-time setting too... |
|
|
|
您可以在“P24FJ256GB106.Inc”文件中找到配置位的信息,它一定在汇编程序的某个地方。========================================================================================================================================================================================================GREG: .pwordVA例如,要使用上面的宏设置CON._REG,以下行;只能在程序集源代码的开头粘贴;紧挨在“.include”指令的下面。rguments:第一个是配置字的名称;第二个参数是布尔表达式,可以包括多个设置;上面的示例将启用SETTING_A和SETTING_B;;每个配置字的所有可能设置的描述;出现在下面的
以上来自于百度翻译 以下为原文 You can find information on the config bits in the 'p24FJ256GB106.inc' file. Which must be somewhere with the assembler? Quote from inc file: ;========================================================================== ; ; Setting configuration words using macros: ; ; The following macro named 'config' can be used to set configuration words: ; .macro config REG, VALUE .pushsection REG.sec, code .global REG REG: .pword VALUE .popsection .endm ; ; For example, to set CONFIG_REG using the macro above, the following line ; can be pasted only at the beginning of the assembly source code, ; immediately below the '.include' directive. ; ; config __CONFIG_REG, SETTING_A & SETTING_B ; ; Note that the 'config' macro takes two arguments: the first is the name ; of a configuration word (in this case, __CONFIG_REG), the second argument ; is a boolean expression that may include multiple settings. ; The example above would enable SETTING_A and also SETTING_B. ; ; A description of all possible settings for each configuration word ; appears below. ; ;========================================================================== |
|
|
|
我的配置(在C)然后
以上来自于百度翻译 以下为原文 MY Configs (in C) _CONFIG1(JTAGEN_OFF & GCP_OFF & GWRP_OFF & ICS_PGx1 & FWDTEN_OFF & WINDIS_OFF & FWPSA_PR32 & WDTPS_PS1024) _CONFIG2(IESO_OFF & FNOSC_FRCPLL & PLL_96MHZ_ON & OSCIOFNC_ON & POSCMOD_NONE & PLLDIV_DIV2 & FCKSM_CSDCMD & IOL1WAY_ON & DISUVREG_OFF ) _CONFIG3(WPFP_WPFP0 & WPDIS_WPDIS & WPCFG_WPCFGDIS & WPEND_WPENDMEM) and then CLKDIVbits.RCDIV = 0; // Set 1:1 8MHz FRC postscalar pll |
|
|
|
嗨DaaoYES所有引脚连接-逐一检查作为一个健全的检查!我有两个0.1uF帽非常接近设备在每一端,还有一个10uF钽电容器的Vcap引脚。我使用一些基本的设置配置,我可以找到当时。正如我所说的,最初代码似乎工作缓慢(大约500千赫)。在您使用PIC24的经验中,什么会导致“目标设备ID(00000000))与预期的设备ID(10190000)不匹配?我以前从未经历过这样的错误。谢谢。
以上来自于百度翻译 以下为原文 Hi Dario Yes all pins are connected - checked one by one as a sanity check! I have 2 0.1uF caps very close to the device at each end and also a 10uF tant capacitor on the Vcap pin. I used some basic settings for the config of what I could find at the time. As I said, initially the code seemed to work albeit slowly [about 500 Khz]. In your experience with PIC24's what would cause the "Target Device ID (00000000) does not match expected Device ID (10190000)"? I've never experienced this error before. Thanks |
|
|
|
非常感谢您的帮助BTBASS。好主意,我早就应该这么做了!我现在正在检查。
以上来自于百度翻译 以下为原文 Thanks very much for your help btbass. Good suggestion and I should have already done that before! I am checking it now. Regards |
|
|
|
你好,再见,谢谢你。BTBASS还建议我看看.Inc文件,我应该已经做了,但是我现在正在做。从表面上看,我的设置是可以的。但是,“错误”设置会导致PIC24在我原来的帖子中描述的方式出现故障吗?仍然不知道为什么我的PIC24不断死亡!:
以上来自于百度翻译 以下为原文 Hello again DarioG Awesome thank you very much. btbass also suggested I look at the .inc file which I should have already done but I am doing that now. On the surface it looks as tho the settings I have are ok. But would the 'wrong' settings cause the PIC24 to malfunction in the way I described in the my original post? Still no idea why my PIC24's keep dying! :-( |
|
|
|
是的,还要看一下数据表,它会告诉你每个位做什么。然后,对于inc文件和数据表,一切都会变得非常清晰。
以上来自于百度翻译 以下为原文 Yes, Also look at the data sheet which will tell you what each bit does what. Then, with both the inc file and the data sheet, it will all become as clear as mud. |
|
|
|
再次问好BBASSIYES我已经阅读了数据表-我的眼睛是从看电脑屏幕正方形!我最初的问题是不知道正确的术语是什么,以便我能够在代码中设置它,因此我在MPLAB中通过配置菜单使用手动方法的原因。但是,由于错误的配置,期望出现如前文所述的设备故障是否合理?之前我在配置文件中指定了错误设置,但对设备没有损害。程序更改和重新编程将所有错误设置为正确!仍然不清楚我的PIC24发生了什么。谢谢BTBASS
以上来自于百度翻译 以下为原文 Hello again btbass Yes I have already read the datasheet - my eyes are square from looking at the computer screen! :) The issue I had initially was not knowing what the correct terminology was to enable me to set it in the code hence the reason I used the manual method via the config menu in MPLAB. But is it reasonable to expect a device failure as described in the original post due to wrong configurations? I have had issues before where I specified the wrong settings in the configs but with no detriment to the device. A program change and re-program sets all the wrongs to right! Still no clearer as to what is happening with my PIC24's. Thank you btbass |
|
|
|
通常很难打破照片,所以…常见的问题是接线、电容器…嗯,在ICSP引脚的负载,但我不认为这是你的情况…一些PIC16不会想进入ICSP模式,如果你创造了一些时髦的配置图,如禁用MCLR引脚和内部振荡器,但是…它不应该发生在PIC24…
以上来自于百度翻译 以下为原文 It's usually very hard to break PICs so... Usual issues are wiring, capacitors... well, loads at ICSP pins but I don't think it's your case... Some PIC16 would not want to enter ICSP mode if you created some funky CONFIG such as MCLR pin disabled and internal oscillator but... it should not happen on PIC24... |
|
|
|
我也很怀疑配置可以破坏芯片吗?我发现Pic很耐劳,我甚至把它们插错了方向,变得很热,但是一旦我换回去,工作还可以吗????您可以检查是否有任何浮动输入引脚可能导致它锁定?目标设备ID(00000000)与预期的设备ID(10190000)不匹配“当芯片不能进入编程模式时,有时会发生此错误。如果复位线出现问题,则可能会发生此错误。复位应该被拉起,以便只供应一个电阻器,大约10K,不大的电阻器,因为泄漏电流。没有上限解耦它。
以上来自于百度翻译 以下为原文 I also very much doubt that config settings could destroy a chip? I have found Pic to be very hardy, Ive even plugged them in the wrong way round, got really hot, but worked OK once I switched it back??? You could check if you have any floating input pins that might cause it to lock up? "Target Device ID (00000000) does not match expected Device ID (10190000)" This error sometimes occurs when the chip can't be put into programming mode. This can happen if there is a problem with the reset line. Reset should be pulled up to supply with just a resistor, about 10K, no bigger, because of leakage current. with no caps decoupling it. |
|
|
|
只有小组成员才能发言,加入小组>>
5231 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3200 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
770浏览 1评论
658浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
587浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
668浏览 0评论
570浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 22:09 , Processed in 1.533859 second(s), Total 94, Slave 78 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号