Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: RX63N bring up code

$
0
0
What if you just create a C project with your compiler and have a look which files the project generator adds to your project? All start-up codes initialise stack pointers, initialise global variables, have a function to jump to a hardware set-up routine and jump to main. If you use the Renesas CC-RX compiler the start-up code is in resetprg.c . The functions for hardware initialisation are placed in hardware_setup.c. If you use GNURX the start-up code is assembler code in reset_program.asm, and it also has a hardware_setup.c. If you use IAR EWRX the start-up code is hidden in a library. If you are interested in the code you find a file cstartup.s in the IAR installation directory. For hardware set-up you can add a function __low_level_init() to your application. This will be callsed from the start-up code before jumping to main(). The start address for code is written to the reset vector. The address 0xFFF00000 is the start address for on-chip flash memory if you have a 1MB version of RX63N.

Viewing all articles
Browse latest Browse all 59170

Latest Images

Trending Articles



Latest Images