STM32F429I-DISCO firmware uploading

Discussion related to "under the hood" OpenMV topics.
rokko
Posts: 7
Joined: Mon Nov 09, 2015 6:17 pm

STM32F429I-DISCO firmware uploading

Postby rokko » Mon Nov 09, 2015 6:30 pm

Hi, I have some questions about openmv github project:
1) How can I upload it into "disco" dev board, using ST-LINK (afaik DFU conflicts with SDRAM)?
2) Maybe you have source code for STM32F429 chip?
3) Any suggestions about working with code in windows (IDE or something to compile using your makefiles)?
Thanks.
User avatar
Duiesel
Posts: 8
Joined: Wed Nov 11, 2015 7:29 am
Location: Russia
Contact:

Re: STM32F429I-DISCO firmware uploading

Postby Duiesel » Sat Nov 14, 2015 7:43 pm

Hello, guys!
I'm really interesting on it too!!!!
Please reply!
User avatar
Duiesel
Posts: 8
Joined: Wed Nov 11, 2015 7:29 am
Location: Russia
Contact:

Re: STM32F429I-DISCO firmware uploading

Postby Duiesel » Wed Nov 18, 2015 6:27 am

rokko wrote:Hi, I have some questions about openmv github project:
1) How can I upload it into "disco" dev board, using ST-LINK (afaik DFU conflicts with SDRAM)?
2) Maybe you have source code for STM32F429 chip?
3) Any suggestions about working with code in windows (IDE or something to compile using your makefiles)?
Thanks.
I'm finally compiled it working with Linux preinstalled arm-gcc-none-eabi compiler and using "make" from shell.
I think in Windows You can use http://gnuwin32.sourceforge.net/packages/make.htm
Good Luck!
rokko
Posts: 7
Joined: Mon Nov 09, 2015 6:17 pm

Re: STM32F429I-DISCO firmware uploading

Postby rokko » Wed Nov 18, 2015 7:59 am

Awsome, thank you man, will try it!
rokko
Posts: 7
Joined: Mon Nov 09, 2015 6:17 pm

Re: STM32F429I-DISCO firmware uploading

Postby rokko » Thu Nov 19, 2015 7:55 am

At first I got error after make:

Code: Select all

make  -C micropython/stmhal BUILD=/home/rokko/openmv/src/build/micropython BOARD=OPENMV2
make[1]: Entering directory `/home/rokko/openmv/src/micropython/stmhal'
Makefile:5: *** Invalid BOARD specified.  Stop.
make[1]: Leaving directory `/home/rokko/openmv/src/micropython/stmhal'
make: *** [objs] Error 2
Then I changed TARGET ?= OPENMV2 to STM32F4DISC, and got these errors:

Code: Select all

In file included from /home/rokko/openmv/src/micropython/py/mpconfig.h:45:0,
                 from main.c:13:
/home/rokko/openmv/src/micropython/stmhal/mpconfigport.h:222:0: error: "USE_DEVICE_MODE" redefined [-Werror]
 #define USE_DEVICE_MODE
 ^
<command-line>:0:0: note: this is the location of the previous definition
In file included from /home/rokko/openmv/src/micropython/stmhal/mpconfigport.h:226:0,
                 from /home/rokko/openmv/src/micropython/py/mpconfig.h:45,
                 from main.c:13:
/home/rokko/openmv/src/micropython/stmhal/boards/STM32F4DISC/mpconfigboard.h:1:0: error: "STM32F4DISC" redefined [-Werror]
 #define STM32F4DISC
 ^
<command-line>:0:0: note: this is the location of the previous definition
In file included from /usr/include/newlib/stdio.h:29:0,
                 from main.c:9:
/home/rokko/openmv/src/micropython/stmhal/mpconfigport.h:218:16: error: conflicting types for 'gc_alloc'
 #define malloc gc_alloc
                ^
In file included from main.c:25:0:
/home/rokko/openmv/src/micropython/py/gc.h:48:7: note: previous declaration of 'gc_alloc' was here
 void *gc_alloc(mp_uint_t n_bytes, bool has_finaliser);
       ^
In file included from /home/rokko/openmv/src/micropython/stmhal/usbdev/core/inc/usbd_core.h:34:0,
                 from main.c:51:
/home/rokko/openmv/src/micropython/stmhal/usbdev/core/inc/usbd_def.h:258:0: error: "MIN" redefined [-Werror]
 #define MIN(a, b)  (((a) < (b)) ? (a) : (b))
 ^
