• AVR Freaks

Hot!Harmony Adding Resistive Touch Panel with LCC .

Page: < 12 Showing page 2 of 2
Author
jtzeng
Super Member
  • Total Posts : 469
  • Reward points : 0
  • Joined: 2003/11/07 12:42:20
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/06 12:09:05 (permalink)
0
After you get conversion we can talk about calibration.
that should be another thread.
 

John Zigrang
JTZ Engineering, Inc.
#21
TS9
Super Member
  • Total Posts : 799
  • Reward points : 0
  • Joined: 2010/05/07 10:52:22
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/06 12:36:27 (permalink)
0
Code Not reached at Third Breakpoint .Exit_to_End .
Some Wrong In ADC configuration ...
Please check screenshots ..
post edited by TS9 - 2019/05/06 12:37:49

Attached Image(s)

#22
jtzeng
Super Member
  • Total Posts : 469
  • Reward points : 0
  • Joined: 2003/11/07 12:42:20
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/06 14:08:25 (permalink)
0
At this point it is figuring out why the Class1 is not working.
I would  re-start in a new thread:
H2.06 Resistive Touch Setup for Class1 Inputs
 
Post this issue in both Harmony and PIC32 forums.
I fount my Class2 from the PIC32 forum.
 
Your other option is to open a case with MicroChip and/or your local FAE.
Sorry I don't have a fix
 
 

John Zigrang
JTZ Engineering, Inc.
#23
TS9
Super Member
  • Total Posts : 799
  • Reward points : 0
  • Joined: 2010/05/07 10:52:22
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/07 00:37:09 (permalink)
0

Your other option is to open a case with MicroChip and/or your local FAE.
Sorry I don't have a fix

 
Thanks Zigrang... No Need to say sorry.. I appreciate your help . But this is unfortunate RTP didn't work. 
Can I you same pins as you used in your setup ? If you can share document or working code ?
I am  starting new thread as well posting ticket on Support Team..Let's See..
 
Thanks
 
#24
jtzeng
Super Member
  • Total Posts : 469
  • Reward points : 0
  • Joined: 2003/11/07 12:42:20
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/07 07:18:42 (permalink)
0
On your new post you need to give more information in the setup screen captures.
Not seeing everything.
my setup for touch is
X+   RB15   AN10
Y+   RB14   AN9
X-    RD15   GPIO this can be anywhere
Y-    RD14    GPIO  this can be anywhere
 

Attached Image(s)


John Zigrang
JTZ Engineering, Inc.
#25
jtzeng
Super Member
  • Total Posts : 469
  • Reward points : 0
  • Joined: 2003/11/07 12:42:20
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/07 08:01:31 (permalink)
0
In reading more on Class 1 I would like you to try changing Channel 0 & 1 to Trigger on Scan.
Use the same break points and see if you get to #3.
 
Also I have added a screen for initial cal setup.
 

Attached Image(s)


John Zigrang
JTZ Engineering, Inc.
#26
TS9
Super Member
  • Total Posts : 799
  • Reward points : 0
  • Joined: 2010/05/07 10:52:22
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/07 11:37:39 (permalink)
0

In reading more on Class 1 I would like you to try changing Channel 0 & 1 to Trigger on Scan.
Use the same break points and see if you get to #3.
Also I have added a screen for initial cal setup.

I have tried but not succeed .. I am waiting MCHP Support Ticket before changing hardware connection.
Thanks A lot...
 
#27
jtzeng
Super Member
  • Total Posts : 469
  • Reward points : 0
  • Joined: 2003/11/07 12:42:20
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/07 11:43:06 (permalink)
0
One last thing to try.  Put each CH back to Software Edge Triggered and un-check the scanning.
If I read this correct, when the software edge is issued both will convert at the same time.
 

John Zigrang
JTZ Engineering, Inc.
#28
TS9
Super Member
  • Total Posts : 799
  • Reward points : 0
  • Joined: 2010/05/07 10:52:22
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/07 11:46:32 (permalink)
0
 
jtzeng
One last thing to try.  Put each CH back to Software Edge Triggered and un-check the scanning.
If I read this correct, when the software edge is issued both will convert at the same time.
 




Ok.. Wait for few mins. I will check and update..
post edited by TS9 - 2019/05/07 11:47:59
#29
TS9
Super Member
  • Total Posts : 799
  • Reward points : 0
  • Joined: 2010/05/07 10:52:22
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/07 12:04:28 (permalink)
0
I have tried but MHC not even to generate corrector driver drv_touch_adc.c . So got below error.

