Re: [beagleboard] Re: TI PRU_ADC_onChip example
wrote: Hi Cheng The tarball has step by step instructions for that example you mentioned in initial post.you need that when starting out. Why? because few in this group use SDK. Unfortunately you have no choice to ask questions here. When code doesn't work on ARM you will get advise to use cookbook and Debian or even worse use libpruio😉😣 in this group then you will really be confused. You asked howto to run sdk examples on Debian linux Your problems are 1) the instructions say use Ubuntu to install the SDK and build PRU code and Linux Application code in the SDK ie it's built on a Ubuntu LTS PC a specific version of Ubuntu as well. 2) the ARM example code you build to talk to PRU is designed for SDK Linux not Debian #1 above may be possible to overcome . BUT instead you could just take the SDK ARM example binary and the PRU firmware binary if it exist in SDK binary directory and put them on the ARM. What's in SDK directories how the example works step by step are described in SDK pdf.( I sent a link to tarball docs start there read how to install apSDK and host requirements ) #2Jeff built both sperm and PRU binary in his SDK and put them on Debian and said it it worked on Debian I don't know where Jeff installed his SDK but I doubt he put it on the BBB I don't recommend that. No body seems to understand my instructions in this group ive been told so if its not clear ask. Its all described in SDK Lastly I repeat Your going to be told don't use SDK use cookbook or libpruio🤔 and Debian on ARM if you try this SDK example and it doesn't work it's already started your having problems asking questions correct? If you got an account on E2E They would say why aren't you using SDK Linux we don't support Debian Understand? You have nowhere to go you can't get in E2E Understand? I like the SDK myself but I did see Cookbook has similar RPM Message example and Marks documented that really well What happened there? Isn't there an RPMSG ADC example? Anyway you would not have any problems if you ran SDK linux with the code example you have and in theory it should work on Debian the differences are the SDK linux vs the Yocto SDK Linux maybe muxing I don't know. My am335x starter kit board i have at home came with SDK linux running on the ARM and my Beaglebone white I'm using with CCS has JTAG built in and has Ubuntu on the SD card I just pull it out. That's why I understand what's happening. I started out 5 years ago I tried Ubuntu on bone white followed this group's instructions it was easy then I bought EVM and learned Yocto SDK Linux building at that time if I had questions answers were in the SDK off tutorial and E2E forum would support me. Their board their SDK. Don't feel bad every month someone asks the same questions you did. they say "I found this PRU example in the SDK can I run this on Debian?" I say yes it will work what you are attempting. but I can't help you when Linux doesn't run your code and gets errors and when you ask for help in this group I expect you will be told use the Cookbook examples. Do yourself a favor make a choice again I give you 3 choices 1) install sdk on Ubuntu box build code for ARM and PRU use SDK Linux on SD card to test this example code. Or 2) use Debian and cookbook examples. Or best solution in my opinion 3) do #1 first get it working correctlybuy 2nd SD card put Debian on itthen try the binaries you build from #1 on Debian Everybody asks to mix both solutions your asking for trouble and wasted time trust me. Always Use the recommended linux host to build SDK or Debian and the SDK. To ignore instructions that describe host then ask for help is insane If you want grief use Fedora virtual machine on win 3 pc to build Debian and ask in this group why it doesn't work. You will get silence or be sent in 100 directions at once 😥🤣😄😀 Mark Sent from Yahoo Mail on Android On Fri, Apr 30, 2021 at 8:10 PM, Cheng Chen wrote: Hey Dennis, Thanks for the reply. It makes a lot sense for cross-compiler. Thanks for the explanation. I am pretty sure I am running on 4.19.x-ti kernel. uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo I don't have any problem running other PRU examples. I also noticed that the original firmware is not running at first. But once it is loaded, it seems ok. I tried creating /dev/rpmsg by using "echo hello > /dev/rpmsg_pru30" before running example code. But it would leads to program freeze. I am also exploring direct memory access method to save acquired values in shared memory, but I haven't got any results yet. I think I will investigate into the device tree issue as you suggested. Thanks! Regards,Cheng 在2021年4月30日星期五 UTC-4 下午8:45:57 写道: On Fri, 30 Apr 2021 13:09:02 -0700 (PDT), in gmane.comp.hardware.beagleboard.user Cheng Chen wrote: >My BBB wireless can compile pru code successfully because I installed >PRU_CGT compiler. But it is unable to c
Re: [beagleboard] Re: TI PRU_ADC_onChip example
Hi Cheng The tarball has step by step instructions for that example you mentioned in initial post.you need that when starting out. Why? because few in this group use SDK. Unfortunately you have no choice to ask questions here. When code doesn't work on ARM you will get advise to use cookbook and Debian or even worse use libpruio😉😣 in this group then you will really be confused. You asked howto to run sdk examples on Debian linux Your problems are 1) the instructions say use Ubuntu to install the SDK and build PRU code and Linux Application code in the SDK ie it's built on a Ubuntu LTS PC a specific version of Ubuntu as well. 2) the ARM example code you build to talk to PRU is designed for SDK Linux not Debian #1 above may be possible to overcome . BUT instead you could just take the SDK ARM example binary and the PRU firmware binary if it exist in SDK binary directory and put them on the ARM. What's in SDK directories how the example works step by step are described in SDK pdf.( I sent a link to tarball docs start there read how to install apSDK and host requirements ) #2Jeff built both sperm and PRU binary in his SDK and put them on Debian and said it it worked on Debian I don't know where Jeff installed his SDK but I doubt he put it on the BBB I don't recommend that. No body seems to understand my instructions in this group ive been told so if its not clear ask. Its all described in SDK Lastly I repeat Your going to be told don't use SDK use cookbook or libpruio🤔 and Debian on ARM if you try this SDK example and it doesn't work it's already started your having problems asking questions correct? If you got an account on E2E They would say why aren't you using SDK Linux we don't support Debian Understand? You have nowhere to go you can't get in E2E Understand? I like the SDK myself but I did see Cookbook has similar RPM Message example and Marks documented that really well What happened there? Isn't there an RPMSG ADC example? Anyway you would not have any problems if you ran SDK linux with the code example you have and in theory it should work on Debian the differences are the SDK linux vs the Yocto SDK Linux maybe muxing I don't know. My am335x starter kit board i have at home came with SDK linux running on the ARM and my Beaglebone white I'm using with CCS has JTAG built in and has Ubuntu on the SD card I just pull it out. That's why I understand what's happening. I started out 5 years ago I tried Ubuntu on bone white followed this group's instructions it was easy then I bought EVM and learned Yocto SDK Linux building at that time if I had questions answers were in the SDK off tutorial and E2E forum would support me. Their board their SDK. Don't feel bad every month someone asks the same questions you did. they say "I found this PRU example in the SDK can I run this on Debian?" I say yes it will work what you are attempting. but I can't help you when Linux doesn't run your code and gets errors and when you ask for help in this group I expect you will be told use the Cookbook examples. Do yourself a favor make a choice again I give you 3 choices 1) install sdk on Ubuntu box build code for ARM and PRU use SDK Linux on SD card to test this example code. Or 2) use Debian and cookbook examples. Or best solution in my opinion 3) do #1 first get it working correctlybuy 2nd SD card put Debian on itthen try the binaries you build from #1 on Debian Everybody asks to mix both solutions your asking for trouble and wasted time trust me. Always Use the recommended linux host to build SDK or Debian and the SDK. To ignore instructions that describe host then ask for help is insane If you want grief use Fedora virtual machine on win 3 pc to build Debian and ask in this group why it doesn't work. You will get silence or be sent in 100 directions at once 😥🤣😄😀 Mark Sent from Yahoo Mail on Android On Fri, Apr 30, 2021 at 8:10 PM, Cheng Chen wrote: Hey Dennis, Thanks for the reply. It makes a lot sense for cross-compiler. Thanks for the explanation. I am pretty sure I am running on 4.19.x-ti kernel. uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo I don't have any problem running other PRU examples. I also noticed that the original firmware is not running at first. But once it is loaded, it seems ok. I tried creating /dev/rpmsg by using "echo hello > /dev/rpmsg_pru30" before running example code. But it would leads to program freeze. I am also exploring direct memory access method to save acquired values in shared memory, but I haven't got any results yet. I think I will investigate into the device tree issue as you suggested. Thanks! Regards,Cheng 在2021年4月30日星期五 UTC-4 下午8:45:57 写道: On Fri, 30 Apr 2021 13:09:02 -0700 (PDT), in gmane.comp.hardware.beagleboard.user Cheng Chen wrote: >My BBB wireless can compile pru code successfully because I installed >PRU_CGT compiler. But it is unable to compile ARM