stm32F429i Disco run on battery

An area to discuss ARM specific problems and examples

Moderator: Benj

Post Reply
stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

stm32F429i Disco run on battery

Post 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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: stm32F429i Disco run on battery

Post 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 :wink:
Last edited by LeighM on Tue Apr 18, 2017 11:05 am, edited 1 time in total.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post by stefan.erni »

Hi

It's the same. Even if I change the jumper 2 to usb.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: stm32F429i Disco run on battery

Post 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

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post 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....

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: stm32F429i Disco run on battery

Post by LeighM »

I use a powersupply for the USB
What exactly are you using, and can you measure it's voltage?

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post 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.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post by stefan.erni »

Hi Leigh
I found something in the STM32 ST-Link software.
Step1:
In the Menu ST-LINK I choosed Firmware update
firmware_update.PNG
(34.23 KiB) Downloaded 11237 times
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.
st_link_run.PNG
(55.17 KiB) Downloaded 11731 times



https://www.youtube.com/watch?v=d9MftOa28Pw
Last edited by stefan.erni on Wed May 03, 2017 2:38 pm, edited 1 time in total.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post by stefan.erni »

Hi Leigh

Can I ask You some more?

Is it possible to use the USB port (the small connector)?

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: stm32F429i Disco run on battery

Post by LeighM »

Hi,
Yes, it worked on the board I have here, with the correct link setting

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post by stefan.erni »

Hi Leigh
Do you have a flowcode sample? What did you use for the USB?

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: stm32F429i Disco run on battery

Post 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.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post 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

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post 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.
port_A3.PNG
(26.16 KiB) Downloaded 11702 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: stm32F429i Disco run on battery

Post by LeighM »

Please try the attached
Attachments
32F469Discovery.fcdx
(33.84 KiB) Downloaded 246 times

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post by stefan.erni »

Hi Leigh

Thank you. it's working. Perfect!

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post 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?

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: stm32F429i Disco run on battery

Post 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

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post 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' />

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: stm32F429i Disco run on battery

Post 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.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post 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.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post 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)
clocksettings.PNG
(142.65 KiB) Downloaded 11500 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: stm32F429i Disco run on battery

Post 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

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: stm32F429i Disco run on battery

Post 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"

Post Reply