"C:\Program Files (x86)\Microchip\xc32\v2.10\bin\xc32-gcc.exe" -g -D__DEBUG -D__MPLAB_DEBUGGER_ICD4=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM100 -ffunction-sections -O1 -I../src -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework -I../../../../../framework -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/bsp -Werror -Wall -MMD -MF build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/2110151058/sys_tmr.o.d -o build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/2110151058/sys_tmr.o ../../../../../framework/system/tmr/src/sys_tmr.c -DXPRJ_pic32mz_ef_sk_s1d_pictail_wqvga=pic32mz_ef_sk_s1d_pictail_wqvga -legacy-libc 
"C:\Program Files (x86)\Microchip\xc32\v2.10\bin\xc32-gcc.exe" -g -D__DEBUG -D__MPLAB_DEBUGGER_ICD4=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM100 -ffunction-sections -O1 -I../src -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework -I../../../../../framework -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/bsp -Werror -Wall -MMD -MF build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/1179893018/drv_touch_adc.o.d -o build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/1179893018/drv_touch_adc.o ../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c -DXPRJ_pic32mz_ef_sk_s1d_pictail_wqvga=pic32mz_ef_sk_s1d_pictail_wqvga -legacy-libc 
nbproject/Makefile-pic32mz_ef_sk_s1d_pictail_wqvga.mk:928: recipe for target 'build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/1179893018/drv_touch_adc.o' failed
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c: In function 'DRV_TOUCH_ADC_PositionDetect':
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:542:67: error: expected expression before ')' token
if ( !PLIB_ADCHS_AnalogInputDataIsReady(DRV_ADC_ID_1, ) )
^
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:547:74: error: expected expression before ')' token
(uint16_t) PLIB_ADCHS_AnalogInputResultGet(DRV_ADC_ID_1, )>>2 )
^
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:598:67: error: expected expression before ')' token
if ( !PLIB_ADCHS_AnalogInputDataIsReady(DRV_ADC_ID_1, ) )
^
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:604:74: error: expected expression before ')' token
(uint16_t) PLIB_ADCHS_AnalogInputResultGet(DRV_ADC_ID_1, )>>2)
^
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:636:67: error: expected expression before ')' token
if ( !PLIB_ADCHS_AnalogInputDataIsReady(DRV_ADC_ID_1, ) )
^
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:642:74: error: expected expression before ')' token
(uint16_t) PLIB_ADCHS_AnalogInputResultGet(DRV_ADC_ID_1, )>>2)
^
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:683:66: error: expected expression before ')' token
if (!PLIB_ADCHS_AnalogInputDataIsReady(DRV_ADC_ID_1, ))
^
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:687:77: error: expected expression before ')' token
temp = (uint16_t) PLIB_ADCHS_AnalogInputResultGet(DRV_ADC_ID_1, )>>2;
^
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:711:66: error: expected expression before ')' token
if (!PLIB_ADCHS_AnalogInputDataIsReady(DRV_ADC_ID_1, ))
^
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:716:77: error: expected expression before ')' token
temp = (uint16_t) PLIB_ADCHS_AnalogInputResultGet(DRV_ADC_ID_1, )>>2;
^
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:740:66: error: expected expression before ')' token
if (!PLIB_ADCHS_AnalogInputDataIsReady(DRV_ADC_ID_1, ))
^
../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/input/touch_adc/src/drv_touch_adc.c:746:74: error: expected expression before ')' token
(uint16_t) PLIB_ADCHS_AnalogInputResultGet(DRV_ADC_ID_1, )>>2 )
^
make[2]: *** [build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/1179893018/drv_touch_adc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
"C:\Program Files (x86)\Microchip\xc32\v2.10\bin\xc32-gcc.exe" -g -D__DEBUG -D__MPLAB_DEBUGGER_ICD4=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM100 -ffunction-sections -O1 -I../src -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework -I../../../../../framework -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/bsp -Werror -Wall -MMD -MF build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/426253641/jidctint.o.d -o build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/426253641/jidctint.o ../../../../../third_party/decoder/jidctint/src/jidctint.c -DXPRJ_pic32mz_ef_sk_s1d_pictail_wqvga=pic32mz_ef_sk_s1d_pictail_wqvga -legacy-libc 
"C:\Program Files (x86)\Microchip\xc32\v2.10\bin\xc32-gcc.exe" -g -D__DEBUG -D__MPLAB_DEBUGGER_ICD4=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM100 -ffunction-sections -O1 -I../src -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework -I../../../../../framework -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/bsp -Werror -Wall -MMD -MF build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/1978752353/drv_adc_static.o.d -o build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/1978752353/drv_adc_static.o ../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/adc/src/drv_adc_static.c -DXPRJ_pic32mz_ef_sk_s1d_pictail_wqvga=pic32mz_ef_sk_s1d_pictail_wqvga -legacy-libc 
"C:\Program Files (x86)\Microchip\xc32\v2.10\bin\xc32-gcc.exe" -g -D__DEBUG -D__MPLAB_DEBUGGER_ICD4=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM100 -ffunction-sections -O1 -I../src -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework -I../../../../../framework -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/bsp -Werror -Wall -MMD -MF build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/1281430894/drv_pmp_static.o.d -o build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/1281430894/drv_pmp_static.o ../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/pmp/src/drv_pmp_static.c -DXPRJ_pic32mz_ef_sk_s1d_pictail_wqvga=pic32mz_ef_sk_s1d_pictail_wqvga -legacy-libc 
"C:\Program Files (x86)\Microchip\xc32\v2.10\bin\xc32-gcc.exe" -g -D__DEBUG -D__MPLAB_DEBUGGER_ICD4=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM100 -ffunction-sections -O1 -I../src -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework -I../../../../../framework -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/bsp -Werror -Wall -MMD -MF build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/2024536424/drv_tmr_mapping.o.d -o build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/2024536424/drv_tmr_mapping.o ../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/tmr/src/drv_tmr_mapping.c -DXPRJ_pic32mz_ef_sk_s1d_pictail_wqvga=pic32mz_ef_sk_s1d_pictail_wqvga -legacy-libc 
"C:\Program Files (x86)\Microchip\xc32\v2.10\bin\xc32-gcc.exe" -g -D__DEBUG -D__MPLAB_DEBUGGER_ICD4=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM100 -ffunction-sections -O1 -I../src -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework -I../../../../../framework -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/bsp -Werror -Wall -MMD -MF build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/2024536424/drv_tmr_static.o.d -o build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/2024536424/drv_tmr_static.o ../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/driver/tmr/src/drv_tmr_static.c -DXPRJ_pic32mz_ef_sk_s1d_pictail_wqvga=pic32mz_ef_sk_s1d_pictail_wqvga -legacy-libc 
"C:\Program Files (x86)\Microchip\xc32\v2.10\bin\xc32-gcc.exe" -g -D__DEBUG -D__MPLAB_DEBUGGER_ICD4=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM100 -ffunction-sections -O1 -I../src -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework -I../../../../../framework -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/bsp -Werror -Wall -MMD -MF build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/968926553/drv_gfx_lcc_generic.o.d -o build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/968926553/drv_gfx_lcc_generic.o ../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework/gfx/driver/controller/lcc/drv_gfx_lcc_generic.c -DXPRJ_pic32mz_ef_sk_s1d_pictail_wqvga=pic32mz_ef_sk_s1d_pictail_wqvga -legacy-libc 
"C:\Program Files (x86)\Microchip\xc32\v2.10\bin\xc32-gcc.exe" -g -D__DEBUG -D__MPLAB_DEBUGGER_ICD4=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM100 -ffunction-sections -O1 -I../src -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/pic32mz_ef_sk_s1d_pictail_wqvga -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/framework -I../../../../../framework -I../src/system_config/pic32mz_ef_sk_s1d_pictail_wqvga/bsp -Werror -Wall -MMD -MF build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/493934858/lodepng.o.d -o build/pic32mz_ef_sk_s1d_pictail_wqvga/debug/_ext/493934858/lodepng.o ../../../../../third_party/decoder/lodepng/lodepng.c -DXPRJ_pic32mz_ef_sk_s1d_pictail_wqvga=pic32mz_ef_sk_s1d_pictail_wqvga -legacy-libc 
make[2]: Leaving directory 'C:/microchip/harmony/v2_06/apps/gfx/GFX_RTP_100_PIN/firmware/GFX_RTP_100.X'
nbproject/Makefile-pic32mz_ef_sk_s1d_pictail_wqvga.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/microchip/harmony/v2_06/apps/gfx/GFX_RTP_100_PIN/firmware/GFX_RTP_100.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

Attached Image(s)

#30
TS9
Super Member
  • Total Posts : 799
  • Reward points : 0
  • Joined: 2010/05/07 10:52:22
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/07 12:07:32 (permalink)
0
I have tried but MHC not even to generate correct driver drv_touch_adc.c . So got as above Msg#30
 
#31
jtzeng
Super Member
  • Total Posts : 469
  • Reward points : 0
  • Joined: 2003/11/07 12:42:20
  • Status: offline
Re: Harmony Adding Resistive Touch Panel with LCC . 2019/05/07 13:04:38 (permalink)
0
Should be Global_Software_Edge,  Not level.

John Zigrang
JTZ Engineering, Inc.
#32
Page: < 12 Showing page 2 of 2
Jump to:
© 2019 APG vNext Commercial Version 4.5