Microchip
直播中

王学超

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

请问有没有i.mx6中现场编程PIC的代码和HW示例?

我有一个使用i.mx6运行Linux和PIC16F18324进行板内管理的设计。我可以使用USB升级现场处理器,也希望能够在现场编程PIC FW。有没有i.mx6(或类似的处理器)中现场编程PIC的代码和HW示例?运行Linux?谢尔杰

以上来自于百度翻译


      以下为原文

    I have a design using i.mx6 running Linux and a PIC16F18324 for some housekeeping on the board.
I can use USB to upgrade processor in the field and would also like to be able to program PIC FW in the field.

Are there any code and HW examples of programming PIC in field from i.mx6 (or similar processor running Linux)?

Thanks
J

回帖(4)

杜元晓

2019-6-5 07:43:36
这不是常见的情况。我几乎肯定你自己必须为PIC编程编写代码。我推荐LVP编程模式输入模式。有关编程细节,请参阅PIC16(L)F183XX内存编程手册。

以上来自于百度翻译


      以下为原文

    It's not quite common case. I'm almost sure you have to write the code for PIC programming yourself. I'd recommend LVP programming mode entry mode.
Check the PIC16(L)F183XX Memory Programming manual for programming details.
举报

李天竹

2019-6-5 08:14:30
你可以使用PIC16F188XX系列。编程算法只是简单的SPI——在Linux上要比PIC16F18324容易得多。

以上来自于百度翻译


      以下为原文

    You can use PIC16F188xx series. The programming algorithm is just plain SPI - much easier on Linux than PIC16F18324.
 
Or, perhaps, lose Linux and do everything on PIC16F18324 :)
 
举报

杜元晓

2019-6-5 08:42:35
IMHO,与Pootloader相比,PIC的LVP(低电压编程)能力是巨大的。LVP允许重新配置整个芯片的配置和校准字。您将能够从任何固件bug恢复PIC。相反,引导加载程序无法编程配置词。由于无法重新编程配置字,启动时钟设置、看门狗设置等不能通过引导加载程序自写过程设置。此外,您还需要一些方法来输入引导加载模式。使用LVP,您绝对可以停止芯片并一直进入编程模式,因为启用了MEMCLR(复位)管脚。如果正在使用引导加载程序并且禁用MCLR,那么如果编程引脚被不正确的固件过度驱动为输出,则进入引导加载程序模式可能会有问题。

以上来自于百度翻译


      以下为原文

    IMHO, the ability to LVP (low voltage programming) of the PIC is great thing in comparison with a bootloader. The LVP allows to reprogram whole chip with configuration and calibration words. You will be able to recover the PIC from any firmware bug. In contrast, the bootloader can't program configuration words. Not all of startup clock settings, watchdog settings, etc may be set by bootloader self-write procedures due to inability to reprogram configuration words. Also you need some method to enter bootloader mode. With LVP you definitely can stop the chip and enter the programming mode all the way because the MEMCLR (reset) pin is enabled. If you're using a bootloader and MCLR is disabled, there may be a problems to enter the bootloader mode if programming pins are overdriven as outputs by incorrect firmware.
举报

李铭鑫

2019-6-5 09:11:04
您好,不知道i.mx6,但是PICkit 2的完整硬件、固件和软件是由Microchip发布的。PICkit 2本质上是一个PIC18F编程的任何其他PIC处理器。而且PICkit 3的相同代码的移植也是可用的。源包应该在下载存档的某个地方还有编译器和其他工具的背面问题:http://www..hip.com/mplab/compilers每个PIC设备的编程规范可与来自产品网页的每个PIC设备类型的数据表一起获得,正如您已经发现的。

以上来自于百度翻译


      以下为原文

    Hi,
Don't know about i.mx6, but complete hardware, firmware and  software for PICkit 2  is published by Microchip.
PICkit 2 is essentially a PIC18F programming any other PIC processor.
Also the porting of the same codes for PICkit 3 is available.
Source package should be somewhere in Downloads Archive together with back issues of compilers and other tools:
http://www.microchip.com/mplab/compilers
 
Programming specification for each PIC device is available together with datasheet from product webpage for each PIC device type, as you have found already.
 
Regards,
   Mysil
举报

更多回帖

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