Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
plumcore:index [2018/09/29 10:07]
qyx [Getting and running the plumCore]
plumcore:index [2018/09/29 10:13] (current)
qyx [Getting and running the plumCore]
Line 41: Line 41:
     scons proto     scons proto
     scons     scons
 +    scons program
  
 If a selected port requires a bootloader, you have to program it first. Then use the bootloader or a SWD programmer to program the plumCore binary itself. The binary will be located in the bin/ directory. If a selected port requires a bootloader, you have to program it first. Then use the bootloader or a SWD programmer to program the plumCore binary itself. The binary will be located in the bin/ directory.
Line 83: Line 84:
 </​code>​ </​code>​
  
 +Programming output:
 +<​code>​
 +$ scons program
 +scons: Reading SConscript files ...
 +scons: done reading SConscript files.
 +scons: Building targets ...
 +openocd -s /​usr/​share/​openocd/​scripts/​ -f interface/​stlink-v2-1.cfg -f target/​stm32f4x_stlink.cfg -c "​init"​ -c "reset init" -c "flash write_image erase bin/​plumcore-plumpot-cellular-0.5.0-split-into-modules.6+2067d83.20180929.fw 0x08010000 bin" -c "​reset"​ -c "​shutdown"​
 +Open On-Chip Debugger 0.10.0+dev-00313-gbae7605 (2018-03-01-21:​55)
 +Licensed under GNU GPL v2
 +For bug reports, read
 + http://​openocd.org/​doc/​doxygen/​bugs.html
 +WARNING: interface/​stlink-v2-1.cfg is deprecated, please switch to interface/​stlink.cfg
 +WARNING: target/​stm32f4x_stlink.cfg is deprecated, please switch to target/​stm32f4x.cfg
 +Info : auto-selecting first available session transport "​hla_swd"​. To override use '​transport select <​transport>'​.
 +Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
 +adapter speed: 2000 kHz
 +adapter_nsrst_delay:​ 100
 +none separate
 +Info : Unable to match requested speed 2000 kHz, using 1800 kHz
 +Info : Unable to match requested speed 2000 kHz, using 1800 kHz
 +Info : clock speed 1800 kHz
 +Info : STLINK v2 JTAG v27 API v2 SWIM v15 VID 0x0483 PID 0x374B
 +Info : using stlink api v2
 +Info : Target voltage: 0.000000
 +Error: target voltage may be too low for reliable debugging
 +Info : stm32f4x.cpu:​ hardware has 6 breakpoints,​ 4 watchpoints
 +Info : Listening on port 3333 for gdb connections
 +Info : Unable to match requested speed 2000 kHz, using 1800 kHz
 +Info : Unable to match requested speed 2000 kHz, using 1800 kHz
 +adapter speed: 1800 kHz
 +target halted due to debug-request,​ current mode: Thread ​
 +xPSR: 0x01000000 pc: 0x08006290 msp: 0x20010000
 +Info : Unable to match requested speed 8000 kHz, using 4000 kHz
 +Info : Unable to match requested speed 8000 kHz, using 4000 kHz
 +adapter speed: 4000 kHz
 +auto erase enabled
 +Info : device id = 0x10006431
 +Info : flash size = 512kbytes
 +wrote 196608 bytes from file bin/​plumcore-plumpot-cellular-0.5.0-split-into-modules.6+2067d83.20180929.fw in 4.465176s (42.999 KiB/s)
 +Info : Unable to match requested speed 2000 kHz, using 1800 kHz
 +Info : Unable to match requested speed 2000 kHz, using 1800 kHz
 +adapter speed: 1800 kHz
 +shutdown command invoked
 +scons: done building targets.
 +</​code>​
 +
 +Output on the serial console looks like: (including the uBLoad bootloader)
 +
 +<​code>​
 +### uBLoad (umeshFw bootloader),​ plumpot-cellular platform
 +### version develop, 2b73024, 2016-04-26 13:29:14 +0200, build date 2017-08-29 11:32:25 CEST
 +
 +INFO: clog initialized
 +INFO: led1: LED module initialized
 +INFO: spi_flash: flash id 00014014
 +INFO: spi_flash: flash detected Spansion S25FL208K, size 1048576 bytes
 +INFO: spi_flash: flash id 00014014
 +INFO: sffs: filesystem mounted successfully
 +INFO: sffs: sectors t=256 e=251 u=2 f=0 d=3 o=0, pages t=3840 e=3785 u=6 o=49
 +INFO: sffs: space total 983040 bytes, used 1536 bytes, free 981504 bytes
 +INFO: config: loading saved running configuration
 +
 +Press [enter] to interrupt the boot process....................
 +
 +INFO: fw_image: parsing firmware image...
 +INFO: fw_image: firmware vector table found at 0x08010400
 +INFO: fw_image: firmware structure check & parsing OK
 +INFO: ubload: jumping to user code
 +[] INFO: plocator: service initialized
 +[] INFO: rtc1: module RTC initialized
 +[] INFO: rtc1: current date/time is 2018-09-29T12:​09:​22Z
 +[2008-09-29T12:​09:​22Z] INFO: led_stat: LED module initialized
 +[2008-09-29T12:​09:​22Z] INFO: prng: module PRNG-simple initialized
 +[2008-09-29T12:​09:​22Z] INFO: profiler: FIFO time profiler initialized,​ queue length 100
 +[2008-09-29T12:​09:​22Z] INFO: spi2: module SPI bus initialized using default settings
 +[2008-09-29T12:​09:​22Z] INFO: spi2_flash1:​ SPI device initialized on bus spi2
 +[2008-09-29T12:​09:​22Z] INFO: flash1: flash detected Spansion S25FL208K, size 1048576 bytes
 +[2008-09-29T12:​09:​22Z] INFO: sffs: filesystem mounted successfully
 +[2008-09-29T12:​09:​22Z] INFO: sffs: sectors t=256 e=251 u=2 f=0 d=3 o=0, pages t=3840 e=3785 u=6 o=49
 +[2008-09-29T12:​09:​22Z] INFO: sffs: space total 983040 bytes, used 1536 bytes, free 981504 bytes
 +[2008-09-29T12:​09:​22Z] INFO: adc-stm32: ADC initialized
 +[2008-09-29T12:​09:​22Z] INFO: gsm-quectel:​ initialized
 +[2008-09-29T12:​09:​22Z] INFO: gsm1_usart: module USART initialized using default settings
 +[2008-09-29T12:​09:​22Z] INFO: gsm-quectel:​ starting
 +[2008-09-29T12:​09:​22Z] INFO: gsm-quectel:​ powering up
 +[2008-09-29T12:​09:​22Z] INFO: i2c-sensors:​ initialized
 +[2008-09-29T12:​09:​22Z] INFO: puxb: module initialized
 +[2008-09-29T12:​09:​23Z] INFO: puxb-discovery:​ module initialized
 +[2008-09-29T12:​09:​23Z] INFO: watchdog: started, period = 20000ms, prio = 0
 +[2008-09-29T12:​09:​23Z] DEBUG: stream-mqtt:​ initialized
 +[2008-09-29T12:​09:​23Z] INFO: system-clock:​ system clock timer started
 +[2008-09-29T12:​09:​23Z] INFO: stm32-rtc: RTC ready, skipping initialization
 +[2008-09-29T12:​09:​23Z] INFO: system: initializing services...
 +[2008-09-29T12:​09:​23Z] INFO: login1: module loginmgr initialized on interface '​console'​
 +[2008-09-29T12:​09:​23Z] ERROR: gsm-quectel:​ module startup timeout
 +
 +Press any key to activate this console.
 +
 +[2008-09-29T12:​09:​27Z] INFO: sensor-over-can:​ module initialized
 +[2008-09-29T12:​09:​27Z] INFO: sensor-over-can:​ module initialized
 +[2008-09-29T12:​09:​27Z] INFO: sensor-over-can:​ module initialized
 +[2008-09-29T12:​09:​27Z] INFO: sensor-over-can:​ module initialized
 +[2008-09-29T12:​09:​27Z] INFO: plog-router:​ plog message router started
 +[2008-09-29T12:​09:​27Z] INFO: plog-sensor:​ plog sensor upload service started
 +[2008-09-29T12:​09:​28Z] ERROR: gsm-quectel:​ no response from the modem
 +[2008-09-29T12:​09:​28Z] INFO: gsm-quectel:​ requesting stop
 +[2008-09-29T12:​09:​30Z] INFO: gsm-quectel:​ powering down
 +[2008-09-29T12:​09:​30Z] WARNING: gsm-quectel:​ module is already powered down
 +[2008-09-29T12:​09:​30Z] INFO: gsm-quectel:​ stopped
 +</​code>​
  • plumcore/index.txt
  • Last modified: 2018/09/29 10:13
  • by qyx