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.

how to make a quick program on RM48L952

Other Parts Discussed in Thread: HALCOGEN

Hi, I'd like to create a quick test code that can run on HDK (not USB).

I am using CCS 5.5.

I could run the demo Blinking LED but this is just toggling registers. 

I got FreeRTOS but it hangs while launching any tasks.

Is there any quick way to evaluate this?

I need to enable FPU to see how fast floating point computation compare to the old hardware.

I also need to create a big memory for the test data ( about 3 - 4 mb). 

Any suggestions are welcome and will be appreciated!!!

Thanks~

-Young

  • Hi,

    - open halcogen and create a new project for you platform. Now you can perform some pltform settings but for test porpouse you can simply enable SCI2 driver and disable all the rest. SCI will be used to have some debugging console messages.

    - generate code (F5) and save

    - open CCSv5 and create a new project for your platform with the same name and path of your halcogen project. Select empty project (no mail)

    - add the halcogen include directory to the include paths of CSS project (project/properties/include options)

    - now you should be able to compile the code

    - press "debug" (this will transfer the code to your device)

    - you can add code to your project starting editing the main function inside the sys_main.c file

    - to have some debug console message you can add a function like this:

    void sciDisplayText(sciBASE_t *sci, char *text,uint32 length)
    {
        while(length--)
        {
            while ((scilinREG->FLR & 0x4) == 4); // wait until busy
            sciSendByte(scilinREG,*text++);      // send out text
        };
    }

    Note that befor calling the function your code must call "sciInit()" to initialize the SCI.

    The debug will be visible in a serial console (CSS has one in view->other->terminal)

    Hope this helps,

    Matteo

  • Thanks for your suggestion!

    -Young

  • Note that in HalCoGen->help->help topics->Examples there are some step-by-step intructions.