STM32F103VCT6 UART to FTDI Interface issue - serial-port

ok guys, this is probably one of the most stupid things I have gotten stuck at so far but I have a problem.
I have an STM32F103VCT6 mcu, and I am trying to communicate over USART1, thats PA09 and PA10.
Tx line sends just fine to connected FTDI chip and all appears well on the computer terminal.
The problem is that the Rx IT on the stm wont fire when FTDI sends data.
Rx line PA10 is configured as GPIO_Mode_IN_FLOATING.
I have tried to change voltage levels of chip, still nothing.
The really funny thing is, if I connect the Rx and Tx of the stm, the interrupt works just fine.
If I connect the Rx line of the the stm to any other point on the board, it fires no problem (reading rubbish of course, but at least I know my firmware works)
I have stm, ftdi and computer all connected to common grounds so that shouldnt be an issue.
I have also confirmed a million times that my jumper cables are in good shape and nothing is broken.
Bottom line is I know its an electric problem that I just cant get my head around ... its just one of those days/things, so if anyone has struggled with the same issue or something similar please let me know how you solved this !!
Thanks alot guys

Related

Atmel SAMD21 microcontroller not making a USB port anymore

My custom board with Atmel SAMD21 microcontroller (same as Arduino MKR Zero) is not making a USB port since yesterday. The board was working fine before that.
Please suggest ways to resolve this issue. What are the possible reasons for such an issue?
Since reset is equivalent to powering the board ON and OFF which has not resolved the issue, can burning the bootloader again help?
Further information:
The board seems fine. It powers ON and OFF in the usual manner.
This problem with the USB port connection happened while I was trying to upload the code.
The USB pin connections on the board have been checked as well as tested with different USB wires.
Appreciate your help.
Solutions to the problem:
External Hardware Reset -- using a reset button (that I externally managed to solder) -- to get into bootloader mode and start the program from the beginning
Burning bootloader again may also work (theoretically) - I have not tried and tested it.
For detailed understanding - follow this post - https://forum.arduino.cc/t/atmel-samd21-microcontroller-not-making-a-usb-port-anymore/882504/5

Uploading program to teensy not working

i got a brand new Teensy 3.2 with the blinking LED programm on it.
When I now tried to upload another programm on the teensy, Arduino says:
Teensy did not respond to a USB-based request to automatically reboot.
Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch.
The automatically starting window of Teensy, doesn't give me a chance to (for example) reboot the Teensy as well, so something of the connection seems to be wrong or something, but what...
Even if I mannualy press the pushbutton, it's still not possible to upload something. Any ideas why?
I have encountered this problem twice. The first I tossed out the board. This time, when I power it, it runs the last program I burned on it, but when I try to program it again, the LED stops blinking and everything stops.
The claim that it might not be a data cable is not reasonable, because how can it stop the current program unless it was told to. I doubt very much that +5V can provide such commands.
I have tried different cables, different USB ports, rebooting my Linux box, reinstalling (twice), checking the pins on the Teensy and the cable... no clue.
It always boots up in the old app (I left the blinker running to indicate "liveness"). I had programmed a message to come out the hardware serial port. Could that have been the problem? Wait... Is there a way to set the baud rate on the USB? I wonder if that is the problem! --
Banner(void) {
Serial.begin(9600);
Serial1.begin(115200);
};
The example had me programming the USB serial! I bet that is the problem! Better yet, does anyone know what the protocol is for talking to USB serial commander?
Under Ubuntu 18.04 install this https://www.pjrc.com/teensy/49-teensy.rules file into /etc/udev/rules.d

avrdude : stk500_getsync not in sync:resp=0x87

I am using arduino uno r3 board and arduino 1.6.5 on windows 8. When Itried to upload my program on ATMEGA328 microcontroller it is showing:
avrdude:stk500_getsync not in sync:resp=0x87.
help me to solve this error
This boils down to 3 problems usually..
The bootload on the chip is missing (unlikely if you purchased the board from Arduino).
The serial connection between the arduino and the computer is disconnected or interrupted.
You've simply selected the wrong board type or port when programming, and thus the IDE is searching for a signal that the arduino isn't coming back with.
This problem is most likely due to option 3, however it can occur in odd situations especially on the Arduino Micro where the board does all USB comms on chip and can be flooded by main without an appropriate delay to the point it can't communicate with the IDE. However this is just most likely a bad board selection or a bad port selection.
I've tried many things but this worked for me. If you have a working Arduino lying around (in my case Uno) you can use it as an intermediate in-system programmer (ISP).
Follow this guide to first load the ISP sketch into your working Arduino.
Once you are done, for your non-working Arduino, select from the Tools > Programmer menu and choose Arduino as ISP, and set Board and Processor accordingly. To program choose Sketch > Upload using programmer.
Hope this works.
I think the reason that this work is that it will bypass the CH340/FTDI chip, and all those synchronization issue. Given that that is your problem.

esp8266 programme memory corruption

I programmed arduino sketch direct to ESP8266, then my code works fine. When I remove USB to power off the board, and then power it up again and inserting USB, my code is not working.
It seems like Esp8266 failing to read program memory or is there anything I am missing when I am powering up the board?
I am not sure, my board have issue or I am missing something.
Any one have faced this kind of issue before?
Those who will face this problem in future, actually my program memory was fine. I forgot remove Gnd pin from GPIO 0 after I programmed the esp8266.

Connecting two Arduinos via serial and using one to control the other

I'm a beginner with this stuff and I'm having a bit of a problem. I've tried searching for an answer and I'm possibly wording my search wrong, but I can't find anything to help me out.
I'm looking to connect two Arduino Unos via the TX RX ports, and connect a bend sensor to one and an LED to the other. I'm looking to make the LED fade up and down in relation to the bend sensor value. I've got my code working so I can do it all on the one Arduino, but most of the things I've found while searching have been related to passing single characters via the RX TX ports and using the Arduino to connect to other things that aren't other Arduinos.
Any help would be massively appreciated. Thanks.
you can use spi, or 2 wire!
here are some links:
spi - http://arduino.cc/en/Reference/SPI
wire - http://arduino.cc/en/Reference/Wire
wire might be more fitting for your situation?

Resources