Dec 17, 2014
07:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 17, 2014
07:13 AM
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
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
10 Replies
Not applicable
Dec 17, 2014
10:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 17, 2014
10:04 PM
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
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
Dec 18, 2014
12:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 18, 2014
12:00 AM
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
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
Not applicable
Dec 19, 2014
01:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 19, 2014
01:17 AM
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
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
Attachments are accessible only for community members.
Dec 19, 2014
03:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 19, 2014
03:08 AM
Attachments are accessible only for community members.
Not applicable
Dec 21, 2014
06:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 21, 2014
06:22 PM
Dec 22, 2014
01:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 22, 2014
01:29 AM
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
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
Not applicable
Dec 22, 2014
11:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 22, 2014
11:33 PM
Hi, zbyno,
In the keil uV5, i am using the startup_XMC1100.s v1.2
Best regard
tys
In the keil uV5, i am using the startup_XMC1100.s v1.2
Best regard
tys
Dec 24, 2014
01:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 24, 2014
01:08 AM
Thank you Tys.
I have probed a option: In Keil without checked option .... MicroLIB. in Target wizzard .
It worked too.
marry christmas
zbyno
I have probed a option: In Keil without checked option .... MicroLIB. in Target wizzard .
It worked too.
marry christmas
zbyno
Jan 23, 2015
02:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 23, 2015
02:50 AM
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.
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.
Not applicable
Jan 25, 2015
07:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 25, 2015
07:09 PM
Hi,
DAVE3 does not support XC161CJ-16F. You should discuss your problems in "XE166/XC2000 Forum".
Best regards,
Sophia
DAVE3 does not support XC161CJ-16F. You should discuss your problems in "XE166/XC2000 Forum".
Best regards,
Sophia