xl345 test rig is available...probably still set up from I2C testing
Problems with SPI and AXDL345
(20 posts) (5 voices)-
Posted 5 years ago #
-
I'm now using libmaple included with v0.0.7, but I was using v0.0.6 with some of the updates from github.
Posted 5 years ago # -
hey crenn,
I managed to fry one xl345 I had last night so I couldn't actually test it, but I did look at the SPI signals coming out of both SPI1 and SPI2 on a logic analyzer and they appear to be correct, so I'm not sure why it doesn't work on SPI1.
My initial guess might be that the powerup/startup sequence on the XL345 may be confused by the led pin from the bootloader? I'm pretty sure the GPIO pins are set as input floating at reset, so perhaps noise on those lines are triggering /CS or SCK and confusing the xl345? Without another xl345 I'm not sure I can help much more.
Posted 5 years ago # -
I have a 15 second delay from bootloader switching to running flash and when the program does anything, maybe I'll initialise the SPI and pins before using that delay.
Posted 5 years ago # -
Can you use debugger for hard test ? Try it and you know all aspects of communication (or use simplest device like usbee.com to view protocol - it's very easy to DIY)
like this
http://akb77.com/g/files/media/1.jpgPosted 5 years ago #
Reply
You must log in to post.