On Wednesday 13 January 2010, Spencer Oliver wrote:
> Øyvind Harboe wrote:
> >> Not really looked into it, but do not think it would be a problem.
> >> I have the src to the algo's, so will try building using arch=v6
I hope you mean "-march=armv6-m" ... ARM opcodes won't help!! :)
There's of course no rush on this, since the Cortex-M0 chips have
only barely appeared on the market (initially from NXP ... who as
you implied, hasn't supported OpenOCD yet).
But it would be easier on us, eventually, not to need separate
algorithm code for the M0 and M3 cores unless there's a compelling
reason to use the extra instructions in some case.
> > Uh? Are there some sources that are not in openocd repository??
>
> well the src is as such in openocd - cortex_m3_crc_code for example.
That's one of the most complicated examples, too...
Almost all the binary algorithm code has this confusion.
I'd kind of like to see a new policy in that area. Minimally,
to have the ASM source for each algorithm be in a comment that's
trivially extracted and rebuilt. Maybe
/*
mov r2, r0
mov r0, #0xffffffff
...
*/
But, no big deal either way. I'm sure we'll grow Cortex-M0 support
before all that long, this is just one minor issue in that puzzle.
- Dave
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development