Hello. I would like to ask help from you people that are more experienced in electronics.
I will present first the situation and then the problem. Even if you dont have experience with the micros or boards described in the situation please read the problem because I suspect that it is purely a electronics problem in general.
I have a STM32 board (that works with 3.3V) and a CC3000 shield (Wifi shield) https://learn.sparkfun.com/tutorials/cc3000-hookup-guide?_ga=1.84372252.442459916.1462925819
I also have an Arduino Uno (works with 5V). When I connect the arduino to the shield (or the breakout) (and use its libraries) it works without problems
When I connect the STM32 nucleo to the shield, it does not work.
I have identified the problem to be in the INT (interrupt) pin of the shield.
When there is no oscilloscope it prints "1". However when I probe the pin with the oscilloscope it prints "0".
Why this could be happening? A friend suggested that maybe there are some unstabilities in the shield, some open drain, and that I should put some pull up or pull down resistor somewhere. He mentions something about CMOS (stuff that I havent been able to learn well yet)
Any idea why this could be happening. Any help, advice , comment or pointer will be greatly appreciated
----------------
The rest of this post is just for reference. and it points at another strange thing that is happening.
I thought that the INT pin never changed therefore being on an infinite loop, but neither the infinite loop or going out of the loop happens. The program just dies there.
So I am suspecting it is more of an electronics problem than a software one.
I will present first the situation and then the problem. Even if you dont have experience with the micros or boards described in the situation please read the problem because I suspect that it is purely a electronics problem in general.
- The symptoms
- The situation
I have a STM32 board (that works with 3.3V) and a CC3000 shield (Wifi shield) https://learn.sparkfun.com/tutorials/cc3000-hookup-guide?_ga=1.84372252.442459916.1462925819
I also have an Arduino Uno (works with 5V). When I connect the arduino to the shield (or the breakout) (and use its libraries) it works without problems
When I connect the STM32 nucleo to the shield, it does not work.
I have identified the problem to be in the INT (interrupt) pin of the shield.
- The problem
Code:
pinvalue= pin.getValue();
printf("%d",pinvalue);
Why this could be happening? A friend suggested that maybe there are some unstabilities in the shield, some open drain, and that I should put some pull up or pull down resistor somewhere. He mentions something about CMOS (stuff that I havent been able to learn well yet)
Any idea why this could be happening. Any help, advice , comment or pointer will be greatly appreciated
----------------
The rest of this post is just for reference. and it points at another strange thing that is happening.
- More info
Code:
while(spi_irq_state != 0)
{
spi_irq_state=_spi.wlan_irq_read();
printf("*"); //<-------GETS STUCKED HERE!!!
}
printf("\n OUT\n");
So I am suspecting it is more of an electronics problem than a software one.