Startup code generation using CC for CA,CX(CA78K0R)

 Hi, 

Right now I'm using CA78K0R compiler for RL78/F14 micro.  On creating a project, I'm not able to find start code generated with it.  Kindly help me with this.  Please give me some assistance if I need to write startup code on my own.

 

Thanks for your time in advance.

  • By default startup code is not included as source in a project but comes from a library.
    Please use code generator in CS+ (or Applilet) to generate code for peripheral initialization. It will show how startup code is used.
    If you want have explicit startup code in your project please have a look at the installation directory of CA78K0R (CACX\CA78K0R\V1.72\Src\cc78k0r\src\) and add the correct version to your project.

  • prashanthm22,

    Has your question been answered?

    Mike Clements
    RenesasRulz Moderator
  • In reply to FrankL:

    Hi, while compiling the project, it generates, internal error. "CC78K0R error C0101: Internal error"


    (C) C0101 [ D:\develop\cc78k0r\src\commdll\commonwd.c<667> resident: ptr==0] CC78K0R error C0101: Internal error R5F10BMG_CAN_TX_RX.mtpj

    please help me ...
  • In reply to vijay:

    A compiler internal error is a compiler bug.
    Without you providing
    - a detailed description of all your settings
    - a sample project that can be compiled without any further work and that shows the error
    it is not possible to provide any help.
  • In reply to FrankL:

    I am trying to use GPIO pin P7.3 in my file, but it was generating an error.In CS+ CA,CX IDE. And also i want to,use SPI_write in my files, but it generates an error.
  • In reply to FrankL:

    I am generating SPI write and read functions , from CS+ for CACX, But if want to call them in other user defined files, it was generating , Redefined error.
  • In reply to vijay:

    You probably don't have function prototypes.
    If you have a function you define input parameter and return parameter.
    If a function is called that does not have a function prototype and the function is defined in another file, then the compiler assumes the format to be int function(int);
    Please make sure you have all warning and informational messages switched on. Then you will see the corresponding compiler message.
  • In reply to FrankL:

    I tried every possible way to solve this error.



    (E) E3403 RA78K0R error E3403: Symbol '_R_CSI11_Send_Receive' unmatched type in file 'DefaultBuild\My_data.rel'. First defined in file 'DefaultBuild\r_cg_serial.rel'R.mtpj
  • In reply to FrankL:

    I tried every possible way to solve this error. But it is not solved, same error.

    (E) E3403 RA78K0R error E3403: Symbol '_R_CSI11_Send_Receive' unmatched type in file 'DefaultBuild\My_data.rel'. First defined in file 'DefaultBuild\r_cg_serial.rel'R.mtpj
  • In reply to vijay:

    Please provide a test project showing the problem.
  • In reply to FrankL:

    3312.R.rar

    if im calling R_CSI11_Send_Receive(TX_Buff,Leng_u16,0 ) function in userdefined files. , it was generating re-defination error .

  • In reply to vijay:

    As I said, no function prototype.
    Please add these lines at the BEGINNING of My_data.c (NOT after your own header):
    #include "r_cg_macrodriver.h"
    #include "r_cg_serial.h"
  • In reply to vijay:

    vijay,

    Has your issue been resolved?

    Mike Clements
    RenesasRulz Moderator