CodeWarrior USB TAP speed (and __pmem)

cancel
Showing results for 
Search instead for 
Did you mean: 

CodeWarrior USB TAP speed (and __pmem)

482 Views
miroslavmartise
Contributor I

Hello everybody,

I have got two question: firstly I haverecently  bought CW USB TAP to program and debug some DSCs, mainly 56F8037, but it seems the speed of this device is rather small. Before I began to use USB TAP, I had worked with "normal" LPT programmer and I can say it was much faster than USB TAP. Could somebody give me an advice how to improve its speed? I use CW 8.3 and Win 7. Thank's a lot.

And secondly I have got  a problem with constants which are located in program memory. I use prefix __pmem:

Example:

__pmem char Font6x8[] =

{

     0x00, 0x08, ................................................

};

__pmem char Font7x8[] =

{

     0x12, 0x15,................................................

};

and the pointer:

__pmem char *FontPtr[] = {Font6x8, Font7x8};

The problem is I cannot access some constant I wish via pointer:

temp = *(FontPtr[1] + 2);

In variable temp is still value of 0xFF.

If I use 56F8037 it works fine, but with 56F8367 in kit 56F8367EVME not. I am angry with it :-).

Have a nice day.

Mimar

Labels (1)
0 Kudos
1 Reply

102 Views
Ben
Senior Contributor I

Dear Mimar

I have a lot of problems with the 56F8367 memory usage and variables value (problems similar to the one you have).

Check the memory map and make sure that temp is not defined out of the RAM .

Check the linker command file for location of all memory segments to make sure they are defined correctly.

I really can't understand why the PE works good with other chips but cause errors with this one.

Ben

0 Kudos