Loading ...
Sorry, an error occurred while loading the content.

TMS470 + external flash or RAM IAR Compiler

Expand Messages
  • mille78666
    How can I use the external bus with the CS Signals in the IAR Compiler? #pragma location=0x00300000 __no_init int CS1_area; /* CS1_area is located at address
    Message 1 of 1 , Aug 10 5:54 AM
    • 0 Attachment
      How can I use the external bus with the CS Signals in the IAR Compiler?


      #pragma location=0x00300000
      __no_init int CS1_area; /* CS1_area is located at address 0x00300000 */

      initialising:

      MCBAHR2 = 0x0030; //EBM RAM base addr at 0x00300000
      MCBALR2 = 0x00A0; //Size of 512k
      MFBALR0 = 0x0100; //Enable the memory map
      SMCR5 = 0x35; //16-bit data width/External/Big Endian/3 wait states

      EBDMACR = 0x01;
      EBRWCR = 0x8F;
      EBACR1 = 0x3F;
      EBDCR = 0xFF;
      EBADCR = 0xFF;
      EBACR2 = 0xFF;
      EBACR3 = 0x1F;
      EBMCR1 = 0x02;

      adress 0 write:
      CS1_area = 0x88;

      eg write:

      print(CS1_area);
    Your message has been successfully submitted and would be delivered to recipients shortly.