Dave with Keil uVision5

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User9154
Level 4
Level 4
Hi,
I have used export into Keil uV5 via AppNote_Keil263 page 33:
via file Blinky.gpdsc than was a project in uVision generated, In tree was a file XMC1200.s from Dave.
but this generated an error by compiling in Keil.

I have changed in this file lines from position line 371 with text:

;* ============= END OF INTERRUPT HANDLER DEFINITION ======================== */

;* Definition of the default weak SystemInit_DAVE3 function.
;* This function will be called by the CMSIS SystemInit function.
;* If DAVE3 requires an extended SystemInit it will create its own SystemInit_DAVE3
;* which will overule this weak definition
SystemInit_DAVE3 PROC
EXPORT SystemInit_DAVE3 [WEAK]
NOP
BX LR
ENDP

;* Definition of the default weak DAVE3 function for clock App usage.
;* AllowClkInitByStartup Handler */
AllowClkInitByStartup PROC
EXPORT AllowClkInitByStartup [WEAK]
MOVS R0,#1
BX LR
ENDP


;*******************************************************************************
; User Stack and Heap initialization
;*******************************************************************************
IF EF:__MICROLIB

EXPORT __initial_sp
EXPORT __heap_base
EXPORT __heap_limit

ELSE

IMPORT __use_two_region_memory
EXPORT __user_initial_stackheap

__user_initial_stackheap

LDR R0, = Heap_Mem
LDR R1, =(Stack_Mem + Stack_Size)
LDR R2, = (Heap_Mem + Heap_Size)
LDR R3, = Stack_Mem
BX LR

ALIGN

ENDIF


;* ================== START OF INTERRUPT HANDLER VENEERS ==================== */


And it was all ok after this change - no errors by compile in Keil

Should I use other maner of solution?

zbyno
0 Likes
10 Replies
Not applicable
Hi, zbyno,
Regarding the procedure for importing DAVE project to Keil uV5, please refers to Keil App Note 258. I follow the procedure as described in AppNote 258 and it is compiling without error in Keil uV5. Maybe you could try to import another DAVE XMC1200 example into Keil uV5 and check whether it will generate the same compilation error in uV5. By the way, what is the version number of the startup_XMC1200.s file that you have in the DAVE project?
Best regard
tys
0 Likes
User9154
Level 4
Level 4
Hi Tys,
1 I have read Keil appNotes 258, 260, 263, but I didnt find there info for syntax of startup_XMC1200.s file
2. I have checked import another DAVE XMC1200 example into Keil uV5 without success / I got the same error
3. header of startup_XMC1200.s file :


;************************** Version History ************************************
; V1.0, Jan, 21, 2013 TYS:Startup file for XMC1
; V1.1, Jul, 17, 2013 TYS:remove redundant vector table
; V1.2, Nov, 25, 2014 JFT:Removed DAVE3 dependency.
; Default handler used for all IRQs
;*******************************************************************************

best regards
zbyno
0 Likes
Not applicable
Hi, zbyno,
I do not face the compilation issue when import Dave project to Keil. Could you attached your Dave project zip file, so that I could test it at my side.
Best regard
tys
0 Likes
lock attach
Attachments are accessible only for community members.
User9154
Level 4
Level 4
Hi Tys
see, please, attachment
have a nice day
zbyno
0 Likes
lock attach
Attachments are accessible only for community members.
Not applicable
Hi, zbyno,
After importing your attached dave project to Keil uV5, it is able to compile without error. Attached is the compile Keil uV5 project, please check if you could compile at your side with Keil.
Best regard
tys
0 Likes
User9154
Level 4
Level 4
Hi Tys
Thank you.
It is in your attached project the other (like old form / from Dave generated file startup_XMC1200.s)
see text from line 219:
ALIGN


; User Initial Stack & Heap

IF :DEF:__MICROLIB


I got after Compilation in uVis5:

RTE\Device\XMC1200-T038x0200\startup_XMC1200.s(226): error: A1163E: Unknown opcode __initial_sp , expecting opcode or Macro
RTE\Device\XMC1200-T038x0200\startup_XMC1200.s(227): error: A1163E: Unknown opcode __heap_base , expecting opcode or Macro
RTE\Device\XMC1200-T038x0200\startup_XMC1200.s(228): error: A1163E: Unknown opcode __heap_limit , expecting opcode or Macro
compiling system_XMC1200.c...
".\UVBuild\PWM_Blinky.axf" - 3 Error(s), 13 Warning(s).
Target not created.
_______________________________________________________________________________________________________
There fails the section from my file: //start from line 219 too

ALIGN

;* ============= END OF INTERRUPT HANDLER DEFINITION ======================== */

;* Definition of the default weak SystemInit_DAVE3 function.
;* This function will be called by the CMSIS SystemInit function.
;* If DAVE3 requires an extended SystemInit it will create its own SystemInit_DAVE3
;* which will overule this weak definition
SystemInit_DAVE3 PROC
EXPORT SystemInit_DAVE3 [WEAK]
NOP
BX LR
ENDP

;* Definition of the default weak DAVE3 function for clock App usage.
;* AllowClkInitByStartup Handler */
AllowClkInitByStartup PROC
EXPORT AllowClkInitByStartup [WEAK]
MOVS R0,#1
BX LR
ENDP


;*******************************************************************************
; User Stack and Heap initialization
;*******************************************************************************
IF :DEF:__MICROLIB

__________________________________________
have a nice day
zbyno
0 Likes
Not applicable
Hi, zbyno,

In the keil uV5, i am using the startup_XMC1100.s v1.2
1056.attach

Best regard
tys
0 Likes
User9154
Level 4
Level 4
Thank you Tys.
I have probed a option: In Keil without checked option .... MicroLIB. in Target wizzard .
It worked too.
marry christmas
zbyno
0 Likes
User9698
Level 3
Level 3
hi,
I started working with the "XC161CJ-16F" in Keil C166 v7.54.0.
I started simple example of Keil.
when i compile code, Keil show this error:
Error: *** Device is not supported by Toolchain ! ***
the Keil C166 need special setting! or must use different compiler?
I Update Device database, but not solve.!
can any help?thanks.
best regards.
1121.attach
0 Likes
Not applicable
Hi,

DAVE3 does not support XC161CJ-16F. You should discuss your problems in "XE166/XC2000 Forum".

Best regards,
Sophia
0 Likes