Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to use dbg_print function in Bootstrap V1.16?
PostPosted: Wed May 02, 2012 7:54 am 
Offline

Joined: Tue May 01, 2012 3:51 pm
Posts: 3
I want to use dbg_print function for debug.while complie an error occurred,error is following:
/Bootstrap-v1.16/board/at91sam9261ek/dataflash/../../../board/at91sam9261ek/at91sam9261ek.c:108: undefined reference to `dbg_init'
/Bootstrap-v1.16/board/at91sam9261ek/dataflash/../../../board/at91sam9261ek/at91sam9261ek.c:109: undefined reference to `dbg_print'
collect2: ld returned 1 exit status
make: *** [dataflash_at91sam9261ek] Error 1


Top
 Profile  
 
 Post subject: Re: How to use dbg_print function in Bootstrap V1.16?
PostPosted: Thu May 03, 2012 12:34 am 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 784
You'd need to edit the makefile to put -DCFG_DEBUG on to the end of the CCFLAGS line.

You might need to do a "make clean", depending how you've left the system after the failed build.


Top
 Profile  
 
 Post subject: Re: How to use dbg_print function in Bootstrap V1.16?
PostPosted: Fri May 04, 2012 3:24 am 
Offline

Joined: Tue May 01, 2012 3:51 pm
Posts: 3
CptTitanic wrote:
You'd need to edit the makefile to put -DCFG_DEBUG on to the end of the CCFLAGS line.

You might need to do a "make clean", depending how you've left the system after the failed build.


Hi,CptTitanic, thanks!
according to your idea,it works.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: