Periodic delay reading analog inputs with C, will PRUs solve it and is it worth it?

Hi Jeff

I have it open on my PC in gmail I’ll send you a link to your personal email. Strange stuff going on in my Yahoo client. And searching the group on Google group’s took me a few tries to find this so no your not crazy Jeff. Key words seem important I’d imagine this group’s archive is huge. Give me 5 minutes and check your email. I’m at the point where I can’t offer much help without doing some actual work with CCS and JTAG mainly as a refresher for myself

Cheers

Mark

No, the last sync of the classic BeagleBoard group ran 18 days ago.
Jason is still Beta Testing the other smaller "Beagle" community
sections before the main channel get's fully enabled.. Give it a few
more weeks. :wink:

Regards,

Sorry Chrome browser on windows this works for me

https://groups.google.com/g/beagleboard/c/-WlvGEaqrKU/m/EatslVHvCwAJ

Hi Jeff

I have it open on my PC in gmail I’ll send you a link to your personal email. Strange stuff going on in my Yahoo client. And searching the group on Google group’s took me a few tries to find this so no your not crazy Jeff. Key words seem important I’d imagine this group’s archive is huge. Give me 5 minutes and check your email. I’m at the point where I can’t offer much help without doing some actual work with CCS and JTAG mainly as a refresher for myself

Cheers

Mark

Dennis - It was just an example that, for me, made it clearer to me the relationship between A/D channels and steps. This isn’t something we’re doing in this application.

WC

<<I have CCS installed on my Windows 10 machine and started working through TI’s PRU Hands On Labs. Unfortunately, the very first one doesn’t <<work because their document is written for CCS running on Linux. Step 6 says to delete the linker file and add it back with Project->Add Files but <<that’s grayed out. I’ve asked TI about that.

FYI
I just successfully built a simple PRU example in CCS on win 8 following TI’s PRU Hands On Labs
All kinds of examples including complete ADC code following the guide I was not able to import the RPMsg adavanced ccs projects I found
They even have ARM RTOS to PRU RPMsg(stoked)

may try that with a later version of CCS on win 10

