BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

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

Author Topic: EVE Asset Builder  (Read 1295 times)

Rudolph

  • Full Member
  • ***
  • Posts: 164
    • View Profile
EVE Asset Builder
« on: May 16, 2020, 07:36:35 PM »

I found more issues with EAB 1.4.0 beside the UTF-8 ones that are already under investigation.

The release notes state:
- Add the "Verify" function in flash utility

And yes, there is a checkmark-button for this in the EAB GUI.
However, when you activate the option and click "UPDATE", you only get the default output of "ProgFlash.exe"
in the Log window:
Welcome to BT81X Flash Programming Utility v1.0
Copyright(c) Bridgetek Pte Ltd All Rights Reserved

Usage: ProgFlash [command] [argument]

module       Select Program Module [ FT4222 (default) | MPSSE ]
chip         Select Program EVE Chip [ BT815 | BT816 | BT815A ]
erase        Erase all of flash
newblob      Install blob <file_name> in flash
write        Write <file_name> to flash (assumes flash is already erased)
update       Write <file_name> to flash, erasing if necessary
read         Read all of flash into <filename>

As if the "ProgFlash.exe" is supposed to have a verify command but the version shipped with the EAB package does not.
The "ProgFlash.exe" from EAB 1.2 has the exact same output, the newer version is 512 bytes longer though.
And I have not found a verify command in the .exe but the list above is missing the "detect" command.

Regarding "detect", it does work as a command from the command-line but fails from the GUI.
And the GUI suggests that there is a parameter to avoid measuring the writing speed, I wonder if that is there and what is.


When I use ProgFlash to erase a chip this is what happens:
---
D:\Chip_Test>ProgFlash module MPSSE erase
 Information on channel number 0:
 Flags=0x2
 Type=0x8
 ID=0x4036014
 LocId=0x422
 SerialNumber=
 Description=Single RS232-HS
 ftHandle=0x0

handle=0x7197f0 status=0x0
VC1 register ID after wake up 7c

 reg_touch_rz =0x7fff
 reg_touch_rzthresh =0xffff
 reg_touch_tag_xy=0x80008000
 reg_touch_tag=0x0

Switch flash status to FULL. Result: SUCCESS
Erasing Flash...
Progress ERASE 1
Progress ERASE 90
Switch flash status to BASIC. Result: SUCCESS
Progress ERASE 100
Erase Flash successfully
---

Why does it switch the flash to FULL in order to erase it?
There is no need to this, the chip-erase command will not work any faster.
What it does however is making it impossible to erase chips with EAB that do not work with the "unified.blob".
For example AT25SF641-SUB-T and AT25QF128A-SHB-T from Adesto.


On a side-note, what is a BT815A?

And why does EAB come with a "unified.blob", a "BT815.blob" and a "BT816.blob" now?
Which really is the same file with three different names.


- Replace 'numpy' by 'tinynumpy' to reduce distribution package size

No numpy to be found anywhere in the EVE Asset Builder installation.

« Last Edit: May 16, 2020, 08:51:32 PM by Rudolph »
Logged

BRT Community

  • Administrator
  • Sr. Member
  • *****
  • Posts: 287
    • View Profile
Re: EVE Asset Builder
« Reply #1 on: May 18, 2020, 02:00:15 PM »

Hello,

Thanks for you post.
I have passed this on to the development team for EAB for their consideration.

Best Regards,
BRT Community
Logged

Rudolph

  • Full Member
  • ***
  • Posts: 164
    • View Profile
Re: EVE Asset Builder
« Reply #2 on: June 20, 2020, 06:51:24 PM »

Hello,

a month has passed and neither has EAB been updated or the questions been answered.
I really wonder why Bridgetek is moving so slowly.
Same applies to documentation.

Sure, quality control is important.
But especially EAB does not leave the impression with me that it has been thoroughly tested.
Let us help with that, put more stuff in the "Test and Review Area".

Best regards,
Rudolph
Logged

BRT Community

  • Administrator
  • Sr. Member
  • *****
  • Posts: 287
    • View Profile
Re: EVE Asset Builder
« Reply #3 on: June 22, 2020, 12:10:41 PM »

Hello,

I will chase the development team up regarding this.
As for the 3 separate blob files, I believe this is for future proofing in-case different versions are required for different ICs, but yes currently they are all the same file.

Best Regards,
BRT Community
Logged

