2020-06-24 12:15 PM
Hi,
I'm lead embedded engineer at some company. Our current tech stack is android board for GUI and networking connected to stm32f2 over uart, which controls our hardware.
We're trying to give a shot to stm32mp1, which could be great way to reduce hardware cost and give us better tools to offload some not-real-time, but cpu intensive, tasks to application processor.
We've bought STM32MP157C-DK2 with intention of porting our software on it. First step would, obviously, be running Android on it. Since we've got android image from vendor of our current android boards and modified it only slightly, we have no experience with android development. Where should we start? I assume that it should be rather simple task, since ST provides bsp for stm32mp157c-ev1; which shares same MPU. I basically need, right now, usb storage, MIPI DSI display (DK2's built in one will be fine for now) with touch screen and uart peripheral. I'll leave running wifi dongle, usb camera and ethernet for later.
2020-06-25 05:39 AM
Hello @PDzie.1 ,
Have you already visited android related st wiki?
It contains set of useful articles:
https://wiki.st.com/stm32mpu/wiki/Category:How_to_Android
I believe it make you progress
Best regards,
Milan
2020-06-25 07:33 AM
Hi,
Thanks @mleo . I've read this wiki, but got stuck on Embedded Software page.
https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_STM32MPU_distribution_for_Android
I guess it's right place to start then. I've briefly looked at it and it seems thorough and I'm surely going to ask again when I got stuck.
Anyway, why did you prepare image for -ev1 only? -EV1 is much more expensive (4 times?) and was not available when I ordered -dk2 devkit.
Best regards,
Paweł
2020-06-26 12:13 AM
Hello,
EV1 benefit of 1GBytes 32-bit DDR whereas DK2 has only 512MBytes 16-bits DDR which make Android performance too low for a good user experience in most application. If you think your application might flight on DK2, you should have to built an image for the DK2.
2020-06-26 01:12 AM
Thank you very much, it's very helpful!
I'm glad I put my hands on -dk2 instead of eval, as 3rd party SOM which we are interested in share the same memory design. So, -DK2 build would give me really accurate final performance estimate.
We currently run archaic android on 3core cpu (it's 4 core cpu with one core disabled), with base frequency of 1.2 GHz. Application still works fine when we downclock CPU by half, and CPU usage rarely exceed 10%. Most of memory is free, and we are not RAM-intensive (but I suspect, android might be).
2020-06-26 01:47 AM
My guess is that Android high memory bandwidth come for GPU and HMI composition. A display not bigger than 800x480 would help to reduce the overall bandwidth.
Notice that there is STM32MP1 running at 800MHz for consumer market (limited Tj) and 3rd party SOM might offer this in short term. Memory and GPU bandwidth is not increased (still 533MHz), but it might help to gain performances.
2020-06-30 06:22 AM
Ok... I'm really close to getting started for real (now I just do research in short pauses between other tasks).
If I understand wiki page correctly, to build Android for -DK2 from ST's distribution I have to:
That should be enough to create distribution for -DK2 board? I know that it would be just basic one, and would require a bit tuning, but that should just work (I mean, I should be able to run it on devkit and see something on it's display)? Seems a bit too easy.
Looking a bit further into the future, I could just get vendor's linux distribution, take device tree from there, do same things as with -dk2 and all should just work? Or generating my own from STM32CubeMX would be safer choice?
@edit
@PatrickF We will be fine if it will work with resolution up to 800x480 only :). That would be perhaps a bit problematic if we would like to upgrade to bigger displays, but even then there are plenty of 7" displays with 800x480 resolution.
2020-08-31 08:24 AM