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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - kumaichi

Pages: [1]
1
Discussion - EVE / Re: UMFT4222EV with VM816C50A
« on: February 06, 2024, 07:45:36 PM »
I also get this error when trying to flash/verify, this has an error result, might be helpful.

Updating C:/Users/Public/Documents/EVE Asset Builder/work_space/output/Image400x400.bin to flash, erasing if necessary ...
WARNING: Blob driver will be overwriten!
Updating "C:/Users/Public/Documents/EVE Asset Builder/work_space/output/Image400x400.bin" to Flash Storage.
Switch flash status from FT810 to FULL. Result: ERROR
Unknown error code: 0xCD36DCD5
Flash status: FULL.
Verifying Flash...
Verifying flash fail at flash address 0, file address 0
Verifying FAIL!

Kindest regards

2
Discussion - EVE / Re: UMFT4222EV with VM816C50A
« on: February 06, 2024, 02:24:46 PM »
Could I clarify which version of EVE Asset Builder you care currently utilising?

I'm using EVE Asset Builder v2.10.2

Just as a note, if a erase does succeed the blob would need re-programmed into the flash IC before it can be detected. It may be that an erase has completed and the subsequent write has failed leading to he blob note being present.

EVE Asset Builder is reporting that it successfully erased the data but it's a false positive.  I can plug in the FT232HQ and it works fine identifying the blob and calculating the speed.

Anything else you need me to try please let me know.

Kindest regards

3
Discussion - EVE / Re: UMFT4222EV with VM816C50A
« on: February 06, 2024, 02:01:13 AM »
The jumpers I'm using are the breadboard wires, maybe 10-12in long.  I'll try the short ones and see if that makes a difference.  Thanks for the response.

Shortest breadboard wires I have still produce the same results.

I also tried changing the clock speed from 1-20 in steps of 1 and it didn't yield any different results, still fails to detect most of the time, never recognizes the blob.  I also tried to erase the chip and updated, it will sometimes say it's successful but running detect again shows same result, never detecting the blob and failing to detect.

Kindest regards

4
Discussion - EVE / Re: UMFT4222EV with VM816C50A
« on: February 03, 2024, 02:57:57 AM »
Hello, I was wondering if you could share your wiring connections.  I'm struggling to get the UMFT4222EV to connect to a Riverdi BT817Q.  My connections are as follows:

UMFT4222EV     ->     BT817Q
JP5.9                ->     SCLK
JP5.8                ->     MISO
JP5.7                ->     MOSI
JP5.5                ->     IO.2
JP5.4                ->     IO.3

JP4.11              ->     -----     10k Resistor -> +3V3
JP4.9                ->     CS        4.7k Resistor -> +3V3
JP4.6                ->     INT
JP4.4                ->     RST/PD

When in EAB and I try to Detect, I mostly get the following:

Detecting flash...
Found device: FT4222 A (A)
Host: FT4222

Flash size: 64 MBytes

Blob is NOT present.

Flash can switch to full speed.
END

Detection fail!

Occasionally, I get this:

Detecting flash...
Found device: FT4222 A (A)
Host: FT4222

Flash size: 64 MBytes

Blob is NOT present.

Flash can switch to full speed.
END

BEGIN
Measure reading speed...

Reading speed: 17.88 MB/s
Reading 10 MBytes in 0.56 seconds
END

In either case, it never finds the blob.  I know the blob is present because I can program it perfectly fine with an FT232H.

Is something connected incorrectly?  I've been trying to use the ME817EV schematic to try and match things up, which I think I have (using the pin mapping above).

Any insight would be greatly appreciated.

Kindest regards.

5
Discussion - MCU / Re: STM32CubeIDE EVE4 Library Integration
« on: January 29, 2024, 05:28:26 PM »
LL_SPI_Enable() should be at the end of MX_SPI1_Init() in main.c.

What's worse for me, it didn't include the stm32wbxx_ll_spi.h file, so I had to add that to my main.h file as well, ugh.  This has solved the issue though and is a much better solution that what I was doing.

I just checked what STM32CubeIDE is generating for me and I also do not have this line,
whatever the idea behind fully configuring a unit and then not activating it in the end is.

Yeah, I'm beginning to question my choice here.

Well, STM32CubeIDE, I still have the Code that it generated for the STM32G0B1CET6, took me a bit to find out that the
generated MX_SPI1_Init() neither activated the clock or configured the SPI pins.
And the one working version I have in the other folder has __HAL_SPI_ENABLE(&hspi1); at the end, the generated one does not.

I apologize for this consuming so much of your time, I really do appreciate your assistance with this, it was driving me crazy.

If only you had pick one of the few STM32 controllers I have a Nucleo board with here... :-)

Ha, I was getting to a place that I would have sent you one :).

Thanks again for all of your assistance.

Kindest regards

6
Discussion - MCU / Re: STM32CubeIDE EVE4 Library Integration
« on: January 26, 2024, 08:23:44 PM »
I connected my Diligent Analog Discovery 3 to the SPI lines and the screenshots are attached.  I'm new to hardware so I'm not sure if what I captured was correct.  However, the big difference is WITH the LL_SPI_Enable(), there is a bunch of traffic captured, the screenshot is only the first "set" of data, there is a bunch more but I can't really see anything when zoomed out enough to see the whole process but there is A LOT of communication happening.  The capture WITHOUT the LL_SPI_Enable(), has the CS line going high and then low but nothing after that, it's just flat, there is nothing happening in the capture after the CS.

