I2C3 library is not working in ARM compiler

mikroC, mikroBasic and mikroPascal for PRO ARM® MCUs, supporting STM32, Tiva, Kinetis, & CEC devices
Post Reply
Author
Message
n_vikranth
Posts: 35
Joined: 11 Jan 2012 15:06

I2C3 library is not working in ARM compiler

#1 Post by n_vikranth » 22 May 2019 14:32

I2C1 & I2C2 is working but I2C3 is not working, showing as
1869 324 Undeclared identifier 'I2C3_Start' in expression
Attachments
Capture.PNG
Capture.PNG (39.48 KiB) Viewed 3956 times

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: I2C3 library is not working in ARM compiler

#2 Post by stefan.filipovic » 23 May 2019 08:47

Hi,

We need to know which MCU you were using here, so we can reproduce the same behavior.

Kind regards,
Stefan Filipović

n_vikranth
Posts: 35
Joined: 11 Jan 2012 15:06

Re: I2C3 library is not working in ARM compiler

#3 Post by n_vikranth » 27 Jun 2019 14:20

STM32F207VG

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: I2C3 library is not working in ARM compiler

#4 Post by stefan.filipovic » 28 Jun 2019 17:22

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,
Stefan Filipović

n_vikranth
Posts: 35
Joined: 11 Jan 2012 15:06

Re: I2C3 library is not working in ARM compiler

#5 Post by n_vikranth » 01 Jul 2019 11:22

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

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: I2C3 library is not working in ARM compiler

#6 Post by stefan.filipovic » 01 Jul 2019 11:59

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,
Stefan Filipović

n_vikranth
Posts: 35
Joined: 11 Jan 2012 15:06

Re: I2C3 library is not working in ARM compiler

#7 Post by n_vikranth » 01 Jul 2019 14:22

Its has both TIM2_CH1 and TIM2_ETR function in that pin image file attached.
Attachments
Timer 2.PNG
Timer 2.PNG (91.02 KiB) Viewed 3875 times

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: I2C3 library is not working in ARM compiler

#8 Post by stefan.filipovic » 02 Jul 2019 15:00

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,
Stefan Filipović

Post Reply

Return to “ARM PRO Compilers”