Winarm & Crossworks

OP #1174516
Hi ,
    Using winarm I tested my touchscreen driver.In touchscreen interface
I used a onchip adc (AD0 and AD1). Its working well.
    But when I port this code on crossworks Its not working properly.
Adc readings are varing automatically. when I touch to touchscreen it
gives some wrong reading and when i realease my touch it also gives some
readings.

please tell me if is ther any changes required in prototype definition
or any in crossworks.

or what may be the issue when same files are working well in winarm and
not working in crossworks.

Its really serious problem for me.

thanks in advance
Moderator #1174517
Amit Chatre wrote:
> Hi ,
>     Using winarm I tested my touchscreen driver.In touchscreen interface
> I used a onchip adc (AD0 and AD1). Its working well.
>     But when I port this code on crossworks Its not working properly.
> Adc readings are varing automatically. when I touch to touchscreen it
> gives some wrong reading and when i realease my touch it also gives some
> readings.
First check the versions of the GNU-tools used by Crossworks. Maybe it's
just an optimization-issue which did not show up with older tools (as
maybe in WinARM). Check for missing volatiles and correct handling of
IRQs (setup, handlers). Check that the compiler-options passed by the
Crossworks-IDE to the GNU-tools (arm-*-gcc...) are the same as with your
standalone-build. Check if the generated linker-script from Crossworks
leads to the same memory-layout as the one from the standalone-build
(map-file).

> please tell me if is ther any changes required in prototype definition
> or any in crossworks.
Sorry, I do not understand this questions but may not be able to help
anyway since I do not have Crossworks. Since Crossworks is a commercial
product: did you ask Rowley's support?

> or what may be the issue when same files are working well in winarm and
> not working in crossworks.
If nothing helps look into the disassemblies (generate with objdump)
from both builds and check for differences.
OP #1174518
Martin Thomas wrote:
> Amit Chatre wrote:
>> Hi ,
>>     Using winarm I tested my touchscreen driver.In touchscreen interface
>> I used a onchip adc (AD0 and AD1). Its working well.
>>     But when I port this code on crossworks Its not working properly.
>> Adc readings are varing automatically. when I touch to touchscreen it
>> gives some wrong reading and when i realease my touch it also gives some
>> readings.
> First check the versions of the GNU-tools used by Crossworks. Maybe it's

GNU-tool version is 3.4.4 & I used adc in polling mode only.
Even I have not added any compiler option it just work on default
settings.

> just an optimization-issue which did not show up with older tools (as
> maybe in WinARM). Check for missing volatiles and correct handling of
> IRQs (setup, handlers). Check that the compiler-options passed by the
> Crossworks-IDE to the GNU-tools (arm-*-gcc...) are the same as with your
> standalone-build. Check if the generated linker-script from Crossworks
> leads to the same memory-layout as the one from the standalone-build
> (map-file).

>
>> please tell me if is ther any changes required in prototype definition
>> or any in crossworks.
> Sorry, I do not understand this questions but may not be able to help
> anyway since I do not have Crossworks. Since Crossworks is a commercial
> product: did you ask Rowley's support?
>
?

>> or what may be the issue when same files are working well in winarm and
>> not working in crossworks.
> If nothing helps look into the disassemblies (generate with objdump)
Is winarm generates the disassembly code?if yes please tell me the way,
how to generate disassemblies?
> from both builds and check for differences.
Moderator #1174519
>...
> Is winarm generates the disassembly code?if yes please tell me the way,
> how to generate disassemblies?
>...
As already mentioned: use objdump
(arm-elf-objdump/arm-none-eabi-objdump).  I don't know the needed
settings for the Crossworks-IDE. If you are using a makefile based on
one of my WinARM templates the disassembly is generated as file with
extension .lss (as with the WinAVR sample-makefiles).

Reply

A question of your own? This thread is over 17 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.