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.

bin file for burning NOR flash - C5504

does someone know how to extend the bin\out file I'm burning into flash?

I was trying to add data (const array) to my program in order to extend the out file but it doesn't work even though I'm working with no optomization ...which is very wired.

BR

Talmor

 

  • hi,

    You can do like the below:

    1. Add data section in your c code.

     #pragma DATA_SECTION(yourdata, ".constdata")

    Uint16 yourdata[256*3];

     

    2. Add data in your linker file.

     

    MEMORY

    {

        MMR     (RW) : origin = 0000000h length = 0000C0h /* MMRs */

        VEC     (RX) : origin = 00000C0h length = 000300h /* on-chip ROM vectors */

        DARAM_0 (RW) : origin = 00003C0h length = 005C40h /* on-chip DARAM 0 */

        DARAM_1 (RW) : origin = 0006000h length = 002000h /* on-chip DARAM 1 */

        SARAM_0 (RW) : origin = 0010000h length = 020000h /* on-chip SARAM 0 */

        SARAM_1 (RW) : origin = 0030000h length = 010000h /* on-chip SARAM 1 */ 

        SARAM_2  (RW) : origin = 0040000h , length = 010000h /* on-chip SARAM 1 */

    }

     

    SECTIONS

    {

      vectors    : > VEC ALIGN = 256

      .text      : > SARAM_1 

      .data      : > SARAM_1  

      .cinit     : > SARAM_0 

      .switch    : > SARAM_0

      .stack     : > SARAM_0 

      .sysstack  : > SARAM_0 

      .bss       : > SARAM_0

      .const     : > SARAM_1

      .sysmem    : > SARAM_0 

      .cio     : > DARAM_0

      .buffer1   : > DARAM_1

      .buffer2   : > SARAM_1

      .constdata: > SARAM_2  

     

     

    Regards,

    Hyun