当前位置:网站首页>New engineering configuration method of Renesas + for CC:

New engineering configuration method of Renesas + for CC:

2022-04-23 22:08:00 InfoQ

In the last post , We talked about Reza
IDE:CS+ for CC download 、 Installation and basic use
, After creating a new project and generating the sample code , Edit project , Error message , As shown below :
null
The main reason is that the new project needs to be configured before it can be compiled and run normally .

1、 To configure boot.asm file

Visible in the project bar boot.asm file , As shown below :
null
The first 1 Step : Get rid of  USE_TABLE_REFERENCE_METHOD .set 1  Previous “ ;”, Make the project support interrupt function , As shown below :
null
The first 2 Step : Configure interrupt vector , take .section "RESET", text and  .section "EIINTTBL", const  The interrupt that needs to be used opens , Add interrupt callback function , Unused interrupts default to #_Dummy_EI, In the project, all interrupt vectors are set to no use state by default , As shown below :
null
for example , Generated in the last blog post UART0 Sample code , At this time, the interrupt cannot be triggered normally , You need to open the corresponding interrupt vector .
null
With  r_uart0_interrupt_receive,UART0 Take the interrupt receiving callback function as an example ,channel=35, You need to add an interrupt callback function to the same interrupt vector , stay .section "EIINTTBL", const Add after , That is, the callback function name ( Be careful : The callback function name should be preceded by _), Replace as Dummy_EI, As shown below :
null
The first 3 Step : To configure RAM Area , According to the data book and requirements, the LOCAL_RAM_ADDR And LOCAL_RAM_END Configure related values , As shown below :
null

​2、 To configure cstart.asm file

Configure heap STACKSIZE, The default value is 0x200, It can be modified as needed , As shown below :
null

​3、 prohibit  r_cg_main.c、r_cg_intvector.c Files participate in compilation

On the left side of the project Project Tree in , choice :
File→Code Generator→r_cg_main.c and r_cg_intvector.c
, Right click on the file , choice Property, Set up Set as build-target  by NO, As shown below :
null

​4、 To configure Debug Tool

On the left side of the project Project Tree in , find Debug Tool, Right click selection :Using Debug Tool, Choose your own burning tool ( What I'm using here is RH850 E1(LPD)), As shown below :
null
choice :
Property→Connect Settings
, Set the burning configuration ( Combine your own burning tools ), As shown below :
null
​ choice :Debug Tool Settings, The settings are as follows :
null
​ thus , The new project configuration is completed , Don't forget to save the project configuration , You can compile and run .

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/113/202204232207172757.html