Jump to content

STM32 F4 AIN problem


macsaif
 Share

Recommended Posts

I am using the STM32 core with NG. I am starting to have problem that sometimes the AIN on the STM board stopping to respond. When it stopped to work I have connected the notebook to check what can be the reason (SW or HW). I have checked the parameters of AIN with the show id AIN:1. In both cases (the AIN is working and AIN is not working) all the parameters are the same only the Value parameter is different (when it is not working the value is 0, if it works, tha value is changing delending on the input). One important thing:

When the AIN stops to work, the standard restart does not help (reset from the MIOS studio)  When I am switching off the whole controller for few seconds the AIN mostly starts to work. 

Any idea? 

Frank

Link to comment
Share on other sites

Sorry, I see F4 in the title now. What version of _NG? If it's a recent version try an old one and vice versa.

Could be a software bug.

From a hardware perspective it might be that your analogue voltages are out of range? I.e., greater than 3V? If the MCU freezes it might have run out of memory and needs a hard reset. But reset from MIOS Studio typically doesn't work especially on Windows, or at least a restart of MIOS Studio is required.

Personally I don't see the merit in using AINSER and AIN (MCU). The offboard ADCs are much better with far less jitter than the onboard ones.

Link to comment
Share on other sites

Thabk for reply. 

Few answers:

1. The MPU doue not freeze because all other functions are running. 

2. These AINs are working in switch mode, so they should be enough for that task. 

3. There can be problem with the voltage of the input signal, because I am using th source which is coming from another STM32 board which is running MBKB. But in the last 2 years I had no any problem with it. 

4. I am using the last (I think not released) version of MBNG which is modified by TK. (sysex handling as text in NGR, and modified Loadsnapshot which is not forwarding the values). But I have not recognized these problems earlier. The modification has been done approx. 2 weeks ago. 

Frank

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...