Closed jmchiappa closed 7 years ago
Hi Jean-Marc, I've made a pull request which fix compilation issue for firmata. https://github.com/stm32duino/Arduino_Core_STM32/pull/10 It need to be tested. Your feedback are welcome ;) Thanks
Hi Frédéric, Thank you for the fix. it compiles and links now. But it seems that something is broken in Uart Rx callback or IRQn, because my firmata client (PC side) application got the first character (Reset frame from firmware) but that's all. No other information is retrieved from my client.
you can test with this firmata client (no installation required) : http://www.firmata.org/wiki/Main_Page
Thank you again
Jean-Marc
PS : I'm trying to create an eclipse project from your package so that it would be easier to debug :-)
Thanks for the test. I will debug it tomorrow. I'm OOO today. To debug I'm using gdb through ST Link.
After checking the code, I think I have found the issue. In Boards.h: replace:
by
else the systemResetCallback() will reset pin as Digital IO
Note: I've updated the commit with this correction
@fpistm I confirm your modification fixes the problem of communication. It is OK with F4 but not with the others (L0, L4...). I'm on it.
I confirm that it doesn't work for L476RG. It's strange; some data is exchanged (200 bytes) then.. the communication failed for some mysterious reasons... (sorry for the late reply, I'm OoO too :-) ).
Some update, I've tried the updated version of the Firmata Arduino library. Same behavior except I saw the full list of pins for F429 with the firmata client you provide. I assume the numbers of pins could bring some issues. More over it seems there is an issue around the ADC management, probably link to the delta btw number of ADC pin available in the PinMap_ADC (20declared) vs the NUM_ANALOG_INPUTS (6) which represent the A0-A5.
Hi @jmchiappa, I'm currently working on this issue, that's why i've opened this issue https://github.com/stm32duino/Arduino_Core_STM32/issues/37 ~~I still have some bug with ADC but it's work better, I have some analog values now. When all will be corrected I will update the pull and probably make a pull to the firmata/arduino github.~~ Firmata is now ok on all variants. I need to perform some tests then I will do the pull request.
@jmchiappa ,
Firmata update done and tested on all variants.
@jmchiappa I would like to use Eclipse + GCC + STM32duino for development. Were you able to create an Eclipse project (mentioned above) that uses STM32duino with Eclipse + GCC? Can you provide instructions and/or pointers on getting this working?
Also you mentioned above you were using Eclipse for debugging your STM32duino based project with the Firmata library. What did you use for debugging (e.g. openOCD + GDB)?
I think your feedback and experience would be great for the STM32duino community knowledge base, as Eclipse is a much better tool for coding and debugging ARM projects.
Thanks you, Dion
Hi @diond31, have you take a look on the stm32duino forum? Theres a lot of discussion about eclipse and plugins: Debugging Arduino sketch with STM32 Nucleo in Eclipse .. works ! Getting Eclipse to work? A proper guide? And so on the ide section
Hi Frédéric,
I'm using intensively firmata sketch. I've upgraded with the latest package my arduino IDE. But now, the compilation fails for all MCU/Nucleo boards. Here is the log extracted from arduino's IDE (in french, sorry) targetting the STM32L053R8:
It seems that PeripheralPins.c is not evaluated before failing, even if you've declared
extern const PinMap PinMap_ADC[];
in PeripheralPins.hCould you kindly correct and release a patch quickly ? Thank you, Jean-Marc