2011-01-06, 13:59:08
(This post was last modified: 2012-12-22, 13:41:32 by Mikael Gustavsson.)
Hi,
I would like to integrate DS30 with a very simple test application (led blinking) in the some project.
I use mplab/C30 with a dspic33fj256m710.
I have a problem with the the modification the goto to the user data initialisation :
I get with the linker : undefined reference to `_resetPRI'
I try to declare : .extern __resetPRI in ds30loader.s
I try with 1,2 or 3 underscore '_' !
I try with and without include the file crt0.s in the compilation.
If somebody have a idea for me or a exemple ?
thanks for your help
Pierre
Hi,
I maybe find a solution :
If I remove the crt0.s, and replace it by crt0.o -I dont find same version as firmware manual) I find mind in /MPLAB C32 Suite/pic32mx/lib, I don't know if it's the same file.
Now I have no link error.
But my main code (blinking led C application) is place in the flash after the bootloader... ?
I have to use placement code directive in my main.c ???
thanks for your idea
Pierre
I would like to integrate DS30 with a very simple test application (led blinking) in the some project.
I use mplab/C30 with a dspic33fj256m710.
I have a problem with the the modification the goto to the user data initialisation :
Code:
; ---------------------------------
; Start of code section in program memory
; ---------------------------------
.section *, code,address(STARTADDR-4)
usrapp: goto __resetPRI
I get with the linker : undefined reference to `_resetPRI'
I try to declare : .extern __resetPRI in ds30loader.s
I try with 1,2 or 3 underscore '_' !
I try with and without include the file crt0.s in the compilation.
If somebody have a idea for me or a exemple ?
thanks for your help
Pierre
Hi,
I maybe find a solution :
If I remove the crt0.s, and replace it by crt0.o -I dont find same version as firmware manual) I find mind in /MPLAB C32 Suite/pic32mx/lib, I don't know if it's the same file.
Now I have no link error.
But my main code (blinking led C application) is place in the flash after the bootloader... ?
I have to use placement code directive in my main.c ???
thanks for your idea
Pierre