brook has joined #beagle
Shadyman has joined #beagle
vagrantc has joined #beagle
darkapex has quit [Ping timeout: 240 seconds]
buzzmarshall has quit [Quit: Konversation terminated!]
darkapex has joined #beagle
Siegurd has joined #beagle
darkapex has quit [Remote host closed the connection]
darkapex has joined #beagle
vagrantc has quit [Quit: leaving]
<zmatt> Siegurd: setting ADC_CLKDIV to zero is forbidden
<zmatt> iirc it should be set to produce a 3 MHz clock, I'd need to check the clkdiv value for that
<Siegurd> This is my code that gives me ~140kHz ADC reading frequency. https://pastebin.com/9ha9CiWf
rob_w has joined #beagle
<Siegurd> When I change the ADC_CLKDIV value from 0 to 1, the ADC reading frequency is divided by 2 and becomes 70kHz. So I thought this was a working solution
Shadyman has quit [Quit: Leaving.]
otisolsen70 has joined #beagle
<zmatt> see the comments in adc.dtsi regarding how the configuration affects the sample rate
<zmatt> Siegurd: minimum value permitted for clkdiv is 7
<zmatt> (resulting in 24 MHz / ( 7 + 1 ) = 3 MHz adc clock)
<Siegurd> Yep. Setting ADC_CLKDIV to 7 gives 200KHz F
<Siegurd> Should I use ADC_TSC.STEPENABLE_bit.STEP1 = 1 in a while loop for ADC channel 5 continious reading or before?
florian_kc has joined #beagle
florian_kc is now known as florian
ft has quit [Quit: leaving]
<zmatt> uhh normally you don't need to touch STEPENABLE after initialization
renrelkha has quit [Quit: bye]
renrelkha has joined #beagle
<Siegurd> Can I create array: uint16_t ADC[20000]; in PRU to send it to ARM via RPMsg?
<Siegurd> Or should I use Shared Memory to PRU interact with ARM?
brook has quit [Remote host closed the connection]
brook has joined #beagle
brook_ has joined #beagle
<dinuxbg> Siegurd: RPMsg has something like 512 byte limit per transaction. Either you need to send your array in chunks, or use shared memory.
brook has quit [Ping timeout: 246 seconds]
buzzmarshall has joined #beagle
rob_w has quit [Remote host closed the connection]
<Siegurd> @dinuxbg Are there any exapmles how to write and read shared memory data from PRU and userspace?
<Siegurd> I found this example https://markayoder.github.io/PRUCookbook/05blocks/blocks.html but there is only PRU side of shared memory
brook_ has quit [Remote host closed the connection]
vagrantc has joined #beagle
brook has joined #beagle
<Siegurd> can pru_rpmsg_send() be used without pru_rpmsg_receive()?
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981_c has quit [Ping timeout: 255 seconds]
djinni has quit [Quit: Leaving]
ft has joined #beagle
darkapex has quit [Ping timeout: 240 seconds]
darkapex has joined #beagle
djinni has joined #beagle
florian has quit [Killed (NickServ (GHOST command used by florian_kc!~florian@dynamic-093-132-095-131.93.132.pool.telefonica.de))]
florian_kc has joined #beagle
darkapex has quit [Ping timeout: 240 seconds]
otisolsen70 has quit [Quit: Leaving]
darkapex has joined #beagle
brook_ has joined #beagle
brook_ has quit [Read error: Connection reset by peer]
brook has quit [Ping timeout: 258 seconds]
Siegurd has quit [Read error: Connection reset by peer]
brook has joined #beagle
vagrantc has quit [Ping timeout: 240 seconds]