diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-09-15 07:35:43 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-09-15 07:35:43 +0000 |
commit | 1f8a2b96534233a822d9f870184b4738f67198fa (patch) | |
tree | b677851577345c30905582ce9be82e6b9308d201 | |
parent | a941758ffeb14b80257d9226d9ee3517f4eb11c4 (diff) | |
download | ChibiOS-1f8a2b96534233a822d9f870184b4738f67198fa.tar.gz ChibiOS-1f8a2b96534233a822d9f870184b4738f67198fa.tar.bz2 ChibiOS-1f8a2b96534233a822d9f870184b4738f67198fa.zip |
Correct serial port.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12256 110e8d01-0319-4d1e-a829-52ad28d1bb01
3 files changed, 9 insertions, 9 deletions
diff --git a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h index 432f9f95b..291c4e2ad 100644 --- a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h +++ b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h @@ -91,8 +91,8 @@ */
#define STM32_SERIAL_USE_USART1 FALSE
#define STM32_SERIAL_USE_USART2 FALSE
-#define STM32_SERIAL_USE_USART3 TRUE
-#define STM32_SERIAL_USE_LPUART1 FALSE
+#define STM32_SERIAL_USE_USART3 FALSE
+#define STM32_SERIAL_USE_LPUART1 TRUE
#define STM32_SERIAL_USART1_PRIORITY 12
#define STM32_SERIAL_USART2_PRIORITY 12
#define STM32_SERIAL_USART3_PRIORITY 12
diff --git a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/debug/RT-STM32L4R5ZI-NUCLEO144 (OpenOCD, Flash and Run).launch b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/debug/RT-STM32L4R5ZI-NUCLEO144 (OpenOCD, Flash and Run).launch index 2a6c6f6f5..c9b1eb6f5 100644 --- a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/debug/RT-STM32L4R5ZI-NUCLEO144 (OpenOCD, Flash and Run).launch +++ b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/debug/RT-STM32L4R5ZI-NUCLEO144 (OpenOCD, Flash and Run).launch @@ -6,17 +6,17 @@ <booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doReset" value="true"/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value=""/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value=""/> -<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.initCommands" value="set remotetimeout 20 monitor reset init monitor sleep 50 "/> +<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.initCommands" value="set remotetimeout 20 monitor reset init monitor sleep 50 monitor flash probe 0 monitor stm32l4x mass_erase 0 monitor flash write_image /home/giovanni/Projects/ChibiStudio/chibios_trunk/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/build/ch.elf "/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.ipAddress" value="localhost"/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="Generic TCP/IP"/> -<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="true"/> +<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="false"/> <booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="true"/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/> <intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.portNumber" value="3333"/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.runCommands" value=""/> <booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/> -<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="true"/> -<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/> +<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="false"/> +<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="false"/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value=""/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value=""/> diff --git a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/main.c b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/main.c index 33e022883..2e07a74be 100644 --- a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/main.c +++ b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/main.c @@ -62,7 +62,7 @@ int main(void) { /*
* Activates the serial driver 3 using the driver default configuration.
*/
- sdStart(&SD3, NULL);
+ sdStart(&LPSD1, NULL);
/*
* Creates the example thread.
@@ -75,8 +75,8 @@ int main(void) { */
while (true) {
if (palReadLine(LINE_BUTTON)) {
- test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
- test_execute((BaseSequentialStream *)&SD3, &oslib_test_suite);
+ test_execute((BaseSequentialStream *)&LPSD1, &rt_test_suite);
+ test_execute((BaseSequentialStream *)&LPSD1, &oslib_test_suite);
}
chThdSleepMilliseconds(500);
}
|