hello i have a problem..
i using source at https://community.freescale.com/message/363679#363679 ///
Demo_eGUIv3_MQXv4_CWv10.3.pdf uploaded by petr .
ported by my project
at running, error at this line
d4d_low.c line:107 if(!D4D_LLD_TCH.D4DTCH_Init())
so i run debug mode / line by line, call stack is
d4dtch_cr_touch.c line:135
if(D4D_LLD_TCH_HW_CRTOUCH.D4DTCHHWCRTOUCH_MultiReadBytes(CRTCH_STATUS2, &status2, 1) != D4D_LLD_TCH_HW_CRTOUCH.COMM_OK)
is not matched. so inside if logic, deinit called and return 0;
dig more , MultiReadBytes code is excuted,
mqx_iic.c , line : 388 _lwsem_wait(&lock);
-> lwsem.c , line: 805 if (sem_ptr->VALID != LWSEM_VALID) is not matched. so MQX_INVALID_LWSEM is returned..
how can i fix this? help me
解決済! 解決策の投稿を見る。
UPDATE:
I had the crazy idea to change the I2C-Address to 0x4B, (the other one which can be set with a pin of the crtouch-chip). And...
...it worked. Allthough it should not, as the LCD-RGB should have the address 0x49. According to the LCD-RGB schematic, the addrsel-Pin is not connected at all. But I could not find anything about an internal pullup or something which would allow that.
FYI, I had a look with the scope at the I2C at the two Testpoints TP17 and TP18 (i think, next to the Pins 26 and 27 of the CRTouch-chip). The device gets correctly adressed with address 0x49, but does not acknowledge. SO i think it is a hardware fault, I hope the replacement will work.
Manuel
Any news on this? Having the same problem at the very same line of code;
The demo applications (HVAC for example) are not working either (Display works, but touch does not and so the demos are stuck at calibrating the touchscreen); is it a hardware fault?
no.. this problem is not solved......
UPDATE:
I had the crazy idea to change the I2C-Address to 0x4B, (the other one which can be set with a pin of the crtouch-chip). And...
...it worked. Allthough it should not, as the LCD-RGB should have the address 0x49. According to the LCD-RGB schematic, the addrsel-Pin is not connected at all. But I could not find anything about an internal pullup or something which would allow that.
FYI, I had a look with the scope at the I2C at the two Testpoints TP17 and TP18 (i think, next to the Pins 26 and 27 of the CRTouch-chip). The device gets correctly adressed with address 0x49, but does not acknowledge. SO i think it is a hardware fault, I hope the replacement will work.
Manuel
thx towerer.
your solution is worked
good.
thx.
hi,
Please check the video, this video shows how to run the project.
Have a great day,
Regards
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thx for helping.
but i already do process in video.
my problem is initialize touch driver in mqx...