Microchip
直播中

贾利利

8年用户 163经验值
私信 关注
[问答]

如何控制编译器将驱动程序初始化数据的源代码集成到system_init.c文件中?

HALO,我使用PIC32 MZ启动套件和扩展板和V1Y08版本的和声。我已经通过SPI为PIC32 MZ2048 EC144建立了一个FRAM存储器。该FRAM存储器类似于微芯片SST25VF020B闪存。它在CMD SPI协议帧和存储器几何上只存在差异。我已经修改了SST25VF020B驱动程序Outlook文件夹。它仍然工作得很好,但是让我不安的是,FRAM驱动程序仍然与sst25vf020b同名。当在HARMony中建立一个新的自己编写的驱动程序时,如何控制编译器将驱动程序初始化数据的源代码集成到system_init.c文件中?在修改SDCard驱动程序以选择诸如PORT_CHANNEL_B之类的芯片选择端口的另一种情况下,和谐配置器的代码生成器希望删除关于该端口B的端口系统服务配置。如何防止和谐代码配置器删除我的源代码中的重要设置?谢谢你的帮助。

以上来自于百度翻译


      以下为原文

    Hallo,

I am using PIC32MZ starter kit and extension board and v1_08 Version of Harmony.
I had set up a FRAM-Memory to PIC32MZ2048ECH144 via SPI. This FRAM memory is similar to Microchip sst25vf020b flash memory. It has only differences in cmd spi protocoll frame and memory geometry.
I had modify the sst25vf020b driver out harmony folder. It still works well but disturb me the FRAM driver still the same name as sst25vf020b.
When a establish a new own written driver in Harmony how can I controll the compiler to integrate sourcecode of driver initialization data into system_init.c file?
In another case of modify the SDCard driver to select chip select port like PORT_CHANNEL_B the code generator of Harmony Configurator want remove the ports system service configuration about this Port B.   
Although I selected PORT_CHANNEL_B in Harmony configurator options. How can I prevent the harmony code configurator to remove important setting in my sourcecode?
Thanks for help.

Best Regards

回帖(1)

李波波

2019-6-27 11:29:18
嗨,你还在寻找问题的答案吗?

以上来自于百度翻译


      以下为原文

    Hi,
 
are you still looking for answers for the questions?
举报

更多回帖

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