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.

CCS/TMS320F28335: Implementation of LFSR using arrays

Part Number: TMS320F28335


Tool/software: Code Composer Studio

Hi,

I am trying to implement a 6 bit linear feedback shift register using CCSv7,

Since i am a beginner in CCS  and embedded C coding,I tried implementing by typedef definitions,but it failed.

So,i would like to know how to implement a 6 bit LFSR using array in CCS.

Thanking You,

Divya

  • Hi Divya,

    The wikipedia page actually has C code for this (albeit not using an array, which seems unnecessary):
    en.wikipedia.org/.../Linear-feedback_shift_register

    I have run this code more-or-less as-is on a C28x target and it works fine.
  • The code provided in wikipedia is getting built successfully,but when it comes to debug session..it shows Error

    Following are the errors :

    C28xx: GEL: Error while executing OnTargetConnect(): Cannot read register ST1: data is not present
    at (ST1&~(0x0100)) [f28335.gel:322]
    at C28x_Mode() [f28335.gel:82]
    at OnTargetConnect()
    Failed CPU Reset: This operation is not supported by this driver
    C28xx: GEL: Error while executing OnReset(1): Cannot read register ST1: data is not present
    at (ST1&~(0x0100)) [f28335.gel:322]
    at C28x_Mode() [f28335.gel:38]
    at OnReset(1)
    C28xx: Trouble Writing Memory Block at 0x9000 on Page 0 of Length 0x11c: This operation is not supported by this driver
    C28xx: File Loader: Verification failed: Target failed to write 0x09000@Program
    C28xx: GEL: File: C:\Users\BCG\Desktop\Divya\FM modulation\MaximalLFSR\Debug\MaximalLFSR.out: Load failed.
  • Hi Devin,

    I referred to the code given in the above link,but i could not quite follow the code.

    It would be of great help if you could explain how they are ex-oring the required tap in the above link.

    Regards,

    Divya