uart print hex()'s problem

From OpenSSDWiki
Viewed 8025 times, With a total of 6 Posts
Jump to: navigation, search

Clicked A Few Times
Threads 1
Posts 5
when I use uart_print_hex() function in Greedyftl's write_page(),there's a error:
warning #223-D: function "uart_print_hex" declared implicitly.
....
arm link:error L6218:Undefined symbol uart_print_hex(referred from ftl.o)

and even I added "extern void uart_print_hex(UINT32 num);" in flt.c file. can not solve the problem.

and why I use uart_print() function in Greedyftl's write_page() is OK?

Would you please offer us some help, thank you!

Clicked A Few Times
Threads 11
Posts 39
Make sure that OPTION_UART_DEBUG is set to 1 in jasmine.h otherwise uart_print_hex is not defined.
Jeremy Brock

A+ Perfect Computers (http://www.recovermyflashdrive.com)
President / Sr. R&D Engineer
2465 Black Rock Tpke., STE. C
Fairfield, CT 06825, USA
Tel: 203-549-9761
Email: jeremy@recovermyflashdrive.com

Clicked A Few Times
Threads 1
Posts 5
Thanks to you!
I am sure that OPTION_UART_DEBUG is set to 1 in jasmine.h, But can not solve problem.
Edited On 2:11:45 AM - Mon, Aug 29th 2011 by Zhuruijin

Clicked A Few Times
Threads 11
Posts 39
Did enabling OPTION_UART_DEBUG fix your problem? Try replacing #define uart_print_hexa(X) in uart.h with #define uart_print_hex(X).
Edited On 1:54:25 PM - Fri, Aug 26th 2011 by Jeremy Brock

Clicked A Few Times
Threads 1
Posts 5
Replacing #define uart_print_hexa(x) in uart.h with #define uart_print_hex(X). can solve the problem!
Thank you very much!

Clicked A Few Times
Threads 1
Posts 5
Replacing #define uart_print_hexa(x) in uart.h with #define uart_print_hex(X). can solve the problem!
Thank you very much!

Just Got Here
Threads 1
Posts 2
Good job!


Forum >> Jasmine OpenSSD Platform >> Jasmine Firmware



Who's here now Members 0 Guests 0 Bots/Crawler 0


AWC's: 2.5.12 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC
Views
Personal tools