This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Demo application TMS470

Hi,

I found some demo applications on the website of TI, but it seems that those aren't working in Keil uVision, or with the headerfile I can download from the Keil site located here: http://www.keil.com/dd/chip/4070.htm

I was wondering if I can find somewhere any demo codes, like GPIO, CAN and SPI for this microcontroller using Keil uVision. Does anyone here has some demo code/examples available?

Thanks a lot.

Parents
  • Yes the error is coming from a #error handler. Here it is

    #if (((__TID__ >> 8) & 0x7F) != 0x4F) /* 0x4F = 79 dec */
    #error This file should only be compiled by ARM IAR compiler and assembler
    #endif

    but when I comment this code and try to compile it in Keil uVision I get the error message something like "The instruction at 0x00752533 is refering to memory address 0x00000030. The read-adaption on the memory has failed" something like that.. I get these message in dutch so maybe it's a bit different in english :) It's about this line in the header file iotms470r1a256.h

    /* ** ** System module control (SMC) **
    */

    __IO_REG32_BIT(SMCR0, 0xfffffd00,__READ_WRITE,__smcr0_bits);

    so I guess if I want to use these code examples I have to go with IAR like you said Neil.

    I saw the Blinky example in Keil\ARM\Boards\TI\ folder and I can compile that one but I am more looking for code examples of SPI and CAN. But maybe I can figure it out with the user manuael and the header file in the Blinky example. I guess there are no examples of these peripherals somewhere, working with uVision?

    Well thanks already.

Reply
  • Yes the error is coming from a #error handler. Here it is

    #if (((__TID__ >> 8) & 0x7F) != 0x4F) /* 0x4F = 79 dec */
    #error This file should only be compiled by ARM IAR compiler and assembler
    #endif

    but when I comment this code and try to compile it in Keil uVision I get the error message something like "The instruction at 0x00752533 is refering to memory address 0x00000030. The read-adaption on the memory has failed" something like that.. I get these message in dutch so maybe it's a bit different in english :) It's about this line in the header file iotms470r1a256.h

    /* ** ** System module control (SMC) **
    */

    __IO_REG32_BIT(SMCR0, 0xfffffd00,__READ_WRITE,__smcr0_bits);

    so I guess if I want to use these code examples I have to go with IAR like you said Neil.

    I saw the Blinky example in Keil\ARM\Boards\TI\ folder and I can compile that one but I am more looking for code examples of SPI and CAN. But maybe I can figure it out with the user manuael and the header file in the Blinky example. I guess there are no examples of these peripherals somewhere, working with uVision?

    Well thanks already.

Children
No data