In file included from /home/rokko/openmv/src/micropython/py/qstr.h:30:0,
                 from main.c:16:
/home/rokko/openmv/src/micropython/py/misc.h:42:0: note: this is the location of the previous definition
 #define MIN(x, y) ((x) < (y) ? (x) : (y))
 ^
In file included from /home/rokko/openmv/src/micropython/stmhal/usbdev/core/inc/usbd_core.h:34:0,
                 from main.c:51:
/home/rokko/openmv/src/micropython/stmhal/usbdev/core/inc/usbd_def.h:259:0: error: "MAX" redefined [-Werror]
 #define MAX(a, b)  (((a) > (b)) ? (a) : (b))
 ^
In file included from /home/rokko/openmv/src/micropython/py/qstr.h:30:0,
                 from main.c:16:
/home/rokko/openmv/src/micropython/py/misc.h:45:0: note: this is the location of the previous definition
 #define MAX(x, y) ((x) > (y) ? (x) : (y))
 ^
main.c: In function 'flash_error':
main.c:175:19: error: 'LED_RED' undeclared (first use in this function)
         led_state(LED_RED, 0);
                   ^
main.c:175:19: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'make_flash_fs':
main.c:239:15: error: 'LED_RED' undeclared (first use in this function)
     led_state(LED_RED, 1);
               ^
main.c: In function 'main':
main.c:292:15: error: 'LED_RED' undeclared (first use in this function)
     led_state(LED_RED, 1);
               ^
main.c:293:15: error: 'LED_GREEN' undeclared (first use in this function)
     led_state(LED_GREEN, 1);
               ^
main.c:294:15: error: 'LED_BLUE' undeclared (first use in this function)
     led_state(LED_BLUE, 1);
               ^
main.c:417:21: error: implicit declaration of function 'pyexec_str' [-Werror=implicit-function-declaration]
                     pyexec_str(usbdbg_get_script());
                     ^
