Hello friends, I'm trying to learn embed. The target MCU is STM32g431.
I set up a simple diagram. A pulse generator to PC6 (onboard LED) and PA10. In hardware i connected PA10 and PA1. PA1 is the ADC2 output, ADC is trigger by Tim1_trgo2, then finally ADC reading is send to PA4 where my LED is connected.
when I run this in HIL with "sync target to this block" enabled , nothing shows in plot not even the CPU usage (sometimes target not respond error), without the sync target I see PC6 led blink but not the wired led (I tested the led on the same port using the GPIO block only and it worked, wired led is healthy) . The error happens only when I do the ADC route.
These are the relevant screenshots
Things I tried -
- Different PWM speed
- Different Embed time step and target interface sample rate.
- Enabled the execute on interrupt option.
- Restarting embed and force reset the MCU
Please help me. I have been banging my head with all the AI chatbots and Embed Docs but cannot find a solution. I'm still a beginner in this field so please excuse me if anything seems illogical 😄