hello! i am super new to the whole arduino ide in general. i have some embedded experience via classes i have taken, but it is limited when applied to the hardware i am working with.
in short: i am using a teensy 3.6 with an MPU9250 sparkfun breakout. i have attached a picture of the schematic that i am using as the setup. the picture is a crude teensy (with pin #s) and mpu in lt spice (should just be picture format). my goal is to acquire 1k samples/second (1kHz sample freq) and write it to a file on an sd card. i am aware that sd cards take quite a bit of time to open a file. to circumvent this i have attempted to use a ping pong buffer (probably crudely implemented) to write ~1k points, then dump the buffer onto the file on the sd card while simultaneously writing to the second buffer. somewhere in the program, the entire program hangs. i have used an oscilloscope and seen that when attempting to flip the GPIO pins, the pins stay high in the interrupt routine, and in the body of the main loop. i am quite perplexed and ANY help is appreciated! keep in mind i am not super well versed so any response will probably merit several follow up questions! thanks again! also, sorry for the lengthy post, simply wanted to detail all the issues as well as i could.
p.s. want to give a shout out to the person who wrote the code i have since been editing. unfortunately i did not get a name with the code and any documentation or trace has been lost (have not touched the code in a couple of semesters), BUT should you stumble upon this article, THANK YOU so much for the help thus far!
in short: i am using a teensy 3.6 with an MPU9250 sparkfun breakout. i have attached a picture of the schematic that i am using as the setup. the picture is a crude teensy (with pin #s) and mpu in lt spice (should just be picture format). my goal is to acquire 1k samples/second (1kHz sample freq) and write it to a file on an sd card. i am aware that sd cards take quite a bit of time to open a file. to circumvent this i have attempted to use a ping pong buffer (probably crudely implemented) to write ~1k points, then dump the buffer onto the file on the sd card while simultaneously writing to the second buffer. somewhere in the program, the entire program hangs. i have used an oscilloscope and seen that when attempting to flip the GPIO pins, the pins stay high in the interrupt routine, and in the body of the main loop. i am quite perplexed and ANY help is appreciated! keep in mind i am not super well versed so any response will probably merit several follow up questions! thanks again! also, sorry for the lengthy post, simply wanted to detail all the issues as well as i could.
p.s. want to give a shout out to the person who wrote the code i have since been editing. unfortunately i did not get a name with the code and any documentation or trace has been lost (have not touched the code in a couple of semesters), BUT should you stumble upon this article, THANK YOU so much for the help thus far!