News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Main Menu

Recent posts

#71
Discussion - EVE / Re: Problems with displaying A...
Last post by Rudolph - May 30, 2025, 01:38:20 PM
Quote
I am not sure this is OK:


EVE_cmd_dl(BITMAP_LAYOUT(EVE_GLFORMAT, image_width * bits_per_pixel / 8.0, image_height));


And you are correct, this is not right.
Not that I could tell how these values are calculated, I tried this in EVE Screen Editor.

And for
CMD_SETBITMAP(0x800000 | 128, COMPRESSED_RGBA_ASTC_4x4_KHR, 500, 376)

The generated display list code is:

BITMAP_SOURCE(0x800000 | 128)
BITMAP_SIZE_H(0, 0)
BITMAP_SIZE(NEAREST, BORDER, BORDER, 500, 376)
BITMAP_EXT_FORMAT(COMPRESSED_RGBA_ASTC_4x4_KHR)
BITMAP_LAYOUT_H(1, 0)
BITMAP_LAYOUT(GLFORMAT, 976, 94)

Whatever the correct way is to calculate Stride and Height in BITMAP_LAYOUT for ASTC,
just stop using it and switch to CMD_SETBITMAP. :)


Edit: forgot to ask:
Quote
// Source is FLASH -> can NOT use Rudolph's library

Why?




#72
Discussion - EVE / Problems with displaying ASTC ...
Last post by TreeOone - May 30, 2025, 11:48:57 AM
Hi.

Can someone please take a look at my code. For some reason ASTC image is not rendered correctly. Image was created with EAB.

BT817 is initialized. FLASH is in full speed mode. Everything seems OK, however image is displayed as if someone took scissors and randomly put together little pieces of it on screen.

char file_name[] = "Image 4_500x376_COMPRESSED_RGBA_ASTC_4x4_KHR.raw";
uint32_t image_width = 500;
uint32_t image_height = 376;
float_t bits_per_pixel = 8;
uint32_t bitmap_format = EVE_ASTC_4X4;

printf("Attempting to display image %s !\r\n", file_name);
demo_CoPro_13(buffer, file_size, image_width, image_height, bitmap_format, bits_per_pixel);


/*
Use FLASH to display bitmaps in ASTC format.
*/
void demo_CoPro_13(uint8_t *image_location, uint32_t image_size, uint32_t image_width, uint32_t image_height, uint32_t bitmap_format, float_t bits_per_pixel)
{
if(EVE_memRead32(REG_FLASH_STATUS) != EVE_FLASH_STATUS_FULL)
{
printf("Error, flash is NOT in full speed status!\r\n");
return;
}
else
{
printf("EVE's flash is in full speed status!\r\n");
}

uint32_t flash_size = EVE_memRead32(REG_FLASH_SIZE);
printf("Flash size: %d Mbytes\r\n", flash_size);

write_to_EVE_flash_via_RAM_G(sizeof(bt817_blob), image_location, image_size);

uint8_t *result = read_from_EVE_flash_via_RAM_G(sizeof(bt817_blob), image_size, image_location, 0);

sdram_free(result);

uint32_t underrun_flag_status_start = EVE_memRead32(REG_UNDERRUN);

// Clear EVE's cache
EVE_cmd_clearcache();

EVE_cmd_dl(CMD_DLSTART); // tell EVE to start a new display-list

EVE_cmd_dl(DL_CLEAR_COLOR_RGB | WHITE); // sets the background color
EVE_cmd_dl(DL_CLEAR | CLR_COL | CLR_STN | CLR_TAG);
EVE_color_rgb(BLACK);

EVE_cmd_dl(BITMAP_HANDLE(0));

uint32_t source_value = (1UL << 23) | (sizeof(bt817_blob) / 32);

uint32_t command = DL_BITMAP_SOURCE | source_value;

// Source is FLASH -> can NOT use Rudolph's library
EVE_cmd_dl(command);

// Specify the source bitmap memory format and layout for the current handle.
EVE_cmd_dl(BITMAP_LAYOUT(EVE_GLFORMAT, image_width * bits_per_pixel / 8.0, image_height));

// Additional specification needed for GLFORMAT
EVE_cmd_dl(BITMAP_EXT_FORMAT(bitmap_format));

//This command is the extension command of BITMAP_SIZE for bitmap larger than 511 by 511 pixels.
EVE_cmd_dl(BITMAP_SIZE_H(image_width, image_height));

//Specify the screen drawing of bitmaps for the current handle
EVE_cmd_dl(BITMAP_SIZE(EVE_NEAREST, EVE_BORDER, EVE_BORDER, image_width, image_height));

EVE_begin(EVE_BITMAPS);

// Display image at coordinates 0, 0
EVE_cmd_dl(VERTEX2II(0, 0, 0, 0));

//To draw the graphics primitives beyond the coordinate range [(0,0), (511, 511)], use VERTEX2F instead.

EVE_end();

EVE_cmd_dl(DL_DISPLAY); // put in the display list to mark its end
EVE_cmd_dl(CMD_SWAP); // tell EVE to use the new display list

uint32_t underrun_flag_status_end = EVE_memRead32(REG_UNDERRUN);

printf("underrun_flag_status_start = %d\r\n", underrun_flag_status_start);
printf("underrun_flag_status_end = %d\r\n", underrun_flag_status_end);
}


I am not sure this is OK:

EVE_cmd_dl(BITMAP_LAYOUT(EVE_GLFORMAT, image_width * bits_per_pixel / 8.0, image_height));



#73
General Discussion / Re: the board Discussion - Sof...
Last post by Rudolph - May 29, 2025, 01:52:01 PM
This forum still is "missing" a thumbs-up feature as quick feedback for posts. :)
#74
General Discussion / Re: the board Discussion - Sof...
Last post by BRT Community Admin - May 29, 2025, 01:47:57 PM
Hi Rudolph,

Yes, that's correct, I found the issue and fixed it, so will work on both your accounts.


thanks

BRT Community Admin
#75
General Discussion / Re: the board Discussion - Sof...
Last post by Rudolph - May 29, 2025, 01:42:07 PM
Oh, this is what you meant by "I have solved it", now I can access the board with this account as well. :)
#76
General Discussion / Re: the board Discussion - Sof...
Last post by Rudolph_Test - May 29, 2025, 01:40:07 PM
Interesting, with this test-account I can indeed see the board. wtf?  :)
#77
General Discussion / Re: the board Discussion - Sof...
Last post by BRT Community Admin - May 29, 2025, 01:36:47 PM
Hi Rudolph,

I think I have solved it, please try and access the Board now.


thanks

BRT Community Admin
#78
Discussion - EVE / Re: BT82x
Last post by jori - May 29, 2025, 01:00:03 PM
What's happening with BT822 ?
#79
General Discussion / Re: the board Discussion - Sof...
Last post by Rudolph - May 29, 2025, 12:38:21 PM
I tried to register a test account and it took me 20+ attempts to get past that captcha.
Ok, now I have to wait for approval.

I am using FireFox.
So I just logged in with this account using Edge - same thing, the board only shows when I am not logged in.
And I see the board when I log out in FireFox, it vanishes as soon as I log back in.
#80
General Discussion / Re: the board Discussion - Sof...
Last post by BRT Community Admin - May 29, 2025, 12:02:18 PM
Hi Rudolph,

My colleague has logged in who does not have admin rights is able to view and post in Discussion - MCU. So I`m not sure what's happening with your account.

Can you create a test user name and see if you can view it?

thanks

BRT Community Admin