I2C1 & I2C2 is working but I2C3 is not working, showing as
1869 324 Undeclared identifier 'I2C3_Start' in expression
I2C3 library is not working in ARM compiler
-
- Posts: 35
- Joined: 11 Jan 2012 15:06
I2C3 library is not working in ARM compiler
- Attachments
-
- Capture.PNG (39.48 KiB) Viewed 3956 times
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: I2C3 library is not working in ARM compiler
Hi,
We need to know which MCU you were using here, so we can reproduce the same behavior.
Kind regards,
We need to know which MCU you were using here, so we can reproduce the same behavior.
Kind regards,
Stefan Filipović
-
- Posts: 35
- Joined: 11 Jan 2012 15:06
Re: I2C3 library is not working in ARM compiler
STM32F207VG
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: I2C3 library is not working in ARM compiler
Hi,
It seems there's a mistake in the STM32F207VG.mlk file.
Please press Ctrl+Alt+M to open up mlk file and search for __Lib_I2C_12, just replace this with __Lib_I2C_123, save and restart the compiler. After that, press Alt+F9 to rebuild all sources.
Please let me know does the I2C3 works after this modification.
I apologize for the inconvenience caused by this.
Kind regards,
It seems there's a mistake in the STM32F207VG.mlk file.
Please press Ctrl+Alt+M to open up mlk file and search for __Lib_I2C_12, just replace this with __Lib_I2C_123, save and restart the compiler. After that, press Alt+F9 to rebuild all sources.
Please let me know does the I2C3 works after this modification.
I apologize for the inconvenience caused by this.
Kind regards,
Stefan Filipović
-
- Posts: 35
- Joined: 11 Jan 2012 15:06
Re: I2C3 library is not working in ARM compiler
Tested and found ok, like wise problem in PWM library mentioned below.
PWM Alternate pin is not working in STM32F207VG
PWM_TIM2_Start(_PWM_CHANNEL1, &_GPIO_MODULE_TIM2_CH1_PA15);
IS MISSING in MikroC Pro for ARM Compiler.
I cant use this pin for PWM function but there is PWM in that Pin(PA15).
PWM Alternate pin is not working in STM32F207VG
PWM_TIM2_Start(_PWM_CHANNEL1, &_GPIO_MODULE_TIM2_CH1_PA15);
IS MISSING in MikroC Pro for ARM Compiler.
I cant use this pin for PWM function but there is PWM in that Pin(PA15).
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: I2C3 library is not working in ARM compiler
Hi,
Unfortunately, our ARM compilers cannot handle external trigger input (ETR) yet.
This is the reason why the TIM2_CH1_ETR alternate function of PA15 is not defined in the defs file.
I apologize for the inconvenience caused by this. I will forward this to our developers.
Kind regards,
Unfortunately, our ARM compilers cannot handle external trigger input (ETR) yet.
This is the reason why the TIM2_CH1_ETR alternate function of PA15 is not defined in the defs file.
I apologize for the inconvenience caused by this. I will forward this to our developers.
Kind regards,
Stefan Filipović
-
- Posts: 35
- Joined: 11 Jan 2012 15:06
Re: I2C3 library is not working in ARM compiler
Its has both TIM2_CH1 and TIM2_ETR function in that pin image file attached.
- Attachments
-
- Timer 2.PNG (91.02 KiB) Viewed 3875 times
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: I2C3 library is not working in ARM compiler
Hi,
I've answered you on your other forum post, so we can continue our correspondence there:
viewtopic.php?f=224&t=74862
Kind regards,
I've answered you on your other forum post, so we can continue our correspondence there:
viewtopic.php?f=224&t=74862
Kind regards,
Stefan Filipović