Microchip
直播中

宁升椿

7年用户 270经验值
私信 关注
[问答]

EBI与Harmony V1.09和PIC32MZ2048ECH144不兼容

我很难让EBI与PIC32MZ2048ECH144芯片一起工作。我使用了所有最新的开发工具,据我所知:MPLAB X V3.40XC32V1.42HARMonyV1.09Harmony配置正确,我所做的就是配置振荡器EBI,还有一个I/O引脚和用于调试的UART。振荡器通过I/O引脚和UART定时确认是正确的。当我停止调试以免试图读取指向我映射的图形控制器芯片的指针时,EBI寄存器看起来配置正确;配置为4MbSRAM@物理地址0x20000,使用多达地址线A21,16位数据总线。EBICS0=0x20000000EBIMSK0=0x00000027EBISMT0=0x07000001EBIFTRPD=0x000C8EBISMCON=0x00000001CFGEBIA=0x0003FFFCFGEBIC=0x01000313I正试图从偏移0和偏移1处的前两个映射位置读取数据,这两个位置应该提供两个16 16 16指示图形控制器存在的位值。我试图从0xE0000000(不可缓存)和0xC0000000(可缓存)的基本地址读取,但是没有任何结果。我可以从UART中看到正确的指针值,但是一旦读操作被调用,处理器就不会进入任何人的领地。当调试MPLAB X变得与我的真实ICE不同步时,如果我对芯片进行编程并在不调试的情况下运行它,则会得到相同的结果,适当的指针值来自UART,但之后什么也没有。re UART输出,在异常陷阱中设置的任何断点都不会打印字符串,调试也不会停止。被编译器征服了,谢谢任何我能得到的帮助!

以上来自于百度翻译


      以下为原文

    I am having great difficulty in getting the EBI to work with the PIC32MZ2048ECH144 chip.
I am using all the latest dev tools as far as I can determine:
MPLAB X V3.40
XC32 V1.42
Harmony V1.09

Harmony is configured properly as far as I can tell, all I have done is configure the oscillator the EBI, and one I/O pin and a UART for debugging. The osciallator is confirmed is proper thru both an I/O pin and proper UART timing.

The EBI registers look like they are configured properly when I stop debugging just shy of trying to read a pointer to the graphics controller chip I have mapped; configured as 4Mb SRAM @ physical address 0x20000000, using up to address line A21, 16 bit data bus.


EBICS0 = 0x20000000
EBIMSK0 = 0x00000027
EBISMT0 = 0x07000001
EBIFTRPD = 0x000000C8
EBISMCON = 0x00000001
CFGEBIA = 0x003FFFFF
CFGEBIC = 0x01000313

I am attempting to read from the first two mapped locations at offset 0 and offset 1 which should provide two 16 bit values indicating that the graphics controller is present. I have tried to read from a base address of 0xE0000000 (non-cacheable) and 0xC0000000 (cacheable) with no results at all. I can see the proper pointer values coming out the UART but once the read action is called the processor goes off into no man's land. When debugging MPLAB X becomes out of synch with my REAL ICE, if I program the chip and run it without debugging I get the same results, proper pointer values coming our of the UART but nothing after that.
No exceptions are being thrown, I am using the Harmony exception framework to which I added more UART output, no strings are ever printed nor does the debugging stop at any breakpoint I set in the exception trap.

The EBI documentation mentions that the TLB and MMU need to be configured properly but there is little or no documentation on those features, they are supposed to be properly initialized by the compiler.

Thanks for any help I can get!

回帖(11)

杨叶

2019-6-20 11:34:33
嗨,EBI被用于几个图形示例中,因为在一些演示中需要外部SRAM作为帧缓冲。如果您正在启动项目,请考虑切换到PIC32MZ...EF,它是与PIC32MZ...EC针脚兼容的设备。除了ADC,它是完全SW兼容的。EF版本的硅缺陷更少,A/D转换器更好,它具有相同的外围设备(除了ADC)并且增加了FPU。

以上来自于百度翻译


      以下为原文

    Hi,
EBI is used in several graphics examples because external SRAM is needed for frame buffer in some demos.
If you are starting your project, please consider switching to the PIC32MZ...EF which is a pin to pin compatible device with PIC32MZ...EC. It is fully SW compatible except ADC.
EF version has much less silicon bugs, the A/D converter is much better, it has same peripherals (except ADC) and it adds FPU.
Regards
 
 
举报

张娜

2019-6-20 11:44:12
是的,正如我们所说的HTTP://www. MyCHIP.COM/FUMMS/M9550.ASPX,TLB和MMU在链接器文件和编译器中处理的东西是…相当复杂/复杂。关于在文档中可以找到的TLB条目的小信息是不够的。

以上来自于百度翻译


      以下为原文

    yeah, as we said
http://www.microchip.com/forums/m955010.aspx

 
That thing that TLB and MMU are handled in the linker file and hence by the compiler is... quite complicated/complicating. And the little info about TLB entries that you can find in the Docs are not enough.
One would need some examples on how to map...
举报

冯润生

2019-6-20 11:53:51
谢谢大家,RISC:我正在研究最初的原型,我已经考虑转向EF部件,特别是现在我知道EC部件上的硅有问题。最初的处理器决定是在一段时间以前,现在EC部件已经被标记为不推荐用于新的设计,这可能是我需要的方式,只需要交换芯片并更改projectDario:唯一的例子是在PIC32MZ上的EBI文档中,它声明了假设TLB和MMU配置正确。现在我坚信我所写的都是正确的,所以可能是硅问题。我会换成EF部分并汇报。

以上来自于百度翻译


      以下为原文

    Thanks all,
 
RISC: I am working on the initial prototypes and I have considered moving to the EF parts, expecially now that I know that the silicon on the EC parts have issues. The initial processor decision was a while ago, and now the EC parts have been flagged as not recommended for new designs, that may be the way I need to go and simply have the chips swapped out and change the project
 
Dario: The only example is in the EBI docs on the PIC32MZ's and it states that is assumes that the TLB and MMU are configured correctly.
 
I firmly believe now that all that I have written is correct, so perhaps it is a silicon issue. I will change to the EF parts and report back.
举报

张娜

2019-6-20 11:59:01
是的,我的问题是不同的,因为我可以使这个示例工作(使用默认链接器脚本等),但我需要使用4个EBI“端口”。但就是这样…

以上来自于百度翻译


      以下为原文

    Yeah, my issue is different since I can make that example work (using default linker script etc) but I need to use 4 EBI "ports". But that's it...
举报

更多回帖

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