Now the fun part
Choosing a board ( I have BB white or black or am335x EVM) actually finding the power cords and then choosing one of 3 jtags I own (USB JTAG on the target over is sweet g FTDI USB Hi-Speed Devices to a JTAG TAP
and single stepping through source code and setting breakpoints
I cant wait the guide even discussed stopping Linux from hosing jtag

The Docs are very good

The time I spent I learned alot about the Linker cmd file layout and understand the exact address and memory map of PRU I stopped short of generating a map file

I couldnt even imagine putting around manually loading pru code from Linux big time waster

Uhmm TI says if you are using a new chip CCS is highly recommended they also punted on VM machine support but its documented for 32 bit windows using Virtualbox and Ubuntu 14.04 or 18.04 LTS that shelves that for my win 10 box
BUT
I think its time to turn this brand new Windoze 10 laptop into a REAL workstation a dual Boot Ubuntu native install
hmm seems like a hassle I could build TI RTOS on win10 maybe do both
So many choices very happy with documention I have found on E2E

Im expecting jtag on pru redirects print commands to a CCS window but why do that when you can examine and watch variables if CCS/JTAG supports a trace buffer I will be in Hog heaven find out tommorrow.

Anyway Linux is not required for CCS and its slow and inferior to Windows 10 version

Mark

Hi Mark,

you’re the master of reversed order! You want to code a main loop before IO is working. You want to CCS/JTAG variables before your first LOC is running. Did you ever finish a project?

When a subsystem is off (not clocked) the PRU can still read or write its registers. Readings are always zero and writings go to Nirvana, no error message, no exeption. How should a debugger help in this case?

TJF I Dont agree and neither do companies that have sold 10k products that sounds finished to me

unfortunately CCS doesnt support Basic language so I can see why your worried and I wish you the best of luck getting libpruio inluded in the kernel sincerely.

Linux is great I just dont use it for hard realtime I an in line with TI marketing see below link. The reason the PRU is there is to allow linux as a gateway and hard realtime is done on the PRU. The original poster’s project IS NOT hard REAL Time perhaps you can help him get his project working on ARM since thats all you understand.

Ensuring real-time predictability

https://www.ti.com/lit/pdf/spry264

The fact that TI also supports QNX , Intergrity and Nucleeus see here https://www.ti.com/tool/TMDSSK3358
shows TI knows what real customers want besides Linux

I wont insult you like you attempted to do to me as I consider the source someone who does not develop just pays for solutions you have zero credibility.

Anyway my code is up and running and for the group I will offer another path the AM335X has touch screen and onboard FTDI jtag and isntructions for using CCS on it and Beagle Bone Black. Add up the cost of a JTAG and touch screen its actually reasonable its here

https://www.ti.com/lit/ug/sprw236b/sprw236b.pdf

I repeat again from TI a great company with great engineers read this its actually related to the posters original question unlike this angry uncalled for post . who you want to believe Texas Instrumentr or TJF?

BTW Rproc and RPMsg is supported by TI in Linux kernel and TI RTTOS its also documented well not Doxygen comments lifted from code

Some real latencies and exact access times in block diagram no snake oil

https://www.ti.com/lit/ug/sprw236b/sprw236b.pdf

CCS/JTAG is an option not for everyone but recommended for board bring up you know the real work that engineers do… not some bean counter who doesn’t actually do the work

The user can make his own choices I’m just trying to be helpful

Mark

Hi Mark,

let me first point out that this discussion isn’t in my mother tongue. Sometimes I read your statements several times still not understanding what exactly you mean.

Hello Thomas

My experience is not only way

We pick the processor then the tools ( RTOS,JTAG. Compiler/ IDE if the stuff doesn’t work or if vendor’s don’t support properly we don’t use their product( I determine this usually). Like you I expect answers :cowboy_hat_face:

So pick chip, OS then architecture then FINALLY from Hardware System’s engineer document IO is assigned and documented in table and layed out in board

Low level Coder starts pin muxing coding and Interrupt and drivers. Application is divided in to tasks or threads by software architect at same time

I do board support so JTAG for me is something I insist on. ( New hardware).

I like IDE one that allows RTOS awareness Greenhills has one of the Best I have used CCS maybe a dozen time’s projects used their DSP

I am familiar with CCS but have worked where you build by command line and make files.

These are huge fortune 200 companies so money is no problems for tools.

One big Medical company my title was tool’s software. I played around. I’m a mercenary hired gun. If I don’t like their approach and they lie or waste my time I tactfully explain bad ideas.

A few times I know there design approach will fail I mention to them at beginning then I do what I’m told. then it fails they get angry :rofl:

What’s a$$ backwards to you is ( your last email) is normal.

For what you do linux makes sense buy hardware don’t need JTAG or CCS.

here in lies the flaw when you use free software the approach to IPC may be less than ideal but getting it fixed no one cares with an RTOS it costs $50K you get support and attention. or Else

In open source you get ignored and runaround in circles and your support is this group which isn’t support.

This approach is for hobbyists with big dreams and no budget.

I will say many jobs are using Linux I see them daily doesn’t mean I have to. There are free alternative but why bother if Linux works for you and this IPC is flawed you have my attention.

This is another part of my job. Improve RTOS supplied BSP driver’s add new ones and find the crap that’s not hard real time flawed.

An example Green Hill’s Integrity BSP for omapl138 had examples code of IPC between ARM and DSP given to customer as I mentioned the PhD design fast queues didn’t use it improved it made it fast like what your doing.

Now TI had driver’s and code and .h files and Green Hills had their own .c .h files doing same thing.

I think TI did custom first stage loader not sure.
It did what about and mlo does on Linux but much better.

There’s no one way to design thing’s perhaps you can share what’s flawed in Rpmsg in details if that’s true so you don’t get sued call it RP Don’t Worky nice.:rofl::pinching_hand: and bring attention to it’s limitations. You sound like smart Guy maybe it’s true.

In closing these dev board’s or hobby boards serve a purpose. The EVM ones the HW design was very good but I have issues with long term support I’m not going to mention in this group ( poor practice) the early .org boards by Gerald very nice he’s gone.

The open source community won’t support or don’t care about JTAG at least in this group but TI does.
You really have no choices in this group beyond Linux.

Barebones and RTOS on these boards isn’t a concern on this group so I’m wasting my time but it’s sometimes good reading. BTW good luck even if you demonstrate this IPC isn’t ideal because that’s not the Agenda here.

It’s marketing getting student to Love Linux and this board.

Unfortunately that’s not the Real world not ever be used in Missles,Satellites or air.

Boeing and Lockheed have the best engineering in United States. Both of these company uses TI DSP chips they don’t use Linux my friend.

Linux is good but not a fix all for everything and getting ignored is something big company won’t tolerate just the hobbyists they have no choices the dire hard open source will save the world fanatic are attracted to all the glamour like sheep.

Then one day they show up in this group posting it don’t Worky help me LoL :laughing:

Great group it’s focus is easy building of mainstream linux and keep buying more boards.

What’s the next board coming? Was nice when Gerald was onboard nice guy very talented and always had time for questions you see the best engineer don’t feel threatened by questions and are willing to help there’s some exception some of the best are over worked micro managed by manager’s who have no technical skill and want to advance in company. Good engineer’s leave those environments.

Mark

Here’s a job they used to use TI chips but I see they now use NXP. I like NXP chips and the support is good they have ARM based chips this old old Freescale architecture.

Linux support

Job Ad

embedded system OS device drivers
Software development experience with designs featuring modern ARM SoC packages (e.g. Board support packages, driver development, and/or JTAG Emulation)
Software development experience with the NXP i.MX SoC family is desirable
Development experience with the Linux OS is desirable
Ability to interpret hardware schematics, circuit designs, and datasheets
Proficiency with C, C++
Proficiency with multi-threaded, multi-core design and/or real-time operating systems

My message here is if you can’t get answers from a vendor buy from someone else who listens.

This assumes you have some leverage and buy chips in quantity.

Again this forum is good for hobbyists the problem is these hobbyists go to TI E2E forum asking for source code for proprietary software and have zero intention of buying chips in bulk.

These are same low caliber engineers who come to this group with a board and Free Linux asking questions like.

It no works kindly revert to me a solution :money_mouth_face::crazy_face::face_with_hand_over_mouth::thinking:

They want CCS and JTAG on resume perhaps you can hire them on next project they use Linux because it’s free. Only one problem you need to train them at work and pay them too. They also use this group for training purposes they demand solution’s, tutorial and source code.

Uhmm Okay I go back to documenting issues I finding on Eval boards I purchased and wasting time on tool’s that are deprecated so I can waste my time in this group educating on tool’s that are needed by hiring manager but not on resumes.

Maybe Walter will need help on CCS but doubtful at least I’m aware of the state of development

Mark