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.

AM3352 Embedded C

Other Parts Discussed in Thread: AM3352

Hi,

I would like to run Embedded C on AM3352, what are some compilers I could use that are small in size. I am planning on not having external memory and deciding to just use the on-chip memory that is provided by the chip. So I need the compiler to be small. Also, how can you split the on-chip memory such that certain blocks of it is used for the C program and certain blocks are used to store data from sensors? 

Thanks

  • Kartheek Gajjala said:
    So I need the compiler to be small.

    When using only on chip memory, the issue isn't really the compiler being "small", rather the issue is how much run time library code needs to be linked in. The TI ARM compiler can generated an empty main "bare-metal" program for the Cortex-A8 in the AM3352 which only takes 3436 bytes. i.e. fits easily in the 64K L3OCMC0 on-chip memory but doesn't perform anything useful.

    Another example is a DDR memory test program which used 44Kbyte of the L3OCMC0 on-chip memory, and made use of the StarterWare functions for UART I/O, RTC and enabling of the cache and MMU.

    So, yes it is possible to make a program run only in on chip memory with the TI ARM compiler, but you need an estimate of the complexity of the program and the number of peripherals required.

    TI-RTOS may also be smaller enough to fit in the AM3352 on-chip memory, but haven't tried that.