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.

IAR5.3 导入driverlib,提示找不到外设的基地址,有人遇到过?

Other Parts Discussed in Thread: MSP430F5438A

MSP430F5438A导入driverlib后,提示找不到基地址,什么问题?有人遇到过吗? 附件是工程代码,最简单的示例,我直接用driverlib里面的示例也是一样

BootLoader-lmj.rar
  • 自己在头文件里面对这些基地址重新定义,现在没问题了!

    /************************************************************
    * BASE ADDRs
    ************************************************************/
    #define DMA_BASE (0x0500u)
    #define FLASH_BASE (0x0140u)
    #define MPY32_BASE (0x04C0u)
    #define PMM_BASE (0x0120u)
    #define RAM_BASE (0x0158u)
    #define SFR_BASE (0x01B0u)
    #define SYS_BASE (0x0180u)
    #define UCS_BASE (0x0160u)

  • 有的时候代码的版本和头文件的版本不一样是会有问题的。我现在的做法是都用最新的。要么就像你一样手动改了。