Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@beaglebone:~# ./devmem2 0x4A0028D6 h
- /dev/mem opened.
- Memory mapped at address 0xb6fe2000.
- Value at address 0x4A0028D6 (0xb6fe28d6): 0x8
- root@beaglebone:~# ./devmem2 0x4A0028D4 h
- /dev/mem opened.
- Memory mapped at address 0xb6f3c000.
- Value at address 0x4A0028D4 (0xb6f3c8d4): 0x7
- # Now writing the values:
- root@beaglebone:~# ./devmem2 0x4A0028D4 h 0x67
- /dev/mem opened.
- Memory mapped at address 0xb6f00000.
- Value at address 0x4A0028D4 (0xb6f008d4): 0x7
- Written 0x67; readback 0x67
- root@beaglebone:~# ./devmem2 0x4A0028D6 h 0x68
- /dev/mem opened.
- Memory mapped at address 0xb6f11000.
- Value at address 0x4A0028D6 (0xb6f118d6): 0x8
- Written 0x68; readback 0x68
- # MII RT Part:
- root@beaglebone:~# ./devmem2 0x4B22602C w 0xB1
- /dev/mem opened.
- Memory mapped at address 0xb6f29000.
- Value at address 0x4B22602C (0xb6f2902c): 0x0
- Written 0xB1; readback 0x1
- ##
- root@beaglebone:~# ./devmem2 0x4B220028 w 0x26
- /dev/mem opened.
- Memory mapped at address 0xb6f86000.
- Value at address 0x4B220028 (0xb6f86028): 0x0
- Written 0x26; readback 0x0
- root@beaglebone:~# ./devmem2 0x4B220028 w 0x27
- /dev/mem opened.
- Memory mapped at address 0xb6f76000.
- Value at address 0x4B220028 (0xb6f76028): 0x0
- Written 0x27; readback 0x0
- ##
- root@beaglebone:~# ./devmem2 0x4B220408 w 0x9
- /dev/mem opened.
- Memory mapped at address 0xb6f40000.
- Value at address 0x4B220408 (0xb6f40408): 0x0
- Written 0x9; readback 0x9
- ## Finally run the example
- root@beaglebone:~/testBela# make PROJECT=sinetone CL=-v run AT= BELA_USE_DEFINE=BELA_USE_POLL
- Automatically detected PROJECT_TYPE: cpp
- Running on __buster__ with Xenomai __3__
- BOARD IS_AM572x? 1
- systemctl stop bela_startup || true
- Failed to stop bela_startup.service: Unit bela_startup.service not loaded.
- PID=`grep bela-audio /proc/xenomai/sched/stat | cut -d " " -f 5 | sed s/\s//g`; if [ -z $PID ]; then [ false = true ] || echo "No process to kill"; else [ false = true ] || echo "Killing old Bela process $PID"; kill -2 $PID; sleep 0.2; kill -9 $PID 2> /dev/null; fi; screen -X -S Bela quit > /dev/null; exit 0;
- No process to kill
- killall scsynth 2>/dev/null& killall sclang 2>/dev/null& true
- echo "Running" /root/testBela/projects/sinetone/sinetone -v
- Running /root/testBela/projects/sinetone/sinetone -v
- sync& cd /root/testBela/projects/sinetone && /root/testBela/projects/sinetone/sinetone -v
- Xenomai not explicitly inited
- Xenomai is going to be inited by us
- Bela_initAudio()
- Starting with period size 16 ;analog enabled
- DAC level 99999997952.000000 dB; ADC level 99999997952.000000 dB; headphone level 99999997952.000000 dB
- could not open EEPROM for reading
- Detected hardware: Bela
- Hardware specified at the command line: NoHardware
- Hardware specified in the user's belaconfig: NoHardware
- Hardware to be used: Bela
- Codec mode: 0 ()
- fifoFactor: 1
- core audioFrames: 16
- Project name: sinetone
- PRU memory mapped to ARM:
- digital: 0xb6309000 0xb6309400
- audio: 0xb630a000 0xb630a040 0xb630a080 0xb630a0c0
- analog: 0xb6fd0000 0xb6fd0080 0xb6fd0100 0xb6fd0180
- analog offset: 0xcc8000 0xcc8080 0xcc8100 0xcc8180
- Bela_startAudio
- startAudioInilne
- AudioCodec parameters:
- slotSize: 16
- startingSlot: 0
- bitDelay: 0
- mclk: 2e+07
- samplingRate: 44100
- dualRate: 0
- tdmMode: 1
- bclk: 1
- wclk: 1
- MCLK: 20.0000 MHz, fs(ref): 44100.0000, P: 2, R: 1, J: 9, D: 317, Achieved Fs: 44100.097656 (err: 0.0002%),
- Mcasp parameters:
- inChannels: 2
- outChannels: 2
- inSerializers: {10}
- outSerializers: {11}
- numSlots: 2
- slotSize: 16
- dataSize: 16
- bitDelay: 0
- auxClkIn: 2e+07
- ahclkFreq: 2e+07
- ahclkIsInternal: 1
- wclkIsInternal: 0
- wclkIsWord: 0
- wclkFalling: 0
- externalSamplesRisingEdge: 0
- McaspConfig: error while setting input channels
- McaspConfig: error while setting output channels
- Mcasp registers:
- pdir: 0x08000000
- rmask: 0x0000ffff
- rfmt: 0x00008070
- afsrctl: 0x00000100
- aclkrctl: 0x00000000
- ahclkrctl: 0x00008000
- rtdm: 0x00000003
- xmask: 0x0000ffff
- xfmt: 0x00008074
- afsxctl: 0x00000100
- aclkxctl: 0x00000000
- ahclkxctl: 0x00008000
- xtdm: 0x00000003
- srctln: 0x00000000
- wfifoctl: 0x00010101
- rfifoctl: 0x00010101
- McaspConfig: error while setting input channels
- McaspConfig: error while setting output channels
- Using McASP->PRU irq
- Using McASP IRQ embedded PRU firmware
- Stopping PRU1_1
- Loading firmware into PRU1_1: /lib/firmware/am57xx-pru1_1-fw symlinked from /root/testBela/build/pru/pru_rtaudio_irq.out
- Starting PRU1_1
- _________________Audio Thread!
- audio frame 0, errorCode: 1
- PRU event loop timed out
- audio frame 16, errorCode: 1
- PRU event loop timed out
- audio frame 32, errorCode: 1
- PRU event loop timed out
- audio frame 48, errorCode: 1
- PRU event loop timed out
- audio frame 64, errorCode: 1
- PRU event loop timed out
- audio frame 80, errorCode: 1
- PRU event loop timed out
- audio frame 96, errorCode: 1
- PRU event loop timed out
- audio frame 112, errorCode: 1
- PRU event loop timed out
- audio frame 128, errorCode: 1
- PRU event loop timed out
- audio frame 144, errorCode: 1
- PRU event loop timed out
- ## And I get the UART logs as:
- [ 3795.568754] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.576249] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.583743] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.591238] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.598732] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.606227] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.613722] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.621217] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.628705] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.636199] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.643693] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.651190] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.658685] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.666188] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.673684] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.681177] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.688673] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.696166] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.703661] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.711157] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.718654] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.726148] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.733645] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.741141] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.748629] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.756125] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
- [ 3795.763620] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
- [ 3795.771116] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.778614] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.786108] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.793604] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.801099] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.808625] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.816112] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.823607] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.831103] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.838596] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.846091] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.853586] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.861082] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.868642] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.876178] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.883712] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.891231] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.898733] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.906232] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.913728] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.921223] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.928739] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.936250] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.943785] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.944204] pruss 4b200000.pruss: unconfigured system_events[63-0] = 00c00000,00000000
- [ 3795.951274] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.951298] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.959283] pruss 4b200000.pruss: unconfigured host_intr = 0x00000005
- [ 3795.966737] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3795.988162] remoteproc remoteproc5: stopped remote processor 4b238000.pru
- [ 3795.988173] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.002516] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.010013] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.017510] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.025004] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.032491] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.039985] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.047479] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.054974] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.062469] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.069964] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.077458] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.084952] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.092445] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.099939] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.107435] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.114928] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.122421] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.129914] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.137407] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.144900] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.152388] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.159882] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.167384] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.174881] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.182374] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.189869] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.197363] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.204856] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
- [ 3796.212348] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement