ADC... again...

fred_from_france
Hi Everybody,
I get the code from mutzev (
http://www.friendlyarm.net/forum/topic/189?lang=en ), and i managed to
generate my executable that i transfer to the mini via activesync.

When i execute it, i got the following message from serial port :


Exception 'Data Abort' (4): Thread-Id=0448010e(pth=83af8b70),
Proc-Id=044700e6(pprc=8270b8c0) 'adc_dlg.exe',
VM-active=044700e6(pprc=8270b8c0) 'adc_dlg.exe'
PC=000113d8(adc_dlg.exe+0x000013d8) RA=0001146c(adc_dlg.exe+0x0000146c)
SP=001aee70, BVA=00330000
Exception 'Raised Exception' (-1): Thread-Id=0448010e(pth=83af8b70),
Proc-Id=00400002(pprc=82008308) 'NK.EXE', VM-active=044700e6(pprc=8270b8c0)
'adc_dlg.exe'
PC=c003bc10(k.coredll.dll+0x0001bc10) RA=802384c8(kernel.dll+0x000064c8)
SP=d344f3b8, BVA=ffffffff


What is wrong ? 
should i have an adc driver like gpio ? 
is it possible to access every registers in an user application ?
should i make a new nk.bin with the exe inside ???

Please could you give me advices ?
Fred

fred_from_france
I take example of FriendlyArm "AD-convert.exe" which is able to convert,
but seems not to have drivers... BUT, i look that in the platform.bib, the
file is set as "NK" ( for me as "kernel" application ). Does it means that
if i put my file in the bib file and regenerate nk.bin, it will work ?
Is it the principles of kernel/user mode ?????