2017-03-27 02:37 PM
i want use timer1 with external trigger to enable the counter.
but when stm32cubemx generate code the mcu crash and stop working and debug stop
and after long time i found the problem in this line
__HAL_AFIO_REMAP_TIM1_ENABLE();
how to solve it ???
i use stm32f103
2017-03-28 06:54 AM
Hi,
Could you please precise which version are you using and if possible share your .ioc file ? This will help us to verify this issue.
Imen
2017-03-28 01:45 PM
i use stm32cubemx v4.20
here is my stm32cubemx and i generate code for keil mdk v5
________________ Attachments : ahmed.rar : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HykJ&d=%2Fa%2F0X0000000bBq%2FUFHoqtw25FRwvJAgZlWRaeKJVEU9F2_rPNqIH2pW8EE&asPdf=false2017-03-29 02:02 PM
Remap depends on AFIO clock being enabled
F1 design remaps multiple pins related to the TIM at once, make sure those don't conflict with other uses of those other pins.
Not digging through Cube/HAL stuff, sorry.
2017-03-29 03:04 PM
i can't solve it.
2017-03-30 08:10 AM
i just want to know that's my personally problem or Stm32Cubemx HAl problem ??
2017-03-30 12:08 PM
I think you get to own it until you can demonstrate otherwise.
Could be the hardware/board you haven't described. Does the same code work on an STM3210-EVAL board?
You'll need to come up with a more definitive reason why/where it 'crashed'.
2017-03-31 01:52 PM
thank you
i solve my problem and now my project work fineby the following1- i uninstall hal Stm32Cubemx .2 - download st std standard peripherals library and it's work fine .