General Category > Test and Review Area

BRT_AN_025 Beta - Portable MCU library for EVE

<< < (4/5) > >>

korstiaan:
Hi,

I reduced my whole code to:


--- Code: ---    EVE_LIB_BeginCoProList();
    EVE_CMD_DLSTART();
    EVE_CLEAR_COLOR_RGB(0, 0, 0);
    EVE_CLEAR(1, 1, 1);
    EVE_COLOR_RGB(255, 255, 255);
    EVE_BITMAP_SOURCE(uStartAddressLogo300x300);
    EVE_CMD_SETBITMAP(uStartAddressLogo300x300, EVE_FORMAT_RGB565, 300, 300);
    EVE_BEGIN(EVE_BEGIN_BITMAPS);
    EVE_VERTEX2F(currentx * 16, currenty * 16);
    EVE_END();
    EVE_DISPLAY();
    EVE_CMD_SWAP();
    EVE_LIB_EndCoProList();
    EVE_LIB_AwaitCoProEmpty();

--- End code ---

And this I execute continuously.
And even this small display list gives problems.
I changed my code for HAL_WaitCmdFifoEmpty to


--- Code: ---uint8_t HAL_WaitCmdFifoEmpty(void) {
    uint32_t readCmdPointer;
    uint8_t retry = 0;

    // Wait until the two registers match
    do {
        // Read the graphics processor read pointer
        readCmdPointer = HAL_MemRead32(EVE_REG_CMD_READ);
        retry++;

    } while ((writeCmdPointer != readCmdPointer) && (readCmdPointer != 0xFFF) && (retry < 250));

    if (retry == 250) {
        printf("retry HAL_WaitCmdFifoEmpty");
    }

    if (readCmdPointer == 0xFFF) {
        // Return 0xFF if an error occurred
        return 0xFF;
    } else {
        // Return 0 if pointers became equal successfully
        return 0;
    }
}

--- End code ---

And I get now and then this retry HAL_WaitCmdFifoEmpty about 10-15 times every time it comes.
Also, when I let I ran al night, the display was frozen in the morning.

Something must be wrong in this library and I don't know what.
It causes the display to block/freeze. (a while loop that won't exit, like the one I already edited or it blocks)

Please help.

nar:
We are evaluating BT81x for a new project.   Where can we find this library & AN?   

The official links online found here https://brtchip.com/softwareexamples-eve/ return not found.   
Both AN and Source are dead end.  Also BRT_AN_062 links are not found.     We are looking for both BRT_AN_025 &  BRT_AN_062

We have emailed support.us, support.apac & support.emea for 10 days and no reply from any!!  (very assuring!  ???)

We know there is a 3rd-party library out there but per contract, evaluation needs to use original manufacturing toolchain fully before attempting to use external sources.

Thanks
NAR


--- Quote from: BRT Community on January 09, 2020, 01:39:10 PM ---Hi,

We have a new beta version of a framework for EVE which is designed to be portable across a range of different MCUs. The download includes projects for the following MCUs but you can also use it as the basis of your code on other platforms too.

- BridgeTek FT900
- ST STM32
- Microchip PIC18F
- Espressif ESP32
- TI MSP430
- BeagleBone
- Raspberry Pi

The code currently supports the FT80x and FT81x families of EVE.

Here are the draft document and the beta code project download links:

BRT_AN_025_FT8xx_Portable_MCU_Library_DRAFT.pdf
BRT_AN_025_Source_BETA.zip
(Note: The link in the pdf file for the source code download is not yet active but you can download the code via the link above)

The beta document and code are supplied on an as-is basis and are not guaranteed by BridgeTek.

Coming soon...
- We have almost finished adding the BT81x support to the code and this will be released as an update soon
- We also have a separate application note showing how to port this code to other MCUs, using an NXP K64 as an example.
- We will also be creating further code examples in future using the framework provided in BRT_AN_025

We hope this code helps to get you up and running with EVE on your own MCU. If you have any feedback or questions then please get in touch via support.emea@brtchip.com quoting "BRT_AN_025 feedback" in the email subject.

Best Regards,
BRT Community

--- End quote ---

BRT Community:
Hello Nar,

Thank you for your post.

Just as a note, if you email all three of the support emails address at the same time our spam filter is likely to block the email, in future please support.emea only for any EVE related questions.

Could you please let me know which MCU you are planning on utilizing for your project?
We have split the BRT_AN_025 project into separate folders so that it is easier to distribute to customers.


--- Quote from: nar on December 09, 2021, 07:25:15 PM ---We are evaluating BT81x for a new project.   Where can we find this library & AN?   

The official links online found here https://brtchip.com/softwareexamples-eve/ return not found.   
Both AN and Source are dead end.  Also BRT_AN_062 links are not found.     We are looking for both BRT_AN_025 &  BRT_AN_062

We have emailed support.us, support.apac & support.emea for 10 days and no reply from any!!  (very assuring!  ???)

We know there is a 3rd-party library out there but per contract, evaluation needs to use original manufacturing toolchain fully before attempting to use external sources.

Thanks
NAR

--- End quote ---

Best Regards,
BRT Community

nar:

Thanks.  Not all at the same time.   I think .apac first then 5 days later .emea

Can you please send us the section regarding EVE3/EVE4 & ESP32 (ESP-IDF core)  We are probably going to develop our own library as commands for slaves screens are going to be sent via an external transport protocol so getting your initial ESP32 support even if not complete for BT81x will be helpful.   I see the link for the BETA mentioned before is also not working.  That BETA would be helpful as well.

Thanks
NAR


--- Quote from: BRT Community on December 10, 2021, 12:01:26 PM ---Hello Nar,

Thank you for your post.

Just as a note, if you email all three of the support emails address at the same time our spam filter is likely to block the email, in future please support.emea only for any EVE related questions.

Could you please let me know which MCU you are planning on utilizing for your project?
We have split the BRT_AN_025 project into separate folders so that it is easier to distribute to customers.

Best Regards,
BRT Community

--- End quote ---

Jonathan:
Hey,

I would be also interested in the section about EVE3/EVE4 & ESP32 (ESP-IDF core). Could you please send me these files?
We are working with FreeRTOS, since the esp-idf is build on that. So I found this AN:

BRT_AN_073 - ESD 4.10 Exported Project Porting Guide for STM32L4 Discovery Board and FreeRTOS https://brtchip.com/wp-content/uploads/sites/3/2022/02/BRT_AN_073-ESD4.10.pdf

If i get this correct there is a way to set up the Screen Designer and my project to work together, thus I create my GUI in the designer and can compile it from the esp-idf, right?

Best
Jonathan

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version