strlen builtin
Posted: Wed May 08, 2013 7:46 am
I'm having problems with strlen on an STM32F103; I had this working on LPC2148, but for some reason it crashes:
void
console_log (const char *c)
{
sdWrite (&SD1, (uint8_t *) c, strlen (c));
sdWrite (&SD1, (uint8_t *) "\n\r", 2);
}
on STM32, I had to write my own strlen; the builtin hangs hard.
void
console_log (const char *c)
{
sdWrite (&SD1, (uint8_t *) c, strlen (c));
sdWrite (&SD1, (uint8_t *) "\n\r", 2);
}
on STM32, I had to write my own strlen; the builtin hangs hard.