Search found 333 matches

by v8dave
Sun May 02, 2010 1:13 am
Forum: NetBurner Software
Topic: Quadrature input with the eTPU
Replies: 5
Views: 3523

Re: Quadrature input with the eTPU

It's working.

I finally figured out that the standard build does not include quadrature as part of the eTPU so I went to the Freescale website and created my own custom eTPU build and now it works!!

Excellent!

Dave...
by v8dave
Sun May 02, 2010 1:01 am
Forum: NetBurner Software
Topic: Rebuilding the system with new eTPU functions
Replies: 1
Views: 1998

Rebuilding the system with new eTPU functions

Hi all, I have worked out that the Quadrature is not actually built into my standard setup so I have used the code generator on the Freescale website to create an eTPU configuration that matches my setup. I have copied the neccessary files to the eTPU directory, making sure I add any Netburner code ...
by v8dave
Sat May 01, 2010 2:45 am
Forum: NetBurner Software
Topic: Quadrature input with the eTPU
Replies: 5
Views: 3523

Re: Quadrature input with the eTPU

It would appear that the Quadrature decoder is not included with the NNDK set that gets loaded into the eTPU.

There is another set for this but I see that it does not support UART and I need both UART and QD in the same set.!!


Off to do some more digging.

Dave...
by v8dave
Sat May 01, 2010 1:08 am
Forum: NetBurner Software
Topic: Quadrature input with the eTPU
Replies: 5
Views: 3523

Re: Quadrature input with the eTPU

Hi Walter, I sorted the crash. I made the usual mistake with pointers and passed in the value instead of a pointer to it. Oops. Still not getting any counts but that might be the configuration. Maybe you can help with this. This is what I have for config. The encoder is 30ppr. fs_etpu_qd_init(GPIO_E...
by v8dave
Thu Apr 29, 2010 1:21 am
Forum: NetBurner Software
Topic: Quadrature input with the eTPU
Replies: 5
Views: 3523

Re: Quadrature input with the eTPU

OK, been doing some debugging and getting something strange in this function call. int24_t fs_etpu_qd_get_pc( uint8_t channel_primary) { return(fs_etpu_get_chan_local_24s(channel_primary, FS_ETPU_QD_PC_OFFSET)); } The call to fs_etpu_get_chan_local_24s does return, but when this function goes to ret...
by v8dave
Wed Apr 28, 2010 11:03 pm
Forum: NetBurner's Eclipse IDE
Topic: NetBurner Device Library build error
Replies: 10
Views: 10446

Re: NetBurner Device Library build error

Actually, I can still build my main application with the release version and debug into the code but it would be nice to have this working properly.

Dave...
by v8dave
Wed Apr 28, 2010 10:46 pm
Forum: NetBurner's Eclipse IDE
Topic: NetBurner Device Library build error
Replies: 10
Views: 10446

Re: NetBurner Device Library build error

I have no classes within this build as it is C source only. There is no referrence to any DEBUG function or filename of that type either.

It also reports that there is a clash in the file name, yet the debug directory never even gets created before the error appears.

Dave...
by v8dave
Wed Apr 28, 2010 10:38 pm
Forum: NetBurner Software
Topic: Quadrature input with the eTPU
Replies: 5
Views: 3523

Quadrature input with the eTPU

Has anyone here worked with the quadrature input on the eTPU of the MOD5234? I have a panel mounted rotary encoder that generates 30 pulse per rev and I can see the input pins on the device clocking as I turn the knob. The issue I have is in setting up and reading the eTPU for QD input. I use the fo...
by v8dave
Tue Apr 27, 2010 11:04 am
Forum: NetBurner Software
Topic: Strange build error
Replies: 1
Views: 1833

Re: Strange build error

Rats!! It was the file name.

It was simply a .c file so it was being treated as a C file.

Once I changed it to .cpp it compiles perfectly as C++.!

Dave...
by v8dave
Tue Apr 27, 2010 10:45 am
Forum: NetBurner Software
Topic: Strange build error
Replies: 1
Views: 1833

Strange build error

I get the following error on build and I can't see what I am missing. C:\nburn\include/pins.h:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PinIO' I also get this error in the main code when I try to use the PINS class. ..\touchdrv.c:335: error: 'J2' undeclared (first use in th...