makefile error ?

motley
Posts: 24
Joined: Fri May 10, 2013 3:51 pm

makefile error ?

Postby motley » Tue May 14, 2013 3:18 pm

Hi,

Having my first run through with tdisp and make stops at this line:

include $(CHIBIOS)/os/various/fatfs_bindings/fatfs.mk


That directory didn't exist on my ChibiOS installation (new as of yesterday), I did find fatfs-0.8b-patched.zip which unpacked itself to ChibiOS/ext/fatfs and within that was fatfs.mk

Amending the makefile line to:

include $(CHIBIOS)/ext/fatfs/fatfs.mk


seems to work although I haven't finished yet mostly because I am learning new bits about make as I go along...

Cheers,

Chris

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: makefile error ?

Postby Tectu » Tue May 14, 2013 3:33 pm

Hello motley,

I guess you took that line from the Makefile example from the GFX webpage? It's possible that the default path of ChibiOS/RT for the fatfs bindings have changed with the new version release. I will check that and fix it if required. I thank you very much for finding the problem.


~ Tectu

motley
Posts: 24
Joined: Fri May 10, 2013 3:51 pm

Re: makefile error ?

Postby motley » Tue May 14, 2013 3:36 pm

Tectu,

Yes - that's where I copied the makefile from - sorry I forgot to say that :-(

Chris

motley
Posts: 24
Joined: Fri May 10, 2013 3:51 pm

Re: makefile error ?

Postby motley » Tue May 14, 2013 3:59 pm

One further issue that has now come up, the make file has this directive:

ifeq ($(USE_THUMB),)
USE_THUMB = yes
endif


and when compiling I get this message:

Assembler message S:121: Error: Selected processor does not support Thumb mode 'vmsr FPSCR, r4'


I think these are the relevant lines from makefile:

include $(CHIBIOS)/boards/ST_STM32F4_DISCOVERY/board.mk
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
include $(CHIBIOS)/os/kernel/kernel.mk
include $(CHIBIOS)/ext/fatfs/fatfs.mk
include $(GFXLIB)/gfx.mk
include $(GFXLIB)/drivers/tdisp/HD44780/tdisp_lld.mk


# Define linker script file here
LDSCRIPT = $(PORTLD)/STM32F407xG.ld


I'm sorry to say that this is a bit beyond me at this stage !

Thanks,

Chris

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: makefile error ?

Postby Tectu » Tue May 14, 2013 5:32 pm

Hello motley,

You are not supposed to copy the provided Makefile 1:1. This is the reason why the for the ChibiOS/GFX project important lines have been hilighted. You are supposed to take a working project for you hardware or a working demo of ChibiOS/RT and just add the hilighted lines to that Makefile. Every other lines but the hilighted ones are hardware/platform/compiler/application specific and have nothing to do with the actual GFX project.

And don't worry, just ask when you have some questions :)


~ Tectu

motley
Posts: 24
Joined: Fri May 10, 2013 3:51 pm

Re: makefile error ?

Postby motley » Tue May 14, 2013 9:37 pm

Hi Tectu,

Ok I understand that the makefile on the Chibios/GFX was for 'guidance' and I have changed all the parts of the file that I thought I needed to (for my STM32F4) but I clearly have missed something !

As you suggest I will try to approach it from the other direction - use a Chibios working demo and amend the makefile from that to use GFX.

Just for the record I tried the ChibiStudio and found Eclipse too painful... I'm on the command line yagarto route now.

Cheers,

Chris

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: makefile error ?

Postby Tectu » Tue May 14, 2013 9:52 pm

Hello motley,

YAGRATO is not the recommended toolchain for the use with ChibiOS/RT or ChibiOS/GFX. The entire ChibiOS community uses this toolchain and it's really the best working one (open source). It's also the same compiler that has been included into ChibiStudio.
This might sound silly but many people had issues which were hard to track back and at the end it was somehow toolchain related. There's no such known issue with the linked one.

Try to take the working example and just add the hilighted lines. Let me/us know when there are any other problems.


~ Tectu

motley
Posts: 24
Joined: Fri May 10, 2013 3:51 pm

Re: makefile error ?

Postby motley » Wed May 15, 2013 8:56 am

HI Tectu,

Thanks for the toolchain link - I chose Yagarto because it was mentioned on the ChibiOS website as one of the tools used...

Perhaps there could be a recommendation as to which is the best non-IDE route to take ?

Cheers,

Chris

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: makefile error ?

Postby Tectu » Wed May 15, 2013 11:35 am

Hey motley,

I tried to describe my prefered way here. I never came to finish the article, I should really do that at some day but it's just the debugging part that's missing.

I hope that helps somehow.


~ Tectu


Return to “LCD Driver and Graphic Framework”

Who is online

Users browsing this forum: No registered users and 7 guests