Page 1 of 1
stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 10:52 am
by stefan.erni
Hi Ben
I use a STM32F469 discovery board. It's nice to use the display and touchscreen with Flowcode 7.2. One little problem I have with the board.
The programm is working if I connect the board with the USB connector to the computer. But If I use a powersupply for the USB the programm is not starting but LED LD6 (red) is flashing.
How can I run this board independently from a computer?
- led6.PNG
- (12.09 KiB) Downloaded 11747 times
Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 11:02 am
by LeighM
Hi
Try powering from the "ST-LINK" mini USB socket, not the "user" micro USB.
Also there is a power selector pin header where you can change the power source.
Might be worth downloading the ST manual

Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 11:05 am
by stefan.erni
Hi
It's the same. Even if I change the jumper 2 to usb.
Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 11:07 am
by LeighM
Oh, is your user program still loaded on the kit?
We have not got a lot of experience with these discovery kits yet,
but I've just dug out our 469 and it still runs the demo that I loaded over a week ago., just powered from a USB power/charger
Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 11:12 am
by stefan.erni
Hi Leigh
Yes the program is still there and if I use a another STM32F469 Disco "just out from the box" with the STM software, I have the same problem.
As if the bootloader is try to make a drive in a computer....
Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 11:16 am
by LeighM
I use a powersupply for the USB
What exactly are you using, and can you measure it's voltage?
Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 12:07 pm
by stefan.erni
I used a charger for a tablet. It has 5.05 Volt.
And I cut an usb- cable and connect it on my labor PSU. It's 5.00 (300mA) now. But just the red LED is flashing.
Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 12:52 pm
by stefan.erni
Hi Leigh
I found something in the STM32 ST-Link software.
Step1:
In the Menu ST-LINK I choosed Firmware update
Step2:
In the menu Target/Automatic mode =>
I choosed Run application and pressed start.( I'm not sure it's necessary)
I'm going back to FC7 and program it with my own code and then I connected to the powersupply. It's working now with a Powersupply.
Some more info and the link to the software is on Youtube link below.
https://www.youtube.com/watch?v=d9MftOa28Pw
Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 2:13 pm
by stefan.erni
Hi Leigh
Can I ask You some more?
Is it possible to use the USB port (the small connector)?
Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 3:02 pm
by LeighM
Hi,
Yes, it worked on the board I have here, with the correct link setting
Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 3:09 pm
by stefan.erni
Hi Leigh
Do you have a flowcode sample? What did you use for the USB?
Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 3:20 pm
by LeighM
Sorry, I thought you were asking about powering the board.
We don't yet have any USB peripheral support, if that is what you mean.
Re: stm32F429i Disco run on battery
Posted: Tue Apr 18, 2017 3:31 pm
by stefan.erni
Hi Leigh
Who knows maybe you'll do it in the future.....
I continue with the touchscreen and with the SD Card.
thank you for the Infos
Re: stm32F429i Disco run on battery
Posted: Wed Apr 19, 2017 10:43 am
by stefan.erni
Hi Leigh
My 32F469i board is working now on battery. The board consum about 260mA. I need some ideas to save power like a standby mode. Is there a function like in the Microchip PIC sleep?
On the board is a pin to turn off the backlight. It's need a resistor to solder (R119)
This pin is on port A3 but I can not found the Pin in the FC7 menu.
Re: stm32F429i Disco run on battery
Posted: Wed Apr 19, 2017 3:42 pm
by LeighM
Please try the attached
Re: stm32F429i Disco run on battery
Posted: Wed Apr 19, 2017 3:53 pm
by stefan.erni
Hi Leigh
Thank you. it's working. Perfect!
Re: stm32F429i Disco run on battery
Posted: Tue Apr 25, 2017 8:50 pm
by stefan.erni
Hi Leigh
There are some more Pin I missing in the "list"
A11,A12 Software RX/TX on usb Connector
J5, LCD_Int
A0, Wake up switch
B4,B5,A5,A15,C13,C6,C7,B13,B12 Extension connector interface
I hope you can add it.
A question about it... Can I do this in fcdx File?
Or is it possible to include all? I take care about using it?
Re: stm32F429i Disco run on battery
Posted: Tue Apr 25, 2017 10:13 pm
by LeighM
Yes the FCD could be updated, maybe make a custom one.
Another option is to change your target to the raw STM32F469 device to get access to all the ports
Re: stm32F429i Disco run on battery
Posted: Wed Apr 26, 2017 11:30 am
by stefan.erni
Hi Leigh
I added the 3 lines on the end of the list in the FCD. Now I can access the A11 and A12 and the Uart is working with "software"
Is there more Infos what are all the options in the FCD-Files? Can I just remove ADC10.....
------------------------------------------------------------------------------
<pin name='A0 (PB0)' port='1' bit='1' adc='9' />
<pin name='A1 (PC2)' port='2' bit='2' adc='12' />
<pin name='A2 (PC3)' port='2' bit='3' adc='13' />
<pin name='A3 (PC4)' port='2' bit='4' adc='14' />
<pin name='A4 (PC5)' port='2' bit='5' adc='15' />
<pin name='A5 (PA4)' port='0' bit='4' adc='4' />
<pin name='A10 (PA10)' port='0' bit='10' adc='10' />
<pin name='A11 (PA11)' port='0' bit='11' adc='11' />
<pin name='A12 (PA12)' port='0' bit='12' adc='16' />
Re: stm32F429i Disco run on battery
Posted: Wed Apr 26, 2017 12:29 pm
by LeighM
Hi,
OK, that looks good.
We don't have any documentation about the FCD files, as they are usually maintained by Matrix.
It was tricky knowing what to include for the Disco boards, we thought it best to just list the IO available externally to the user, maybe that was wrong.
Do you mean the "adc='10'"? If so, yes it can be removed without any issues, other than that pin won't be listed as an option for the ADC component.
Re: stm32F429i Disco run on battery
Posted: Wed Apr 26, 2017 12:59 pm
by stefan.erni
Hi Leigh
Thank you for the infos.
These boards and the corresponding configuration files are a very good idea. It's not difficult to add a few pin's for me, now that I know how to do that.
Re: stm32F429i Disco run on battery
Posted: Fri Apr 28, 2017 4:10 pm
by stefan.erni
hi Leigh
I take a measurment with my osciloscope.
If I turn on/off a Pin for 1mSek I get 0.96mSek it's ok
For a 2Khz IRQ I have to config as 355Hz => 5.6 x slower.
I I have studied a bit about the clock but it's not so easy to adjust.
I insert the config to the clock config tool from STM.
It's looks as if the timer has a 45Mhz clock (not 8Mhz)
Re: stm32F429i Disco run on battery
Posted: Fri Apr 28, 2017 8:13 pm
by LeighM
Hi, yes, you are right.
The clocks are quite complex and we need to get the config back into the frequency calculations.
So at present it is not accurate, and needs to be done manually, as you have.
It is on our to do list
Re: stm32F429i Disco run on battery
Posted: Sat Apr 29, 2017 12:15 pm
by stefan.erni
Hi Leigh
There is a another small problem. If I use a software UART with 115kB it gives an error. (Maybe FC7 mean the CPU run on 8Mhz?)
If I run it on 9600 BD in my program, the computer has to config as 12500Bd.
#error "Software UART Baud Rate Not Available At This Clock Speed"