C UART Library?

Is there a UART library in C for the ADSP-BF537 or BF537 Ez Kit Lite? So far I have seen the uartlib.asm in the sample programs. Also in the EE-347, there is a provided UART library in C but for some reason I can't build the sample project it's in. I also tried using the said uart library with its dependencies in my project but it still doesn't work. Does anyone have another UART library in C which I may use? I'm using Visual DSP 5.0. Thank you!

Parents
  • Yes that was the reason why I couldn't build the project. The "ADSP-BF537_FAMILY-UART_basiccrt.s" was successfully generated, however, upon rebuilding the project, this error came out:

    ----------------Configuration: ADSP-BF537_FAMILY-UART - Debug----------------

    .\ADSP-BF537_FAMILY-UART_basiccrt.s

    .\ADSP-BF534-UART.c

    ".\..\Common Code\init_platform.h", line 90: cc0035:  fatal error: #error

              directive: target not supported

          #error target not supported

           ^

    I tried commenting out that portion, but then a new error says that it's missing the services_types.h library. I also tried making a new project with the same header files and source files as the ADSP-BF537_FAMILY-UART and upon build, this error occured:

    ----------------Configuration: UART_test - Debug----------------

    .\ADSP-BF534-UART.c

    cc1458:  Fatal error: could not obtain license

    1 catastrophic error detected in the compilation of ".\ADSP-BF534-UART.c".

    Compilation terminated.

    cc3089: fatal error: Compilation failed

    Tool failed with exit/exception code: 1.

    Build was unsuccessful.

    I am using Visual DSP++ 5.0 (Product Version: 5.0.0.0 and IDDE Version: 8.0.6.41). Its license is an Evaluation license, Demo - Full, expiring in a couple of days. Is this the reason why I'm missing some libraries and licenses and therefore can't build the project?

    Also, i have checked the UART-specific Device Driver documentation at "...\Blackfin\docs\drivers\uart\", but it doesn't state whether to configure it for UART0 or UART1. Does this only work for one of the two (UART0 perhaps)?

    Thank you!

Reply
  • Yes that was the reason why I couldn't build the project. The "ADSP-BF537_FAMILY-UART_basiccrt.s" was successfully generated, however, upon rebuilding the project, this error came out:

    ----------------Configuration: ADSP-BF537_FAMILY-UART - Debug----------------

    .\ADSP-BF537_FAMILY-UART_basiccrt.s

    .\ADSP-BF534-UART.c

    ".\..\Common Code\init_platform.h", line 90: cc0035:  fatal error: #error

              directive: target not supported

          #error target not supported

           ^

    I tried commenting out that portion, but then a new error says that it's missing the services_types.h library. I also tried making a new project with the same header files and source files as the ADSP-BF537_FAMILY-UART and upon build, this error occured:

    ----------------Configuration: UART_test - Debug----------------

    .\ADSP-BF534-UART.c

    cc1458:  Fatal error: could not obtain license

    1 catastrophic error detected in the compilation of ".\ADSP-BF534-UART.c".

    Compilation terminated.

    cc3089: fatal error: Compilation failed

    Tool failed with exit/exception code: 1.

    Build was unsuccessful.

    I am using Visual DSP++ 5.0 (Product Version: 5.0.0.0 and IDDE Version: 8.0.6.41). Its license is an Evaluation license, Demo - Full, expiring in a couple of days. Is this the reason why I'm missing some libraries and licenses and therefore can't build the project?

    Also, i have checked the UART-specific Device Driver documentation at "...\Blackfin\docs\drivers\uart\", but it doesn't state whether to configure it for UART0 or UART1. Does this only work for one of the two (UART0 perhaps)?

    Thank you!

Children
No Data