完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,所有,在我工作的产品在过去,我们已经使用的微型计算机,可以复制代码到RAM在运行时,然后自我编程的设备与S记录通过串口发送。一般来说,这段代码是自给自足的,所以要处理中断和变量,因为它之前的代码被用字段更新覆盖了吗?在DSPIC30F(6010A)中,我正在使用最新的项目,以同样的方式工作是好的,我知道有Bootloader路由,但是如果我们这样做的话,引导加载程序代码不会得到字段更新。我的想法是像往常一样进入“后门”模式,将代码复制到程序内存的未使用区域,然后从那里工作?这在DSIC30F上可行吗?一个明显的问题是,我能把代码移到RAM并像我们在其他产品上那样运行它(基于飞思卡尔HSC12S)吗?顺便说一下,这将被编译在MPLAB X 4.10和XC161.3所有欢呼!
以上来自于百度翻译 以下为原文 Hi All, In products I have worked on in the past we have used micros that can copy code to RAM during runtime then self program the device with S records sent via serial port. Generally this code would be self reliant so handle interrupts and variables intentionally since the code that ran before it is being overwritten with a field update? In the dsPIC30F (6010A) I am using on the latest project it would be good to work the same way, I know there is the bootloader route but the bootloader code wouldn't get field updates if we do it this way? My thought was to enter the "backdoor" mode as usual and copy the code to an unused area of program memory then work from there? would this be feasible on the dsPIC30F? And an obvious question is can I move code to RAM and run it like we do on our other products (based on Freescale HSC12s)? Btw, this will be compiled in MPLAB X 4.10 and XC16 1.33. Cheers all! |
|
相关推荐
1个回答
|
|
只是为了添加一些信息,以下是我通常在飞思卡尔的设置:我不太清楚我需要做什么在dSPIC30F上,但是基于我读到的,我不能在RAM中执行代码,但是希望我能在程序内存中定位MyDeRimram [],而不是用ASM做同样的操作(“Go”)。对“霉素”;我会继续挖掘,希望我在正确的轨道上?干杯。
以上来自于百度翻译 以下为原文 Just to add some info to this, the following is what I usually do on the Freescale setup: static char myCodeInRAM[sizeOfCodeInRAM]; void startRAMCode() { doSomeStuffHere(); memmove((const void *)myCodeInRAM, (const void *)codeWhichRunsInRAM, sizeOfCodeInRAM); turnOffInterruptsEtc(); __asm jmp myCodeInRAM; } void codeWhichRunsInRAM() { // do whatever we need to do here for RTSP! } Im not too sure what I need to do on the dsPIC30F but based on what I have read I cant execute code in RAM, but hopefully I can position myCodeInRAM[] in program memory instead on do just the same using asm("GOTO _myCodeInRAM"); ?? I will keep digging, hopefully I am on the right track? Cheers. |
|
|
|
只有小组成员才能发言,加入小组>>
5323 浏览 9 评论
2076 浏览 8 评论
1982 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3254 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2293 浏览 5 评论
835浏览 1评论
732浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
674浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
728浏览 0评论
622浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-3 15:12 , Processed in 1.025017 second(s), Total 75, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号