Serial Console

classic Classic list List threaded Threaded
3 messages Options
tobor tobor
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Serial Console

By default the serial console on the CDC port of the stm32fdiscovery board, what steps are needed to move to one of the other serial ports?
I have changed sercon in stm32f4discovery.lua to uart = 1 and commented out the cdc buf size to start.

thanks,
Bill


_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Mark Burton Mark Burton
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serial Console


Hi Bill,

> By default the serial console on the CDC port of the stm32fdiscovery
> board, what steps are needed to move to one of the other serial ports?
> I have changed sercon in stm32f4discovery.lua to uart = 1 and
> commented out the cdc buf size to start.

The (brand new) stm32f4-nucleo config moved the console to UART2 with
the config below. Note that it changes both components.sercon and adds
config.stm32f4_uart_pins.

Cheers,

Mark

-- STM32F4-NUCLEO build configuration

return {
  cpu = 'stm32f401re',
  components = {
    sercon = { uart = "1", speed = 115200 },
    romfs = true,
    cdc = false,
    advanced_shell = true,
    term = { lines = 25, cols = 80 },
    linenoise = { shell_lines = 10, lua_lines = 50 },
    stm32f4_enc = true,
    rpc = { uart = "0", speed = 115200 },
    adc = { buf_size = 2 },
    xmodem = true,
    cints = true,
    luaints = true
  },
  config = {
    egc = { mode = "alloc" },
    vtmr = { num = 4, freq = 10 },
    ram = { internal_rams = 1 },
    clocks = { external = 8000000, cpu = 84000000 },
    stm32f4_uart_pins = { con_rx_port = 0, con_rx_pin = 3, con_tx_port
= 0, con_tx_pin = 2 } },
  modules = {
    generic = { 'all', "-i2c", "-net" },
    platform = 'all',
  },
}

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
tobor tobor
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serial Console

That helped, thanks


On Wed, Mar 19, 2014 at 8:47 AM, Mark Burton <[hidden email]> wrote:

Hi Bill,

> By default the serial console on the CDC port of the stm32fdiscovery
> board, what steps are needed to move to one of the other serial ports?
> I have changed sercon in stm32f4discovery.lua to uart = 1 and
> commented out the cdc buf size to start.

The (brand new) stm32f4-nucleo config moved the console to UART2 with
the config below. Note that it changes both components.sercon and adds
config.stm32f4_uart_pins.

Cheers,

Mark

-- STM32F4-NUCLEO build configuration

return {
  cpu = 'stm32f401re',
  components = {
    sercon = { uart = "1", speed = 115200 },
    romfs = true,
    cdc = false,
    advanced_shell = true,
    term = { lines = 25, cols = 80 },
    linenoise = { shell_lines = 10, lua_lines = 50 },
    stm32f4_enc = true,
    rpc = { uart = "0", speed = 115200 },
    adc = { buf_size = 2 },
    xmodem = true,
    cints = true,
    luaints = true
  },
  config = {
    egc = { mode = "alloc" },
    vtmr = { num = 4, freq = 10 },
    ram = { internal_rams = 1 },
    clocks = { external = 8000000, cpu = 84000000 },
    stm32f4_uart_pins = { con_rx_port = 0, con_rx_pin = 3, con_tx_port
= 0, con_tx_pin = 2 } },
  modules = {
    generic = { 'all', "-i2c", "-net" },
    platform = 'all',
  },
}

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev


_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Loading...