Nucleo-F410RB DAC hardwired to a (green) LED ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-18 12:59 PM
Friendly greetings !
i had found, ordered and canceled the board with the perfect MCU.
- M4
- ADC
- DAC
- DSP
- And more, but I really wanted that DSP and DAC
- I install STM32CubeMX on my Mac M1 (with some troubles at first, but it works).
- I select the board I just ordered.
- Let the software do its stuff and then the DAC configuration is in RED in the "pinout & configuration" panel because it conflict with GPIO PA5.
- GPIO PA5 have the user label "LD2 [Green LED]"
I'm flabbergasted. This is ridiculous, right ? why would I want a 1MS 12Bit DAC on a led ?
Despite my best effort browsing the documentation, as a beginner to the STM ecosystem, I understand that it's hardwired to PA5:
Table 9. STM32F410x8/B pin definitions, page 36/143 of the STM32F410x8 STM32F410xB datasheet.
Is the PA5 really hardwired to a (green) led on this board ?
Is there something I can do to use the DAC ?
Can the pinout be changed ?
Is there another M4 board in a < 100 euro price range with DAC & DSP ?
(i also ordered an Adafruit board at the same time with a microchip mcu in order to try their circuit python thing, but I would like to have a STM board too )
Thank you.
- Labels:
-
DAC
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-18 1:17 PM
> Is the PA5 really hardwired to a (green) led on this board ?
Yes, it looks like. Cf. board schematics https://www.st.com/en/evaluation-tools/nucleo-f410rb.html#cad-resources
> Is there something I can do to use the DAC ?
Yes, here is a solder bridge SB21 which you could open, i.e. remove the zero Ohm link on the bottom side.
> Can the pinout be changed ?
Not for the DAC. You can remove the LED GPIO function in CubeMX and then configure the DAC output.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-18 1:33 PM
>>Is the PA5 really hardwired to a (green) led on this board ?
All the boards has schematics, see "CAD Resources" on the product page
https://www.st.com/en/evaluation-tools/nucleo-f410rb.html#cad-resources
https://www.st.com/resource/en/schematic_pack/nucleo_64pins_sch.zip
PA5 is exposed at the D13 pin of the ARDUINO rail.
Some F4 had 2x DAC
>>I'm flabbergasted. This is ridiculous, right ? why would I want a 1MS 12Bit DAC on a led ?
Higher pin count devices afford more options and freedom.
What you want is not what the next guy wants.
TBH a lot of design choices in these parts seem to have been made in meeting rooms with high CO2 levels. So a lot of awkward, inflexible and unhelpful choices. There's very little "dog fooding" in large orgs, so often people making the most critical design choices aren't those who are impacted by them.
>>Is there something I can do to use the DAC ? Can the pinout be changed ?
Do you possess a soldering iron? These things can be modified, especially if you look at the schematic and identify the pins/nodes the signals go through. Float off parts, or cut traces.
>>Is there another M4 board in a < 100 euro price range with DAC & DSP ?
Aren't there a raft of NUCLEO's in the sub 30 USD/EURO range
Look critically at the schematics.
>>DSP
It has some routines, instructions and some math support
Some of the H7 have an FPU that can do double (64-bit) floats. All the ARM FPU lack the sort of transcendental functions of the Intel ones.
The G4 has CORDIC support
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-18 1:34 PM
Look with CubeMX at STM32G474RE or the smaller STM32G431RB Nucleo boards as a possible alternative.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-18 2:12 PM
thank you for the additional info. I didn't notice the D13 pin, I got stuck at the CubeMX stage.
I ordered the MC based barebone M4 board from adafruit, and will probably order the STM version of the board in the future.
This CORDIC thing looks both confusing and interesting. it certainly is an original solution (It probably exist elsewhere but it's the first time I see this way of doing trigonometry)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-18 2:13 PM
Yup, thx :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-19 2:38 AM
You can une your board without change.
The output of the DAC goes directly from PA5 to CN5 pin 6 so you can use it. The only side effect will be that the LED will reflect the level generated by the DAC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-19 5:09 AM
Given the relatively low output current of DAC, even with buffer on (which limits its voltage range), I'd open the SB as KnarfB said in his first reply.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-19 5:33 AM
You are right. I should have read the datasheet more carefully...