cc1: all warnings being treated as errors
make[1]: *** [/home/rokko/openmv/src/build/omv/main.o] Error 1
make[1]: Leaving directory `/home/rokko/openmv/src/omv'
make: *** [objs] Error 2
abue172
Posts: 6
Joined: Mon Apr 04, 2016 11:58 pm

Re: STM32F429I-DISCO firmware uploading

Postby abue172 » Mon Apr 04, 2016 11:59 pm

Hey guys,

I am quite noob at this,
Did you guys update the firmware through USB OTG?
User avatar
kwagyeman
Posts: 2401
Joined: Sun May 24, 2015 2:10 pm

Re: STM32F429I-DISCO firmware uploading

Postby kwagyeman » Tue Apr 05, 2016 12:08 am

We use DFU mode. See the link above to the development environment.
Nyamekye,
abue172
Posts: 6
Joined: Mon Apr 04, 2016 11:58 pm

Re: STM32F429I-DISCO firmware uploading

Postby abue172 » Tue Apr 05, 2016 1:17 am

Thanks for the reply.

I am using STM32F407 Disco board and it seems that it can still do the work.
https://groups.google.com/forum/#!topic ... lB0hM490jw

I have uploaded the OPENMV1/openmv.dfu which from https://github.com/openmv/openmv/tree/m ... re/OPENMV1 in DFU mode using DfuseDemo,
But still cant connect to the openmv ide.Not even seeing port have been added to device manager on PC.

Any help will be appreciate
User avatar
kwagyeman
Posts: 2401
Joined: Sun May 24, 2015 2:10 pm

Re: STM32F429I-DISCO firmware uploading

Postby kwagyeman » Tue Apr 05, 2016 9:20 am

Hi, we don't support what you are trying to do. The OPENMV1 firmware has more or less been abandoned (we don't test it).

If you want to try to use our firmware Either pickup a firesale OpenMV Cam or pre-order an OpenMV Cam.

If you can fit the OpenMV Cam 2 firmware on the disco then there's hope to get something running... but, again, our code has moved on from supporting the disco board really.
Nyamekye,
abue172
Posts: 6
Joined: Mon Apr 04, 2016 11:58 pm

Re: STM32F429I-DISCO firmware uploading

Postby abue172 » Tue Apr 05, 2016 9:19 pm

Thank you for the reply,

I have bought the openMV board yesterday!

Just thinking maybe my disco board will do the job, but failed :(

Anyway thank alot
User avatar
kwagyeman
Posts: 2401
Joined: Sun May 24, 2015 2:10 pm

Re: STM32F429I-DISCO firmware uploading

Postby kwagyeman » Tue Apr 05, 2016 9:50 pm

Make sure to install the dev environment and do firmware updates as we push new features. We plan to get the release firmware done by May.
Nyamekye,
victagayun
Posts: 17
Joined: Wed Oct 17, 2018 12:08 am

Re: STM32F429I-DISCO firmware uploading

Postby victagayun » Wed Oct 17, 2018 7:35 pm

kwagyeman wrote:
Tue Apr 05, 2016 12:08 am
We use DFU mode. See the link above to the development environment.
Hello, I am quite new to this.
I bought H7 in KS and I am planning on testing micropython.
I have this STM32F429I-Disco (using the older version of ST-linkV2 not ST-linkV2-1).
Few thing I would like to do this board:
1. Test openMV micropython.
2. Test openMV micropython using different LCD, ILI9341 TFT and modify lcd160cr_test.py and test.
Maybe use Adafruit tutorial https://learn.adafruit.com/micropython- ... icropython

At this moment it is not officially supported by micropython https://github.com/micropython/micropyt ... -STM32F429 and I havent tried micropython at all.
My questions are:
1. From viewtopic.php?f=6&t=31&p=107&hilit=STM32F429#p110:

Code: Select all

BOARD=STM32F429DISC 
should work and Ill be able to get these files?

Code: Select all

bootloader.bin
bootloader.dfu
bootloader.elf
firmware.bin
firmware.dfu
firmware.elf
openmv.bin
openmv.dfu
uvc.bin
uvc.dfu
uvc.elf
2. How to upload openMV to STM32F429I-Disco?
User avatar
kwagyeman
Posts: 2401
Joined: Sun May 24, 2015 2:10 pm

Re: STM32F429I-DISCO firmware uploading

Postby kwagyeman » Fri Oct 19, 2018 12:26 pm

Hi, we really can't help with this. I honestly don't know. The board isn't made by us nor is it supported by us. If you want to target MicroPython to it you'll really going to have to fight compiler issues and work through them.

You can open a thread on the micropython forums and ask for help. However, it's not a board supported by them either.

Any reason for not just buying a supported board?
Nyamekye,
victagayun
Posts: 17
Joined: Wed Oct 17, 2018 12:08 am

Re: STM32F429I-DISCO firmware uploading

Postby victagayun » Fri Oct 19, 2018 1:42 pm

kwagyeman wrote:
Fri Oct 19, 2018 12:26 pm
Hi, we really can't help with this. I honestly don't know. The board isn't made by us nor is it supported by us. If you want to target MicroPython to it you'll really going to have to fight compiler issues and work through them.

You can open a thread on the micropython forums and ask for help. However, it's not a board supported by them either.

Any reason for not just buying a supported board?
Hello, I was in the impression that you had some testing and prototyping using STM32F429I-DISCO board.
You have a schematic for that board also: viewtopic.php?f=5&t=11&p=33&hilit=STM32F429#p6155.

My STM32F429I-DISCO is just collecting dust and is not even working on STM32duino. I thought it might be of some use on openMV and try to do some micropython before my actual H7 arrive.

If you happen to have the hex file for this https://github.com/openmv/openmv-boards ... mv-sdr.pdf please upload on github.
Or maybe add on https://github.com/openmv/openmv/tree/master/firmware as OPENMV2-SDR?
User avatar
kwagyeman
Posts: 2401
Joined: Sun May 24, 2015 2:10 pm

Re: STM32F429I-DISCO firmware uploading

Postby kwagyeman » Sun Oct 21, 2018 3:07 pm

Oh, yeah that camera. Um, we haven't touched that in 3 years. No clue where the source is for that. Ibrahim might know.
Nyamekye,
victagayun
Posts: 17
Joined: Wed Oct 17, 2018 12:08 am

Re: STM32F429I-DISCO firmware uploading

Postby victagayun » Sun Oct 21, 2018 10:24 pm

kwagyeman wrote:
Sun Oct 21, 2018 3:07 pm
Oh, yeah that camera. Um, we haven't touched that in 3 years. No clue where the source is for that. Ibrahim might know.
He said just for only for reference.
Thanks for the reply..

viewtopic.php?p=6171#p6171

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 8 guests