Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
integration in user application problem [solved]
#1
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 :
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
Reply


Messages In This Thread
integration in user application problem [solved] - by Pierre - 2011-01-06, 13:59:08
RE: integration in user application problem - by fredz101 - 2011-02-14, 22:06:50

Forum Jump:


Users browsing this thread: 1 Guest(s)