Let me know if there is something I can do differently in WaveForms to give you better information.

Kindest regards

7
Discussion - MCU / Re: STM32CubeIDE EVE4 Library Integration
« on: January 26, 2024, 02:29:32 PM »
Hello,

I just came across it while I was searching for why the RXNE was always return 0, there are two methods the LL SPI uses to initialize itself, LL_SPI_Init() and LL_SPI_Enable().  I searched the STM32 documentation and couldn't find exactly what it does but this is the source:

/**
  * @brief  Enable SPI peripheral
  * @rmtoll CR1          SPE           LL_SPI_Enable
  * @param  SPIx SPI Instance
  * @retval None
  */
__STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx)
{
  SET_BIT(SPIx->CR1, SPI_CR1_SPE);
}

There's also a way to ensure the LL_SPI is initialized:

/**
  * @brief  Check if SPI peripheral is enabled
  * @rmtoll CR1          SPE           LL_SPI_IsEnabled
  * @param  SPIx SPI Instance
  * @retval State of bit (1 or 0).
  */
__STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx)
{
  return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL);
}

I changed Rudolph's spi_transmit method to look like this:

static inline void spi_transmit(uint8_t data)
{
   if(!LL_SPI_IsEnabled(EVE_SPI))
   {
      LL_SPI_Enable(EVE_SPI);
   }

   LL_SPI_TransmitData8(EVE_SPI, data);
   while (!LL_SPI_IsActiveFlag_TXE(EVE_SPI)) {}
   while (!LL_SPI_IsActiveFlag_RXNE(EVE_SPI)) {}
   LL_SPI_ReceiveData8(EVE_SPI); /* dummy read-access to clear SPI_SR_RXNE */
}

I still have an icky feeling putting that code in the spi_transmit(), just doesn't feel right and I doubt Rudolph has anyone complaining about it.  Could be just something in my CUBE IDE configuration I missed too.

I don't know if it needs to call, LL_SPI_DISABLE() at some point or not.  The above source came from my, stm32wbxx_ll_spi.h.

If there is anything I can look at for you let me know.

Kindest regards

8
Discussion - MCU / Re: STM32CubeIDE EVE4 Library Integration
« on: January 25, 2024, 08:13:45 PM »
I got it! :)  But not sure the best way to solve it permanently.  I added, LL_SPI_Enable(EVE_SPI); to spi_trasmit(...):

static inline void spi_transmit(uint8_t data)
{
   LL_SPI_Enable(EVE_SPI);
   LL_SPI_TransmitData8(EVE_SPI, data);
   while (!LL_SPI_IsActiveFlag_TXE(EVE_SPI)) {}
   while (!LL_SPI_IsActiveFlag_RXNE(EVE_SPI)) {}
   LL_SPI_ReceiveData8(EVE_SPI); /* dummy read-access to clear SPI_SR_RXNE */
}

I'm confident that's not where it should go.  Any thoughts?

Kindest regards

9
Discussion - MCU / Re: STM32CubeIDE EVE4 Library Integration
« on: January 24, 2024, 08:36:06 PM »
Wow!  Thank you so much Rudolph!  I'm a newbie to CUBE IDE and trying to figure all of this out.  Guess I shouldn't have started with a display, LOL.

I have it building without errors or warnings using your very detailed steps, very cool!!!

This is light years ahead of where I've been for the last week.  Thanks again for your time and effort helping a newbie and putting this library together.

Currently stuck inside:

EVE_target_STM32.h->spi_transmit(...)->while (!LL_SPI_IsActiveFlag_RXNE(EVE_SPI)) {}

It never comes out of the while loop and the return always = 0, ugh. 

Kindest regards

10
Discussion - MCU / Re: STM32CubeIDE EVE4 Library Integration
« on: January 24, 2024, 05:51:56 PM »
Thank you for your reply, I must have missed the "simple" during my searching.  I opened the project in CUBE IDE and although it successfully builds, when I try to write the firmware to an STM32F03 board I had laying around, it bricks the MCU and can only get it back by resetting it. 

Thanks again, I will continue to try and figure out what is happening.

I couldn't get Rudolph's library to build in my CUBE IDE project.

Kindest regards.

11
Discussion - MCU / STM32CubeIDE EVE4 Library Integration
« on: January 23, 2024, 08:15:38 PM »
Hello All,

New here, I've been writing Windows based software for longer than I'd like to admit and I'm having the hardest time trying to integrate any of the EVE libraries out on GitHub into an STM32CubeIDE project.  I've tried Riverdi (that's the display I'm trying to get working), Rudolph Riedel's and MatrixOrbital's libraries without much luck.  The steps I've tried:

1. Create a new project in Stm32CubeIDE using the STM32Wb55RG Nucleo board (I'm creating a custom board based off the MCU so bought the Nucleo for prototyping).
2. Dragged the cooresponding .c & .h files from the perspective library into the STM32CubeIDE file tree, .c to Src folder and .h to Inc folder.  Trying to keep it simple instead of creating specific folders like in the libraries for now to try and get something to compile.
3. Copied the contents of the host_layer/Stm32/platform.h and platform.c and copied into my main.h and main.c files.

Then I spend a few hours trying to get it to build.  Fail miserably and moved onto the next library trying the same steps (I am the definition of insanity, lol).  Can anyone provide some guidance to getting one of the libraries to build in an STM32CubeIDE project?

I am very new to hardware and STM32CubeIDE, which is why I think I'm having so much difficulty.

Kindest regards

Pages: [1]