This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] FreeRTOS 和 BoosterPack MKII

Guru**** 2615915 points

Other Parts Discussed in Thread: BOOSTXL-EDUMKII

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/668810/freertos-and-boosterpack-mkii

主题中讨论的其他器件:BOOSTXL-EDUMKII

我尝试根据 CCS 示例(无 RTOS)使用 LCD 显示屏(来自 Booster Pack)。 但是、当我测试显示屏时、仅显示噪音(照片)。

如果我上载示例、则表明该示例正常工作(检查时、我没有对硬件产生问题)。

你对我做的不好有什么想法吗?

此致、

我的任务的代码:

void * thirdThread (void * arg0)


   /*
    *主函数


   /*图形库上下文*/
   graphics_context g_sContext;

   /*初始化显示*/
   Crystalfontz128x128_Init();
   /*设置默认屏幕方向*/
   Crystalfontz128x128_SetOrientation (LCD_orientation_up);

    /*初始化图形上下文*/
    graphics_initContext (&g_sContext、&g_sCrystalfontz128x128、&g_sCrystalfontz128x128_funcs);

    /**//
    graphics_setForegroundColor (&g_sContext、graphics_color_red);
    graphics_setBackgroundColor (&g_sContext、graphics_color_white);

    //GrContextFontSet (&g_sContext、&g_sFontFixed6x8);
    graphics_clearDisplay (&g_sContext);

    GRAPHICS_drawStringCenter(&g_sContext,
                                 "要校准的点触点"、
                                 AUTO_STRING_LENGTH、
                                 LCD_Horizontal_MAX / 1、
                                 LCD_Vertical _MAX / 1、
                                 Transparent_text);


   while (1)
   {

       GRAPHICS_drawStringCenter(&g_sContext,
                                   "要校准的点触点"、
                                   AUTO_STRING_LENGTH、
                                   LCD_Horizontal_MAX / 2、
                                   LCD_Vertical _MAX / 2、
                                   Transparent_text);
       vTaskDelay (100);

   }


  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Antonio、
    您使用的是哪个主板(红色主板)? 您在该板上的主 MCU 是什么?

    此致、
    现金 Hao
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我使用的是 msp432p401r 板和教育版 BoosterPack MKII BOOSTXL-EDUMKII。

    此致、
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    安东尼奥

      您如何与显示屏通信?  您是否将 TIDrivers 与 FreeRTOS 配合使用、或者您是否为 SPI 通信创建了自己的驱动程序?   

    Chris

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    这是我的项目中包含的内容列表:

    /* for usleep()*/
    #include
    #include
    #include

    /* RTOS 头文件*/
    #include
    #include
    #include

    #include

    /*驱动程序头文件*/
    #include
    //#include
    //#include
    //#include
    //#include
    //#include
    #include
    #include

    /*板头文件*/
    #include "Board.h"

    /*准液晶屏*/
    #include
    #include
    #include
    #include "LcdDriver/Crystalfontz128x128_ST7735.h"
    #include "LcdDriver/HAL_MSP_EXP432P401R_Crystalfontz128x128_ST7735.h"
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    安东尼奥
    我已提出为该显示屏开发驱动程序的请求。 我建议从一个简单的示例开始、并确保 TIDrivers 和 driverLib 之间没有冲突。

    Chris
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您知道吗?将此 LCD 显示屏与 FreeRTOS 配合使用的示例。 我没有找到任何要开始的示例。

    谢谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我已删除此 include //#include  但我得到的结果相同。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    安东尼奥
    我不知道任何示例。 我认为这是因为不存在驱动程序。

    此致、
    Chris