BRT Community

  • Administrator
  • Sr. Member
  • *****
  • Posts: 287
    • View Profile
Re: EVE Asset Builder
« Reply #4 on: June 23, 2020, 12:00:22 PM »

Hello Rudolph,

There is now a new version of EAB available (1.6.0) which should address the points in this post:
www.brtcommunity.com/index.php?topic=153.0

I would be grateful if you could give it a try.

Best Regards,
BRT Community
Logged

Rudolph

  • Full Member
  • ***
  • Posts: 164
    • View Profile
Re: EVE Asset Builder
« Reply #5 on: September 02, 2020, 03:09:05 PM »

I have a suggestion for a new tab in EAB.

What about adding a bin2c tool?
The output could be similar to the .rawh files that the image converter already generates.

But a few options would be sweet:
hex ouput
byte / word / long output
values per line configureable to upto four digits

Why? Conveniance.
I just converted two UTF-8 fonts, put them in a flash-image and compressed this flash-image.
Now I have to use some other tool to convert the .zlib file to a header file.
Logged

BRT Community

  • Administrator
  • Sr. Member
  • *****
  • Posts: 287
    • View Profile
Re: EVE Asset Builder
« Reply #6 on: September 18, 2020, 04:44:11 PM »

Hi Rudolph,

Thanks for your suggestion,

Yes we agree, it would be a very useful and convenient feature,

Our development team will add this in for a future release of EAB.

Best Regards, BRT Community
Logged

Rudolph

  • Full Member
  • ***
  • Posts: 164
    • View Profile
Re: EVE Asset Builder
« Reply #7 on: December 23, 2020, 12:17:14 AM »

Hello,

I just stumbled over EAB v2.1.0 RC2: https://brtchip.com/eve-toolchains/#EVEAssetBuilder

-   Add new tool Bin2C to convert binary file to C array

Sweet. :-)

I have two minor issues with the converter.
The first is that it does not output leading zeros which make the array look asymetrical.
The second is that the array is generated without size.

uint8_t data [] = {
0x78, 0x9c, 0xed, 0x9d, 0xf, 0x7c, 0x14,

Yes, *minor* issues. :-)
This is pretty much exactly what I was looking for, good job. :-)


The "Custom Touch" module looks interesting.
The example given in the "Read Me" does not compile though, it is using i2c_read16() while
it needs to be i2c_read16le() or maybe i2c_read16be().

After a modification it compiles but the output is irritating:

touch.c compilation is in progress...
Microcode 'capcs.fs' uses 1100 bytes.
Loader command stream is 364 bytes
350 new bytes in firmware
EXCEPTION IN (custom_touch.py, LINE 52 ""): WindowsPath('D:/EAB_Test/touch.bin') and 'D:/EAB_Test\\touch.bin' are the same file

Compilation is done.

There is a touch.bin and a touch.load.h file in the output directory though.

When you do not use the same folder as output folder the result is just this:
touch.c compilation is in progress...
Microcode 'capcs.fs' uses 1100 bytes.
Loader command stream is 364 bytes
350 new bytes in firmware

Compilation is done.

And also only a touch.bin and a touch.load.h file in the output directory.
Logged

Rudolph

  • Full Member
  • ***
  • Posts: 164
    • View Profile
Re: EVE Asset Builder
« Reply #8 on: January 17, 2021, 12:01:48 PM »

I have a bigger issue to report that persists with EAB 1.2.0 RC2.

It still does switch on the backlight and it looks like to full when using the "Flash Programmer" part.

Please change this, it only works with rather small displays that are not drawing much current for the backlight.
We are on the verge of getting the first 10.1" in our hands and this behaviour of EAB already is bad with 7" modules.
The current reported for the USB by the adapter is 500mA but a larger display easily will exceed this.
And all the USB/SPI adapters I know are using LDOs, with the VA800A-SPI even setting a bad example by using a puny
one in a SOT23 package.

There is no need to display anything for flash programming, or testing the speed of the chip.
Yet it displays a black screen with backlight on which is the worst it could do since the panel itself
draws the most current with all pixels switched to black.
Logged

BRT Community

  • Administrator
  • Sr. Member
  • *****
  • Posts: 287
    • View Profile
Re: EVE Asset Builder
« Reply #9 on: January 18, 2021, 12:05:10 PM »

Hello Rudolph,

Thank you for your valuable feedback, I will pass this onto the development team immediately.

Best Regards,
BRT Community
Logged