• AVR Freaks

Helpful ReplyHot!XC32 compiler error - trying to merge bootloder and app projects - No rule to make target

Author
seccoxiru
Junior Member
  • Total Posts : 102
  • Reward points : 0
  • Joined: 2011/10/27 13:42:59
  • Location: 0
  • Status: offline
2019/06/05 14:04:46 (permalink)
0

XC32 compiler error - trying to merge bootloder and app projects - No rule to make target

Hi.
I'm using MPLAB X v5.15 and XC32 v1.43.
I have two MPLAB X projects, a AN1388 based bootloader and my application.
 
The bootloader project uses UART transport layer and was modified to use HC-05 or HM-10 bluetooth modules. I'm using my own linker script with it and it does compile and works. My application does have its own linker script too and also compiles.
I'm able to program the bootloader with pickit4 and then use the pc application of AN1388 to transfer the app to the pic, and after I issue a "jump to app" on the pc application, the app firmware runs correctly. 
Then I tried to add the bootloader project as a loadable project to the application, and some compile errors that I don't know what is is being shown on screen. I'll post the complete output log here. The project is on its final stage and this is occuring when I try to merge them. [EDIT] There was problems to post with the complete log, so it is attached as txt file
 
What this could be?
Regards in advance.
 
 
 
 
 
post edited by seccoxiru - 2019/06/05 14:06:19

Attached Image(s)

#1
bastl
Starting Member
  • Total Posts : 43
  • Reward points : 0
  • Joined: 2018/12/27 07:25:34
  • Location: 0
  • Status: offline
Re: XC32 compiler error - trying to merge bootloder and app projects - No rule to make tar 2019/06/06 11:36:06 (permalink)
0
Hello.
"No rule to make target '../../../Bootloader Receptor/Bootloder "
Means that there is no make file to make this.
Simple create a make file for this Bootloader.
#2
friesen
Super Member
  • Total Posts : 2081
  • Reward points : 0
  • Joined: 2008/05/08 05:23:35
  • Location: Indiana, USA
  • Status: offline
Re: XC32 compiler error - trying to merge bootloder and app projects - No rule to make tar 2019/06/06 16:06:08 (permalink)
0
Sometimes mplabx gets out of sync somewhere with the makefiles.  If this is the case you have to force it to re generate a makefile by changing something in the project/compiler somewhere.  At times I have had to use version control to get things working again.

Erik Friesen
#3
seccoxiru
Junior Member
  • Total Posts : 102
  • Reward points : 0
  • Joined: 2011/10/27 13:42:59
  • Location: 0
  • Status: offline
Re: XC32 compiler error - trying to merge bootloder and app projects - No rule to make tar 2019/06/07 07:18:26 (permalink)
0
The problem persists, I already added other files to the bootloader project, and changing the compiler settings does not solve.
 
I've put the bat from mplab x folder to the .X folder of the bootloader project, edited this line:
SET mplabx_dir=%here%..\
putting the mplab x folder on 'here'. maybe this is not correct and i need to do something different. How do I create a new makefile using this bat actually? What should I do to have sure that the process worked?
 
And it seems that inside the bootloader .X folder, inside of nbproject folder, the makefile files are getting updated on each compilation. Is this correct?
 
Sorry, but I'm new to this things
 
Regards
post edited by seccoxiru - 2019/06/07 07:25:38
#4
seccoxiru
Junior Member
  • Total Posts : 102
  • Reward points : 0
  • Joined: 2011/10/27 13:42:59
  • Location: 0
  • Status: offline
Re: XC32 compiler error - trying to merge bootloder and app projects - No rule to make tar 2019/06/11 06:05:12 (permalink)
0
Hi.
Somebody could explain how to generate new makefile for mplab x projects? prjMakefilesGenerator
 
Regards.
post edited by seccoxiru - 2019/06/11 06:55:35
#5
friesen
Super Member
  • Total Posts : 2081
  • Reward points : 0
  • Joined: 2008/05/08 05:23:35
  • Location: Indiana, USA
  • Status: offline
Re: XC32 compiler error - trying to merge bootloder and app projects - No rule to make tar 2019/06/11 10:14:01 (permalink) ☄ Helpfulby seccoxiru 2019/06/18 06:35:45
5 (2)
While you wait for more experienced help, my suggestion is to make sure the mplab directory is in version control, and start by experimental erasing of the makefile, and perhaps more as needed until your project flies. It may not be the makefile, but a semi corrupted mplabx project. Of course you'll need to attempt to compile to build a new makefile after deletion.
post edited by friesen - 2019/06/11 10:15:26

Erik Friesen
#6
Jim Nickerson
User 452
  • Total Posts : 6259
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: XC32 compiler error - trying to merge bootloder and app projects - No rule to make tar 2019/06/11 10:33:40 (permalink) ☄ Helpfulby seccoxiru 2019/06/18 06:35:50
0
I have used loadable projects with my bootloader.
I have never had to mess with the makefiles.
I would suggest creating a new bootloader project, that runs.
Create a new application project that runs.
Add the application project as a loadable to the bootloader project.
Please do try to put all your project files in directory paths without spaces.
 
#7
aschen0866
Super Member
  • Total Posts : 4504
  • Reward points : 0
  • Joined: 2006/01/08 22:18:32
  • Location: San Diego
  • Status: offline
Re: XC32 compiler error - trying to merge bootloder and app projects - No rule to make tar 2019/06/13 10:26:16 (permalink) ☄ Helpfulby seccoxiru 2019/06/18 06:36:18
5 (2)
You seem to have really long and complex directory structure. The bootloader hex file, where the make file (Makefile-APP_WITH_BTL.mk) looks for, is deeply buried at

C:/Eletronica/Projetos/05 Portao Eletronico/04 Firmware/Bootloader Receptor/Bootloder Bluetooth/bootloader_bt_pci_lsr_v1.0/MPLAB_X_Workspace/bootloader_bt_pci_lsr_v1.0.X/dist/32MX270F256D/production/bootloader_bt_pci_lsr_v1.0.X.production.hex

The path is 286 characters long. I believe the limit is 260 for Windows. This may explain why the make can't locate the bootloader hex file, hence the "No rule to make target" error message.
 
Try moving both projects to C: and see if the problem goes away.
#8
seccoxiru
Junior Member
  • Total Posts : 102
  • Reward points : 0
  • Joined: 2011/10/27 13:42:59
  • Location: 0
  • Status: offline
Re: XC32 compiler error - trying to merge bootloder and app projects - No rule to make tar 2019/06/18 06:50:31 (permalink)
5 (1)
aschen0866
Try moving both projects to C: and see if the problem goes away.



I did that I now it is giving another error: (944) data conflict at address 1FC00488h
I think this is related to the linker scripts of APP and BTL projects, 1FC00488h is an address in the boot flash. 
In which fields of the linker the problem may be? (example _DBG_CODE_ADDR, debug_exec_mem...other)
I will post my linkers anyway. I renamed the linkers from .ld to .txt
 

Thanks for the help of yours.
Regards.
 
[EDIT]: Regarding the last error, I found the solution on web, adding this to the app linker script:
 
SECTION
{
/DISCARD/ : { *(._debug_exception) }
}
 
 
 
 
post edited by seccoxiru - 2019/06/18 08:00:47

Attached Image(s)

#9
Jump to:
© 2019 APG vNext Commercial Version 4.5