This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好、
我的客户使用以下代码读取 RAM 0x002C 处的 RESC:
#define BOOTSTATUS 0x0000002C Uint16 *pusCPU01BufferPt; //发送内容指针 Uint32 *BOOTSTAT; BOOTSTAT = (Uint32 *)BOOTSTATUS; pusCPU01BufferPt[15] = ((*BOOTSTAT)>>16); //高位 pusCPU01BufferPt[16] = *BOOTSTAT;
这些代码是否能够正确读取引导 ROM 存储的复位源?
谢谢、此致、
耶鲁李
耶鲁大学
问题不清楚。 它是否与在偏移80h 处读取复位原因寄存器有关? 确认后、S/W 专家将为您提供帮助。
您好、Haresh、
[引用 userid="10172" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1175797/tms320f28377d-is-these-code-right-for-reading-resc-at-ram-0x002c/4426312 #4426312"]是否与在偏移量80h 处读取复位原因寄存器有关?是的、但是该寄存器不能直接读取、因为复位后引导 ROM 会将其清零。
谢谢、此致、
耶鲁李
直到第7行,它还不错,我不明白为什么要存储在索引为15和16的数组中。
您可以存储在变量中以检查是否能够正确获取状态信息。
然后、您可以存储在指针/数组中。