How I can do to make complete data can be transmitted ?. Because sometimes not transmitted by completo.Ver figure and program
Your data rate relatively low with respect to the rest of code in loop,
so at first blush I thought maybe you are over writing Tx buffer. But
then I see it is a blocking call.
Looking at system tab of .cydwr file I see you have CMSIS library
checked off and a heap size of 256 bytes, stack of 1000. Maybe increase
heap size a little due to use of the library and sprintf.
Also the data buffer produced is 9 chars + a NULL to terminate string,
But Tx buffer set to 8 bytes, needs to be 10 I would think.
Everything I did and nothing
I see in the terminal window baud rate detected as 110K ? I thought
the project baud rate was a lot less. If its 110K you might try a lower
Also look with scope at signaling, make sure its RS232 levels and relatively
Additionally look at clock accuracy in your clock chain to the UART to make
sure your accuracy will tolerate the baud rate you are shooting for.
This is for PSOC 1 but principles apply -
Print buffer needs to be at least 12 (forgot \n\r), so why not use 20.
I would suggest to put the line
into the infinite loop, thus waiting every cycle for a valid result.
Suggested did everything and nothing
please upload current project
upload current project
how much RAM is being used for stack and heap, (I mean it is ACTUALLY used, not being assigned for ). Any one has any idea how we can get the information.
heap size and stack size the problem is the example given in a single channel use two channels of ADC might this affect me heap size and stack sizeheap size and stack size
Heap is used by sprintf(), stack usually uncritical when >= 0x0400 as you specified.
I have currently no access to lab to check code, but I presume that the problem is on PC side. You may try (what I wanted to check) to use a different terminal program, preferrably PuTTY.