cancel
Showing results for 
Search instead for 
Did you mean: 

How to edit APB1, APB2 Timer Multiplier value in stm32cubeMX GUI?

hemantraj undale
Associate II
Posted on February 10, 2017 at 06:21

How to edit APB1, APB2 Timer Multiplier value in stm32cubeMX (clock configuration) GUI tool?

How to change following values manually?

Thanks for reading!!

0690X00000606HqQAI.png
5 REPLIES 5
T J
Lead
Posted on February 10, 2017 at 06:52

You can only adjust the APB1 and APB2 prescalers.

the x1 box that you have highlighted is unchangeable.

Posted on February 10, 2017 at 07:03

It will be X1 or X2 depending on the divisor selected for the APB. You can then manage the timers using the prescaler.

What is it that you hope to achieve?

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Posted on February 10, 2017 at 07:12

Thanks marsh.nick for reply.

These values gets changed automatically if we change APB prescaler value (dropdown selection box).

I just want to select manually one value out of available value of APB1,2 Timer multiplier value. 

I want following configuration,

Ethernet clock, sys clock, HCLK, FCLK = 168Mhz

APB1 peripheral clk, APB1 Timer Clock = 42Mhz

APB2 peripheral clk, APB2 Timer Clock = 84Mhz.

USB clock = 42Mhz.

How to set ?

I have one .ioc file which has above said values, but I cannot set same values in newly created .ioc file.

All other values in clock configuration page are identical (except APB1,2 Timer Multiplier value

)

There has to be some way to set above values?

Posted on February 10, 2017 at 07:14

Thanks Clive One for reply.

Please read above reply, about what I want.

'

These values gets changed automatically if we change APB prescaler value (dropdown selection box).

I just want to select manually one value out of available value of APB1,2 Timer multiplier value. 

I want following configuration,

Ethernet clock, sys clock, HCLK, FCLK = 168Mhz

APB1 peripheral clk, APB1 Timer Clock = 42Mhz

APB2 peripheral clk, APB2 Timer Clock = 84Mhz.

USB clock = 42Mhz.

How to set ?

I have one .ioc file which has above said values, but I cannot set same values in newly created .ioc file.

All other values in clock configuration page are identical (except APB1,2 Timer Multiplier value

)

There has to be some way to set above values?

'

Posted on February 10, 2017 at 10:29

I am running cube 4.0 and easily got those values you have described, but the USB clock should be 48MHz.

I had to add an external xtal to make it work, attached.

you will probably need the 25MHz crystal anyhow for the Ethernet.

________________

Attachments :

F417VGT usb incorrect.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HywF&d=%2Fa%2F0X0000000bE5%2FT75KUSQB7qhpEyC5wMHrt33uY1AJtvJx5tzbg.E6KVc&asPdf=false

F417VGT - correct.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HywA&d=%2Fa%2F0X0000000bE7%2FGIyeWX55LEQ4OEMMfWoRW4K.rt_dPHyRTXBuJJ7wxi8&asPdf=false