PocketBeagle driving VS1063
Posted: Sun 2020-02-23 9:33
Hello all,
This is my first time posting, so please bear with me as i'm just diving into some uncharted waters.
I have a PocketBeagle connected to an Adafruit Audio Breakout (https://www.adafruit.com/product/1381). I had a manufacturing facility replace the stock VS1053 with a VS1063 because I need the capability to record MP3 files. I used the same breakout with an Arduino Micro with success using Adafruit's libraries that are a part of the Arduino IDE, but I am trying to migrate to the PocketBeagle because I need to expand capabilities. I connected the SPI pins MOSI, MISO, CLK between the two boards, and am using GPIOs on the PocketBeagle to observe DREQ and XDCS and driving RESET and CS. I used the player1063.c example as a baseline checkout and implemented ReadSpiByte and WriteSpiByte and am failing the basic VSInitSoftware routine when I try to write the values 0xABAD and 0x7E57 to the SCI_AICTRL1 and SCI_AICTRL2. I am reading back 0xFFs constantly and I don't seem to understand why. I know this is a bit vague and I can post code, but before I do I thought I'd lay it out here first and see what you guys need of me. Sorry for the newbness of the question.
This is my first time posting, so please bear with me as i'm just diving into some uncharted waters.
I have a PocketBeagle connected to an Adafruit Audio Breakout (https://www.adafruit.com/product/1381). I had a manufacturing facility replace the stock VS1053 with a VS1063 because I need the capability to record MP3 files. I used the same breakout with an Arduino Micro with success using Adafruit's libraries that are a part of the Arduino IDE, but I am trying to migrate to the PocketBeagle because I need to expand capabilities. I connected the SPI pins MOSI, MISO, CLK between the two boards, and am using GPIOs on the PocketBeagle to observe DREQ and XDCS and driving RESET and CS. I used the player1063.c example as a baseline checkout and implemented ReadSpiByte and WriteSpiByte and am failing the basic VSInitSoftware routine when I try to write the values 0xABAD and 0x7E57 to the SCI_AICTRL1 and SCI_AICTRL2. I am reading back 0xFFs constantly and I don't seem to understand why. I know this is a bit vague and I can post code, but before I do I thought I'd lay it out here first and see what you guys need of me. Sorry for the newbness of the question.