完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
PIC32 MK1024MCF100,和声2.05,XC32 2.05A新项目将使用PIC32 MK1024MCF100在自定义板上。这个MK恰好有我们所有的“正确的东西”来代替DSPIC和PIC24在我们的下一代硬件上。新的硬件将在这里在几个星期,所以我最好开始…我有一个探险家16/32板和一个PIC32 MK1024MCF100 PIM。我还没有找到Microchip网站上的任何文档,这是一个很好的匹配,但我没有做运动控制,只是普通PIC32的东西,包括EQI,这就是为什么我们选择了这一部分。为什么PIM不能在Explorer 16/32板上工作?我的第一个应用程序打开了一个LED。当我用机上的皮卡下载它时,它不起作用。当我尝试调试它时,我得到了众所周知的:编程/验证完成。目标设备还没有准备好调试。请检查配置位设置并在继续之前对设备进行编程。这个失败的最常见的原因是振荡器和/或PGC/PGD设置。“我遵循了演示MK项目的和声配置位。时钟配置是:CONtiONFPLILIVI=“DIVIG1”CONTIONFPLLRNG =“RangeE551010MHz”CONTIOFFPLILKK =“PLLYPOSC”CONTIOFFPLLMLT =“Muly60”CONTIOFFPLRODIV=“DIVIO4”CONTIONPOSSCMOD =“EC”给我在Explorer板上的8 MHz晶体的120 MHz块。有什么想法吗?
以上来自于百度翻译 以下为原文 PIC32MK1024MCF100, HARMony 2.05, XC32 2.05 A new project will use the PIC32MK1024MCF100 on a custom board. This MK just happens to have all of the 'right stuff' for us to replace a dsPIC and a PIC24 on the next generation of our hardware. New hardware will be here in a few weeks, so I better get started... I have an Explorer 16/32 board and a PIC32MK1024MCF100 PIM. I haven't been able to find any documentation on Microchip's website that this is a good match, but I am not doing motor control, just normal PIC32 stuff, including EQI, which is why we chose this part. Any reason why this PIM won't work on the Explorer 16/32 board? My first app just turns on an LED. It doesn't work when I download it with the onboard PICKit. When I try to debug it, I get the proverbial: Programming/Verify complete 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." I have followed the Harmony config bits from the demo MK project. The clock configuration is: CONFIG_FPLLIDIV="DIV_1" CONFIG_FPLLRNG="RANGE_5_10_MHZ" CONFIG_FPLLICLK="PLL_POSC" CONFIG_FPLLMULT="MUL_60" CONFIG_FPLLODIV="DIV_4" CONFIG_POSCMOD="EC" to give me the 120 MHz block from the 8 MHz crystal on the Explorer board. Any ideas? |
|
相关推荐
11个回答
|
|
|
所以,我通过选择FRC来运行。这对我最初的发展来说已经足够了。
以上来自于百度翻译 以下为原文 So, I got it to run by selecting the FRC. That is good enough for my initial development. |
|
|
|
|
|
|
|
|
|
|
|
是的,我现在明白了。我习惯于使用外部时钟而不是晶体。即将到来的新硬件使用时钟,所以它不会有这个问题。在此期间,我可以与FRC一起蹒跚而行,或者看看我能否找到一个非常小的2K电阻。注意:不要让软件人靠近SMD焊接站…
以上来自于百度翻译 以下为原文 Yeah, I see that now. I am use to using external clocks rather than crystals. The soon to arrive new hardware uses a clock so it won't have that problem. In the meantime, I can limp along with the FRC or see if I can find a very small 2K resistor. Note: Never let a software guy near an SMD soldering station... |
|
|
|
|
|
嗨,有一个新的开发板为PIC32 MK家庭,它是由和谐框架支持:HTTP://www. McCHIP.COM/DeavigoToSs/PositDeaviel.ASPX?PARNONO=DD320106
以上来自于百度翻译 以下为原文 Hi, There is a new development board for PIC32MK family which is supported by Harmony framework : http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=DM320106 Regards |
|
|
|
|
|
谢谢你提供的信息。我以前看过这个板,但是MK的GP版本不包括我们需要的编码器接口(IQE)。
以上来自于百度翻译 以下为原文 Thanks for the information. I had looked at this board earlier, but the GP version of the MK doesn't include the encoder interface (IQE) that we need. |
|
|
|
|
|
我做了同样的事情,有些事情要考虑:-有更多的配置来运行它。(也许,如果你使用和声,我就不会这么做)——注意XXBITS。Field= 1;符号不是原子的,杀死它,从开始使用SET和CLR。一些中断是级别而不是基于边缘的。你真的需要杀死这个条件来阻止中断触发。最后,我决定留在DSPIC33 E,MK对我来说更慢。只有在执行NOPS时,我才能从中得到一些适当的速度。据我所知,我把它配置得很好(读回寄存器和双重校验)。
以上来自于百度翻译 以下为原文 I did the same, some things to consider: - there is a whole lot more to configure to get it running. (maybe better if you use Harmony, I didn't) - note that xxbits.field=1; notation is not atomic, kill it and use SET and CLR from the start - some interrupts are level rather than edge based. You really need to kill the condition to stop the interrupt from triggering. In the end I decided to stay with dspic33e, mk was slower for me. Only when executing nops I could get some decent speed out of it. And to my knowledge I did configure it well (and read back the registers and doublechecked) |
|
|
|
|
|
所以,它运行,闪烁几个灯-使用裸露的金属定时环。下一个任务是让它检测USB记忆棒(MSD)。结果表明,虽然这个MK有2个USB接口,但是USB接口的引脚没有连接在PIC和SIM插槽之间(PIC引脚54, 55和57)。USB2的引脚连接到插座(PIC引脚58, 58和60连接到SIM插座引脚53, 54和55),但都没有丢失-但是。Explorer板具有方便的行标题,允许我将USB2连接到Explorer板上的A型连接器或外部Type A.,现在的大问题是,在PIC上使用第二USB接口的Hyg USB堆栈是否成功?MHC GUI似乎没有足够的选项来将驱动程序指向第二个硬件实例。
以上来自于百度翻译 以下为原文 So, it runs, blinking a few lights - using a bare metal timing loop. The next task is to get it to detect a USB memory stick (MSD). It turns out that while this MK has 2 USB interfaces, USB1's pins are not connected between the PIC and the SIM socket (PIC pins 54, 55, and 57). USB2's pins are connected to the socket (PIC pins 58, 58 and 60 connected to SIM socket pins 53, 54 and 55). But all is not lost - yet. The Explorer board has convenient rows of headers that may allow me to connect USB2 to the Type A connector on the Explorer board or to an external Type A. The big question now is, has anyone had success at using the Harmony USB stack with the 2nd USB interface on a PIC? The MHC GUI doesn't seem to have enough options to point the driver to the 2nd instance of hardware. Still digging through that. |
|
|
|
|
|
我有完全相同的设置,我也在努力让它运行。我仍然在目标设备还没有准备好调试。我已经尝试过了Hyror框架,并且还裸露了金属。无论是外部OSC还是FRC+PLL,到目前为止都没有成功。我想我的配置位存在一个问题(我是新的32位设备)。您介意分享基本配置吗?如果还有更多的事情要看BES的话。IDE配置位,或者如果您必须在Explorer 16/32板上进行特定调整(跳线?).
以上来自于百度翻译 以下为原文 I have the exact same setup and I'm also struggling to get it running. I'm still at the The target device is not ready for debugging. I've tried through the Harmony framework and also bare metal standalone. Either with external OSC or FRC + PLL no success so far. I guess there is an issue to my configuration bits (I'm new to the 32bit devices). Would you mind to share basic configuration and if there is further things to look at beside the configuration bits or if you had to make specific adjustment on the explorer 16/32 board (jumpers?). |
|
|
|
|
|
|
|
|
|
|
|
PIM在电路板的下侧有一个24 MHz的时钟。在我意识到它在那里之前,我已经移除了8 MHz的晶体电路并焊接在一个8 MHz的时钟芯片中。当我发现了24兆赫的时钟,我删除了8兆赫的时钟,事情就好多了。然后,我能够运行PIC在120兆赫,并使用SPLL的PBLK。我得到PIC运行后的第一个任务是开发一个基于USB的引导加载程序。由于PIM不带USB1引脚,所以我尝试使用USB2,但是遇到PIN连接PIM报头的PIN问题。PIM真的是为电机控制而设计的,而不是一般用途的工作(这是我正在做的——没有电机)。我最终放弃了这一努力,买了一个PIC32 MK1024GEP100开发板。虽然我的实际硬件将使用MCF版本的MK,而不是GPE版本,它们是足够接近,我可以得到大部分的接口,我需要运行。我所需要的唯一的GPE是编码器,这是我首先选择MCF的原因。至于芯片没有准备好调试的问题,您需要在配置位上启用调试,并确保您连接到或选择了正确的PD通道。
以上来自于百度翻译 以下为原文 The PIM has a 24 MHz clock on the underside of the circuit board. Before I realized it was there, I had removed the 8 MHz crystal circuit and soldered in an 8 MHz clock chip. When I discovered the 24 MHz clock, I removed 8 MHz clock and things went a lot better. I was then able to run the PIC at 120 MHz and use the SPLL for the PBCLK. My first task after I got the PIC running was to develop a USB based boot loader. Since the PIM doesn't bring out the USB1 pins, I tried to use USB2, but ran into further issues with the pins the PIM connected to the PIM header. That PIM is really designed for motor control and not general purpose work (which is what I am doing - no motors). I finally abandoned that effort and bought a PIC32MK1024GEP100 development board. While my actual hardware will use the MCF version of the MK and not the GPE version, they are close enough that I can get most of the interfaces I need running. The only thing the GPE lacks that I need is an encoder, which is the reason I chose the MCF in the first place. As for the issue with the chip not being ready for debugging, you need to enable DEBUG on the config bits and make sure that you are connect to or have selected the correct PD channel. |
|
|
|
|
|
我终于得到它的工作,我也走过了这个24MHz时钟。主要问题是我正在使用PGX1,但PIM重新路由到PGX2。这是我的配置,如果它可能会帮助某人。/PIC32 MK1024MCF100配置位设置/ /’C源代码配置语句/ /DEVCFG3/使用RID=PraceMac配置,PWMLOCK = OF//PWM IOXCON锁(PWM IOCON寄存器写入访问未被锁定或保护)。N是由端口函数控制的,{ Trac-Matlab配置,PGL1WORE=ON//许可组锁单向配置位(只允许一个重新配置),γ-PrimaMac配置PMDL1WORE = / /外围模块禁用配置(只允许一个重新配置)选择配置(只允许一个重新配置),γ-PracMA配置FUSBIdio1=OU//USB1 USBID选择(USBID引脚由端口函数控制)α-PrimaMac配置FFBUSIO1= OF//USB2 VBUSON选择位(VBUSON PIN由端口函数控制)//DVCFG2α-PrAPMA配置FFLIPDIV= DIVIZ1 / /系统PLL Input Divider(1X分频器),Pracl配置,FPLLRNG=RangeE131326MHz,/系统PLL输入范围(13-26MHz输入)α-PracMA配置FPLILKK=PLLYPOSS//PLL输入时钟选择(POSC被输入到系统PLL)α-PrAPMA配置FPLLMult = Mulr20//PLL乘法器(PLL多载波)y y由20)μPrimaFig=DIVIO4//PLL系统输出时钟分频器(4x除法器)α-PracMA配置VVBROBEN=//VBAT BOR使能(在VBAT模式下启用ZPBOR)α-PrimaMac配置DSBRON=//深度睡眠Bor使能(在深度休眠模式下启用ZPBOR)EEP看门狗Timer Postscaler(1∶2 ^ 36)* PrimaMac配置DSWDTOCS= LPRC//深度睡眠WDT参考时钟选择(选择LPRC作为DSWDT参考时钟)α-PrAPMA配置DSWDTEN = / /深度睡眠看门狗定时器启用(启用深度睡眠模式下的DSWDT)(启用DSCON中的DSEN位),γ-PrimaAg配置BRSEL =高/ /棕色输出电压(BOR跳闸电压2.1V(非OpAMP Dead Curry操作))α-PrimaMaung=OU//USB PLL使能(USB PLL禁用)/DEVCFG1* PrAPMA配置FNOCS= SPLL/ /振荡器选择位(主OSC(HS,EC))GdDMtInV=Wi12127Y128//DMT计数窗口间隔(窗口/间隔值为127/128计数器值)α-PracMA配置FSCOSEN=OF//次级振荡器使能(禁用二级振荡器)α-PrAPMA CONFIG-IESO = ON//内部/外部切换(启用)γ-PracMA配置POSCMOD=EC//主OSCHILCAR配置(外部时钟模式)在OSCO引脚(禁用)上激活的Oraco配置OSCIOFNC=OF//CLKO输出信号,FCKSM=CSEME//时钟切换和监视器选择(启用时钟开关,启用FSCM)α-PrAPMA CONFIG WDTPS=PS1048 57 6/ /看门狗Timer Postscaler(A:PrimaMatlab配置WTTSPGM=Flash编程中的停止/ /看门狗定时器停止(Flash编程中的WDT停止)* PrimaMac配置=正常/ /看门狗定时器窗口模式(看门狗定时器是在非窗口模式下)* PrimaMac配置FFDTEN= OF//看门狗定时器启用(WDT禁用)ONFIG FWDTWSNZ=WiSZZ25//看门狗定时器窗口大小(窗口大小为25%)α-PrAPMA配置DMCTNT=DMT31//死人定时器计数选择(2 ^ 31(2147483648))* PrimaMac配置FDFDN=关闭/ /死人定时器启用(Debug定时器被禁用)//DVCFG0*PracMA配置调试= ON//后台Debugger En可以(调试器被启用)({ TabAGEN)/JTAGEN=OF//JTAG启用(JTAG禁用)一个选择(启动代码和异常代码是MIPS32)α-PrimaMac配置FFAIL= OF//FLASH睡眠模式(当设备处于休眠模式时FLASH被关闭)//软主清除使能(MCLR引脚产生正常系统复位),γ-PracMA配置,sOcGoSc= GAINY2X//次级振荡器增益控制位(2X增益设置)α-PrAPMA COSFIG SCOSBOOST=ON / /次振荡器升压开机启动位(提高振荡器的开机启动)G PascRe= GAIN级ALI/3/主振荡器增益控制位(增益级3(最高))α-PracMA配置POSBOOST=ON//主振荡器Boost启动启动位(提高振荡器的启动启动)α-PrabMA配置EJTAGBEN =正常//EJTAG启动使能(正常EJTAG功能)
以上来自于百度翻译 以下为原文 I finally got it working, I also went across this 24Mhz clock. The main issue is that I was using PGx1 but the PIM reroute it to the PGx2. Here is the configuration I have in case it might help someone. // PIC32MK1024MCF100 Configuration Bit Settings // 'C' source line config statements // DEVCFG3 // USERID = No Setting #pragma config PWMLOCK = OFF // PWM IOxCON lock (PWM IOxCON register writes accesses are not locked or protected) #pragma config FUSBIDIO2 = OFF // USB2 USBID Selection (USBID pin is controlled by the port function) #pragma config FVBUSIO2 = OFF // USB2 VBUSON Selection bit (VBUSON pin is controlled by the port function) #pragma config PGL1WAY = ON // Permission Group Lock One Way Configuration bit (Allow only one reconfiguration) #pragma config PMDL1WAY = ON // Peripheral Module Disable Configuration (Allow only one reconfiguration) #pragma config IOL1WAY = ON // Peripheral Pin Select Configuration (Allow only one reconfiguration) #pragma config FUSBIDIO1 = OFF // USB1 USBID Selection (USBID pin is controlled by the port function) #pragma config FVBUSIO1 = OFF // USB2 VBUSON Selection bit (VBUSON pin is controlled by the port function) // DEVCFG2 #pragma config FPLLIDIV = DIV_1 // System PLL Input Divider (1x Divider) #pragma config FPLLRNG = RANGE_13_26_MHZ// System PLL Input Range (13-26 MHz Input) #pragma config FPLLICLK = PLL_POSC // System PLL Input Clock Selection (POSC is input to the System PLL) #pragma config FPLLMULT = MUL_20 // System PLL Multiplier (PLL Multiply by 20) #pragma config FPLLODIV = DIV_4 // System PLL Output Clock Divider (4x Divider) #pragma config VBATBOREN = ON // VBAT BOR Enable (Enable ZPBOR during VBAT Mode) #pragma config DSBOREN = ON // Deep Sleep BOR Enable (Enable ZPBOR during Deep Sleep Mode) #pragma config DSWDTPS = DSPS32 // Deep Sleep Watchdog Timer Postscaler (1:2^36) #pragma config DSWDTOSC = LPRC // Deep Sleep WDT Reference Clock Selection (Select LPRC as DSWDT Reference clock) #pragma config DSWDTEN = ON // Deep Sleep Watchdog Timer Enable (Enable DSWDT during Deep Sleep Mode) #pragma config FDSEN = ON // Deep Sleep Enable (Enable DSEN bit in DSCON) #pragma config BORSEL = HIGH // Brown-out trip voltage (BOR trip voltage 2.1v (Non-OPAMP deviced operation)) #pragma config UPLLEN = OFF // USB PLL Enable (USB PLL Disabled) // DEVCFG1 #pragma config FNOSC = SPLL // Oscillator Selection Bits (Primary Osc (HS,EC)) #pragma config DMTINTV = WIN_127_128 // DMT Count Window Interval (Window/Interval value is 127/128 counter value) #pragma config FSOSCEN = OFF // Secondary Oscillator Enable (Disable Secondary Oscillator) #pragma config IESO = ON // Internal/External Switch Over (Enabled) #pragma config POSCMOD = EC // Primary Oscillator Configuration (External clock mode) #pragma config OSCIOFNC = OFF // CLKO Output Signal Active on the OSCO Pin (Disabled) #pragma config FCKSM = CSECME // Clock Switching and Monitor Selection (Clock Switch Enabled, FSCM Enabled) #pragma config WDTPS = PS1048576 // Watchdog Timer Postscaler (1:1048576) #pragma config WDTSPGM = STOP // Watchdog Timer Stop During Flash Programming (WDT stops during Flash programming) #pragma config WINDIS = NORMAL // Watchdog Timer Window Mode (Watchdog Timer is in non-Window mode) #pragma config FWDTEN = OFF // Watchdog Timer Enable (WDT Disabled) #pragma config FWDTWINSZ = WINSZ_25 // Watchdog Timer Window Size (Window size is 25%) #pragma config DMTCNT = DMT31 // Deadman Timer Count Selection (2^31 (2147483648)) #pragma config FDMTEN = OFF // Deadman Timer Enable (Deadman Timer is disabled) // DEVCFG0 #pragma config DEBUG = ON // Background Debugger Enable (Debugger is enabled) #pragma config JTAGEN = OFF // JTAG Enable (JTAG Disabled) #pragma config ICESEL = ICS_PGx2 // ICE/ICD Comm Channel Select (Communicate on PGEC1/PGED1) #pragma config TRCEN = ON // Trace Enable (Trace features in the CPU are enabled) #pragma config BOOTISA = MIPS32 // Boot ISA Selection (Boot code and Exception code is MIPS32) #pragma config FSLEEP = OFF // Flash Sleep Mode (Flash is powered down when the device is in Sleep mode) #pragma config DBGPER = PG_ALL // Debug Mode CPU Access Permission (Allow CPU access to all permission regions) #pragma config SMCLR = MCLR_NORM // Soft Master Clear Enable (MCLR pin generates a normal system Reset) #pragma config SOSCGAIN = GAIN_2X // Secondary Oscillator Gain Control bits (2x gain setting) #pragma config SOSCBOOST = ON // Secondary Oscillator Boost Kick Start Enable bit (Boost the kick start of the oscillator) #pragma config POSCGAIN = GAIN_LEVEL_3 // Primary Oscillator Gain Control bits (Gain Level 3 (highest)) #pragma config POSCBOOST = ON // Primary Oscillator Boost Kick Start Enable bit (Boost the kick start of the oscillator) #pragma config EJTAGBEN = NORMAL // EJTAG Boot Enable (Normal EJTAG functionality) |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1122浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
872浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 22:03 , Processed in 0.888497 second(s), Total 92, Slave 75 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1667