Yeah , found it and now it works perfectly fine.
thanks
Search found 10 matches
- Tue Aug 24, 2021 6:49 pm
- Forum: ChibiOS/RT
- Topic: STM32F407 I2C not Acknowledging
- Replies: 12
- Views: 11444
- Tue Aug 24, 2021 9:33 am
- Forum: ChibiOS/RT
- Topic: STM32F407 I2C not Acknowledging
- Replies: 12
- Views: 11444
Re: STM32F407 I2C not Acknowledging
I can't find this macro in hal_pal.h and hal_pal.c.
Do I have to define this macro PAL_STM32_OTYPE_OPENDRAIN in the header file of hal_pal.h???
Or this macro is already defined somewhere and I just have to make it TRUE.
These are my lines dor configuring the GPIO pins for stm32f407 discovery at ...
Do I have to define this macro PAL_STM32_OTYPE_OPENDRAIN in the header file of hal_pal.h???
Or this macro is already defined somewhere and I just have to make it TRUE.
These are my lines dor configuring the GPIO pins for stm32f407 discovery at ...
- Tue Aug 24, 2021 7:20 am
- Forum: ChibiOS/RT
- Topic: STM32F407 I2C not Acknowledging
- Replies: 12
- Views: 11444
Re: STM32F407 I2C not Acknowledging
where is this macro defined???
- Tue Aug 17, 2021 11:21 am
- Forum: ChibiOS/RT
- Topic: STM32F407 I2C not Acknowledging
- Replies: 12
- Views: 11444
Re: STM32F407 I2C not Acknowledging
Well, i2cstart() is called, it is not visible in the pic you can checkout main.c from git repo which I shared.
And when I enable the Debug assertion in chconf.h, I got following thing
WhatsApp Image 2021-08-17 at 15.50.27.jpeg
does this mean my i2c clock is not ser properly??
what I can ...
And when I enable the Debug assertion in chconf.h, I got following thing
WhatsApp Image 2021-08-17 at 15.50.27.jpeg
does this mean my i2c clock is not ser properly??
what I can ...
- Tue Aug 17, 2021 7:49 am
- Forum: ChibiOS/RT
- Topic: STM32F407 I2C not Acknowledging
- Replies: 12
- Views: 11444
Re: STM32F407 I2C not Acknowledging
What I mark out just know is that in logic analyzer output, as you can see
after the start signal both SCL and SDA lines are kept low for a period of time,
can that be the reason ????
after the start signal both SCL and SDA lines are kept low for a period of time,
can that be the reason ????
- Tue Aug 17, 2021 7:47 am
- Forum: ChibiOS/RT
- Topic: STM32F407 I2C not Acknowledging
- Replies: 12
- Views: 11444
Re: STM32F407 I2C not Acknowledging
I know and have checked that thing, as you can see in the logic analyzer,
MAG I2C 7 bit slave address is 0b0001101
and that is what I am sending from code and its reflected in Logic Analyzer output.
I even tried with another I2C slave device, but it every time shows this, I2C slave address not Ack ...
MAG I2C 7 bit slave address is 0b0001101
and that is what I am sending from code and its reflected in Logic Analyzer output.
I even tried with another I2C slave device, but it every time shows this, I2C slave address not Ack ...
- Tue Aug 17, 2021 7:13 am
- Forum: ChibiOS/RT
- Topic: STM32F407 I2C not Acknowledging
- Replies: 12
- Views: 11444
STM32F407 I2C not Acknowledging
I have written a simple I2C Code for stm32f407 using the chibios HAL for interfacing mag QMC5883.
It's a Basic Single thread code, just trying to understand the Chibios HAL API for different peripherals.
Code is this: m
But on running the code, it always gives Error +4, meaning Slave address Not ...
It's a Basic Single thread code, just trying to understand the Chibios HAL API for different peripherals.
Code is this: m
But on running the code, it always gives Error +4, meaning Slave address Not ...
- Wed Jul 21, 2021 6:32 pm
- Forum: ChibiOS/RT
- Topic: Threads Debugging in GDB and Chibistudio
- Replies: 5
- Views: 7069
Re: Threads Debugging in GDB and Chibistudio
Yeah, correct and I too have done and tried that.
So then when u connect to gdb via CLI and list the threads by info threads command, did it show u all the threads as it shows in chibistudio debug window.
So then when u connect to gdb via CLI and list the threads by info threads command, did it show u all the threads as it shows in chibistudio debug window.
- Wed Jul 21, 2021 5:12 am
- Forum: ChibiOS/RT
- Topic: Threads Debugging in GDB and Chibistudio
- Replies: 5
- Views: 7069
Re: Threads Debugging in GDB and Chibistudio
Here I have attached the images again
WhatsApp Image 2021-07-20 at 23.13.55.jpeg
WhatsApp Image 2021-07-20 at 23.14.17.jpeg
Yeah I am using GDB and Openocd both for debugging, I started the openocd session via Chibistudio only
like this Screenshot 2021-07-21 093910.png and then just launching ...
WhatsApp Image 2021-07-20 at 23.13.55.jpeg
WhatsApp Image 2021-07-20 at 23.14.17.jpeg
Yeah I am using GDB and Openocd both for debugging, I started the openocd session via Chibistudio only
like this Screenshot 2021-07-21 093910.png and then just launching ...
- Tue Jul 20, 2021 6:47 pm
- Forum: ChibiOS/RT
- Topic: Threads Debugging in GDB and Chibistudio
- Replies: 5
- Views: 7069
Threads Debugging in GDB and Chibistudio
Hi to all, I am new to Chibistudio and debugging its threads.
Now the thing is that when I use the debug window of chibistudio, it lists all the threads which are running as shown in this image.
https://drive.google.com/file/d/1d3lbmk0mrfJBvGdp3Lm5mf7_J07dqkeM/view?usp=sharing
And when ...
Now the thing is that when I use the debug window of chibistudio, it lists all the threads which are running as shown in this image.
https://drive.google.com/file/d/1d3lbmk0mrfJBvGdp3Lm5mf7_J07dqkeM/view?usp=sharing
And when ...