完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
我想代替PSoC Creator Keil编译安全形象工程。我跟着出口keil工程常规指令改变了编译后的批处理文件签署的图像而导致图像不运行应用程序。有指示,在keil制作安全项目?我只想在keil编译用户程序。安全的图像可以编译PSoC Creator如果是很容易做到的。
以上来自于百度翻译 以下为原文 I want to compile the secure image project in Keil instead of PSoC Creator. I followed the regular instructions for exporting a Keil project and changed the post compile batch files to sign the images but the resulting image does not run the app. Are there instructions for making a secure project in Keil? I only want to compile the user app in Keil. The secure image can be compiled in PSoC Creator if it is easier to do. |
|
相关推荐
4个回答
|
|
你能详细说明你看到的错误,以便我帮助调试你的问题吗?
当做, 德黑拉杰 以上来自于百度翻译 以下为原文 Can you elaborate more on what error you are seeing so that I help debug your issue? Regards, Dheeraj |
|
|
|
CM0 / CM4用户程序不运行我的PSoC程序员程序后的图像。我删除了所有的闪光/加密测试,只是把LED闪烁。创造形象,我合并CM0 CM4用户的应用程序,它用私钥签名,然后它合并安全图像精灵编译PSoC Creator。我更换CM0 / CM4程序与PSoC Creator编译的应用程序和它的作品,所以我不认为这是我的脚本化问题。我认为KEIL项目有点不对劲。我用scatter文件psoc6_user_app0_cm0plus.scat和psoc6_user_app0_cm4.scat我添加的输出符号,从安全形象: 导出NVMUX2IrqHunter-[代码] NVMUX2IRIQHANDER 导出HurrFultTyHuffer-[代码] HydFruttHuffer-Auto0x100900595 出口nvicmux0_irqhandler [代码] nvicmux0_irqhandler EQU 0x10000c19 导出Svcl处理程序[代码] SVCH处理程序 出口CysisisiGETVIEX[代码] cy_si_getversion EQU 0x10000831 出口nvicmux31_irqhandler [代码] nvicmux31_irqhandler EQU 0x1000097d 出口cy_si_getsecurekeyaddr [代码] cy_si_getsecurekeyaddr EQU 0x1000080d 结束 需要配置Keil工程什么是我? 以上来自于百度翻译 以下为原文 The CM0/CM4 user app does not run after I program the image with PSoC Programmer. I removed all the flash/crypto tests and just kept the LED flashing. To create the image, I merged the CM0 and CM4 user apps, signed it with the private key, then merged it with the secure image elf compiled with PSoC Creator. I replaced the CM0/CM4 apps with the PSoC Creator compiled apps and it works so I don't think it is a problem with my script changes. I think it is something wrong with the Keil projects. I used the scatter files psoc6_user_app0_cm0plus.scat and psoc6_user_app0_cm4.scat and I added the exported symbols from the secure image: EXPORT NvicMux2_IRQHandler [CODE] NvicMux2_IRQHandler EQU 0x10001371 EXPORT HardFault_Handler [CODE] HardFault_Handler EQU 0x10000595 EXPORT NvicMux0_IRQHandler [CODE] NvicMux0_IRQHandler EQU 0x10000c19 EXPORT SVC_Handler [CODE] SVC_Handler EQU 0x10000591 EXPORT Cy_SI_GetVersion [CODE] Cy_SI_GetVersion EQU 0x10000831 EXPORT NvicMux31_IRQHandler [CODE] NvicMux31_IRQHandler EQU 0x1000097d EXPORT Cy_SI_GetSecureKeyAddr [CODE] Cy_SI_GetSecureKeyAddr EQU 0x1000080d END What else do I need to do to configure the Keil project? |
|
|
|
dfgsgdg 发表于 2018-8-20 06:44 你可以查看生成的ELF文件(readelf、objdump)看看你的数字签名的存在吗?编程用户APP0后,回到PSoC Creator和附加调试器CM0 +安全的图像和检查它是否已经通过验证。如果没有,它会被卡在错误处理程序中。否则,您可以返回到DK并从那里调试。 当做, Dheeraj 以上来自于百度翻译 以下为原文 Can you look at the generated elf files (readelf, objdump) to see if your digital signature exists? After programming the user app0, go back to PSoC Creator and attach debugger to the CM0+ secure image and check if it has passed validation. If it hasn't it will be stuck in the error handler. Otherwise you can go back to MDK and debug from there. Regards, Dheeraj |
|
|
|
twtetrwerw 发表于 2018-8-20 06:53 验证通过。CM0和CM4用户应用程序都在CythFLASH sEndocD.()中被困在这个循环中: 虽然(0U)!=αFLD2VAL(IPCKStUpTrimeAccess成功,IPCBASE-GT;LoClOnStand) { / *投票是否IPC被释放,Flash操作执行*/ } 在用户应用程序的第一个测试案例的原因,这个函数被调用。 SnSt= Cyflash FraseWrrReWOW(TestIa FLASROWORD ADDR,OUTPTR); 我使用相同的用户程序代码在Keil在PSoC Creator。我建立的安全形象的创造者和用keil用户应用程序合并。 以上来自于百度翻译 以下为原文 The validation passed. The CM0 and CM4 user apps both get stuck in this loop in Cy_Flash_SendCmd(): while (0u != _FLD2VAL(IPC_STRUCT_ACQUIRE_SUCCESS, ipcBase->LOCK_STATUS)) { /* Polls whether the IPC is released and the Flash operation is performed */ } The first test case in the user app causes this function to be called. sStatus = Cy_Flash_WriteRow(TEST_FLASHROW_ADDR, outPtr); I am using the same user app code in Keil as in PSoC Creator. I built the secure image in Creator and merged with the Keil user apps. |
|
|
|
只有小组成员才能发言,加入小组>>
726个成员聚集在这个小组
加入小组1938 浏览 1 评论
1685 浏览 1 评论
3449 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1608 浏览 6 评论
1406 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-6-26 16:06 , Processed in 0.715414 second(s), Total 54, Slave 47 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号