SD1 stupid problem
Posted: Sat Apr 11, 2015 8:35 pm
i've a simple stupid problem, i can't send datas over serial (SD1)
on my custom board with stm32f103re, chibios 2.6.7
no signal, if i try to toggle pins (changing SetpadMode configuration), is all ok
on my custom board with stm32f103re, chibios 2.6.7
Code: Select all
halInit();
chSysInit();
palSetPadMode(GPIOB, 6, PAL_MODE_STM32_ALTERNATE_PUSHPULL); // tx
palSetPadMode(GPIOB, 7, PAL_MODE_INPUT); //rx
sdStart(&SD1, NULL);
shellInit();
....
while (TRUE)
{
if (!shelltp_ser)
{
shelltp_ser = shellCreate(&shell_cfg_serial, SHELL_WA_SIZE, NORMALPRIO);
LED2_ON;
}
else if (chThdTerminated(shelltp_ser))
{
shelltp_ser = NULL; /* Triggers spawning of a new shell. */
LED2_OFF;
}
sdWrite(&SD1, (uint8_t *)"prova\r\n", 7);
no signal, if i try to toggle pins (changing SetpadMode configuration), is all ok