Search results

  1. D

    UART half-duplex WeAct STM32F411 - working only when ST Link V2 is connected

    Hi Martaine, I'm sorry I'm so late with the answer, it was crazy busy last week ... Please see attached picture. The board is a WeAct STM32F411CEU ** Red wires - are supplies and signals from/to strain gauges ( HX711 ) - that works fine ** Half Duplex UART * Green, Black, White - are the...
  2. D

    UART half-duplex WeAct STM32F411 - working only when ST Link V2 is connected

    It seems it is related to electronics. The MCU sends just a byte 0x0A. I put the osciloscope probes and uart decoder and can show some good full messages but then only shows part of this byte - usually the beginning of the 8 bits. ( 0x0A = 01010000 ) it would send ... 010000 or even the first 4...
  3. D

    UART half-duplex WeAct STM32F411 - working only when ST Link V2 is connected

    Hei there, Is there anyone can help with some hints? Or did I miss to provide some information?
  4. D

    UART half-duplex WeAct STM32F411 - working only when ST Link V2 is connected

    Hi there, I am working on a joystick and using a Winwing F-16 Viper grip that sends button status through a half-duplex 230400 baud rate connection. STM32 sends 0x0A then the grip responds with 8 bytes, My issue is that it only works when ST Link V2 is connected. I have: PA9 as TX/RX pin added...
  5. D

    Inductive load issue (?) makes MCU go hard fault

    I'm getting back here just to say thanks to all that helped me. My controller is woking fine since. A friend saw it so I had to make another one and give it to him. Had to make even a short tutorial ;) A short video with the controller at work. Thanks,
  6. D

    Inductive load issue (?) makes MCU go hard fault

    Some update on my progress ... again first thanks a lot for the useful info ... alone I would have need a month to get to this point. I'm in running tests since 3h with no fails. We may succeed to resolve the issues :D What I've done is: - I farther shortened all power supply wires 220Vac to...
  7. D

    Inductive load issue (?) makes MCU go hard fault

    That is an idea to recover from the fault ... BMP180 data sheet says: Thanks for providing this reference as well the once in the previouse posts ... very useful in the future as well ... * But there is another alternative - add a STM32G03 ( 26x18mm ) connect the BMP180 to it and setup a...
  8. D

    Inductive load issue (?) makes MCU go hard fault

    Some feedback after all these changes... I changed the code so that I've checked i2c comm's with OLED and BMP180 every ~ 1 sec's using the function HAL_I2C_IsDeviceReady( ... ) . It still does not works fine, but now the MCU does not goes in hard fault - I think that change of the power...
  9. D

    Inductive load issue (?) makes MCU go hard fault

    So, I got a PC osciloscope Hantek6022BE. I connected the controller to CubeIDE so I capture what hard fault occures I changed the 5V powersupply with a better one, I remved 3V3 stab and supplied the MCU on 5V point, I changed power supply wiring with thicker and shorter wires. Made one GND...
  10. D

    Inductive load issue (?) makes MCU go hard fault

    Thanks for the links and information. I think still this is a simple control layout ... basically willing to control one relay with a NPN transitor. I told in a previous post - there are no issues if I do not connect the motor to the relay. For safety I'll add a 470uF capacitor between + side...
  11. D

    Inductive load issue (?) makes MCU go hard fault

    I appreciate your feedback. I have to tell I thought I missunderstand some basics... . It's a CPU board controlling a relay that switches a motor on/off ... Personally I thought this has been solved (or resolved ) at modules (boards) level (long time ago) so I may have not selected the right...
  12. D

    Inductive load issue (?) makes MCU go hard fault

    Thanks for your help, I do supply the circuit side of the relay coil and transistor from 5V. Do you suggest is better I should supply from 3.3V ? I will have to purchase an oscilloscope to perform these tests Yes the CPU halts, it goes into a hard fault loop (function). I can test later today...
  13. D

    Inductive load issue (?) makes MCU go hard fault

    Hello, I'm new on this forum, I could not think where to ask support, so I just googled "electronics forums" ... I hope I got in the right spot. I'm not expert electronics engineer although I'm a CNC/Robots integration engineer. In our job we do not do electronics but rather we connect and...
Top