Difference: MainMCUFirmware (1 vs. 13)

Revision 132016-11-12 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
%DASHBOARD{ section="banner"
Line: 23 to 23
 ElectronicDesign and GitHub

There is also an optional Bluetooth Low Energy (Smart) subsystem on board.

Changed:
<
<
It is a LAIRD BL600-SA module. The Bluetooth application software is on
>
>
It is a LAIRD BL652-SA module. The Bluetooth application software is on
 GitHub too.

It is possible to mount the PCB direct onto the wheel spokes but it is

Revision 122016-05-31 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
%DASHBOARD{ section="banner"
Line: 10 to 10
 

Firmware for the Velo Bling-Bling project

LED lights for bicycle wheels.

Changed:
<
<
16 multi color LEDs on each side (PCB top- and bottom side). There are two windows (upper and lower) on each side for display
>
>
16 multi color LEDs on both sides (PCB top- and bottom side). There are two windows (upper and lower) on both sides for display
 dynamic information like speed, trip time, trip distance, etc. or static information like strings and images. The windows have a resolution of 100 x 16 pixels.

Revision 112016-05-24 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
%DASHBOARD{ section="banner"
Line: 26 to 26
 It is a LAIRD BL600-SA module. The Bluetooth application software is on GitHub too.
Changed:
<
<
It is possible to mount die PCB direct onto the wheel spokes but it is
>
>
It is possible to mount the PCB direct onto the wheel spokes but it is
 better to use a mounting frame. This frame can be ordered from http://shapeways.com or you can print it by yourself on 3D printer. See FrameDesign and GitHub

Revision 102016-05-24 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
%DASHBOARD{ section="banner"
Line: 19 to 19
 (AKA blingbling).

Target system is a proprietary PCB (eWheel32 V1.4 an newer) with a

Changed:
<
<
MK22DX256VLF5 MCU from Freescale/NXP. The PCB is free hardware, see https://github.com/spyren/veloblingbling-pcb
>
>
MK22DX256VLF5 MCU from Freescale/NXP. The PCB is free hardware, see ElectronicDesign and GitHub
 
Changed:
<
<
There is also optional Bluetooth Low Energy (Smart) subsystem on board. It is a LAIRD BL600 module. The application software is also on GitHub: https://github.com/spyren/veloblingbling-ble
>
>
There is also an optional Bluetooth Low Energy (Smart) subsystem on board. It is a LAIRD BL600-SA module. The Bluetooth application software is on GitHub too.
  It is possible to mount die PCB direct onto the wheel spokes but it is better to use a mounting frame. This frame can be ordered from
Changed:
<
<
http://shapeways.com or you can print it by yourself on 3D printer. https://github.com/spyren/veloblingbling-frame
>
>
http://shapeways.com or you can print it by yourself on 3D printer. See FrameDesign and GitHub
 

Copyright

Line: 49 to 49
 GNU General Public License for more details.

You should have received a copy of the GNU General Public License along

Changed:
<
<
with "Velo Bling-Bling". If not, see <http://www.gnu.org/licenses/>.
>
>
with "Velo Bling-Bling". If not, see http://www.gnu.org/licenses/.
 

Tools

Line: 105 to 105
 The Velo Bling-Bling Kinetis project is on the GitHub repository https://github.com/spyren/veloblingbling-mcu. Download the ZIP-File and unzip it or better clone the repository e.g. for GNU/Linux:

Changed:
<
<
psi@homer:~/veloblingbling> git clone https://github.com/spyren/veloblingbling-mcu
>
>
psi@homer:~/veloblingbling/mcu> git clone https://github.com/spyren/veloblingbling-mcu
 Klone nach 'veloblingbling-mcu' ... remote: Counting objects: 265, done. remote: Compressing objects: 100% (97/97), done.
Line: 113 to 113
 Empfange Objekte: 100% (265/265), 223.50 KiB | 0 bytes/s, Fertig. Löse Unterschiede auf: 100% (167/167), Fertig. Prüfe Konnektivität ... Fertig.
Changed:
<
<
psi@homer:~/veloblingbling>
>
>
psi@homer:~/veloblingbling/mcu>
 

Import the Project into the IDE

Line: 121 to 121
 File -> Import -> General -> Existing Projects into Workspace ->
Select root directory
Copy project into workspace
Changed:
<
<
Browse to veloblingbling-mcu directory
>
>
Browse to veloblingbling/mcu directory
 Finish

I don't know why, but I had to change the Processor Expert system directory:

Revision 92016-05-23 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
%DASHBOARD{ section="banner"
Line: 7 to 7
  titlestyle="color:#F00000;" }%
Added:
>
>

Firmware for the Velo Bling-Bling project

LED lights for bicycle wheels. 16 multi color LEDs on each side (PCB top- and bottom side). There are two windows (upper and lower) on each side for display dynamic information like speed, trip time, trip distance, etc. or static information like strings and images. The windows have a resolution of 100 x 16 pixels. The space between the windows can be filled with a pattern/image (AKA blingbling).

Target system is a proprietary PCB (eWheel32 V1.4 an newer) with a MK22DX256VLF5 MCU from Freescale/NXP. The PCB is free hardware, see https://github.com/spyren/veloblingbling-pcb

There is also optional Bluetooth Low Energy (Smart) subsystem on board. It is a LAIRD BL600 module. The application software is also on GitHub: https://github.com/spyren/veloblingbling-ble

It is possible to mount die PCB direct onto the wheel spokes but it is better to use a mounting frame. This frame can be ordered from http://shapeways.com or you can print it by yourself on 3D printer. https://github.com/spyren/veloblingbling-frame

Copyright

Peter Schmid, Switzerland, peter@spyr.ch

This file is part of "Velo Bling-Bling" main MCU firmware.

"Velo Bling-Bling" firmware is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

"Velo Bling-Bling" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with "Velo Bling-Bling". If not, see <http://www.gnu.org/licenses/>.

 

Tools

Kinetis Design Studio Integrated Development Environment (IDE)

Revision 82016-05-16 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
%DASHBOARD{ section="banner"
Line: 54 to 54
 See also an excellent introduction to OpenOCD/CMSIS-DAP Debugging by Erich Styger.
Changed:
<
<

Get the Software and Import it into the IDE

>
>

Get the Software and Import the Project into the IDE

 

Get the Source from the Repository

The Velo Bling-Bling Kinetis project is on the GitHub repository https://github.com/spyren/veloblingbling-mcu. Download the ZIP-File and unzip it or better
Line: 119 to 119
 
    • Total Flash memory (kB) 320
    • LQFP-48
Changed:
<
<
The MK20DX128VLF5 can also be used, but the memory footprint (Flash and RAM) has to be reduced. The MKL27Z256VFT4 would be an excellent alternative (build-in bootloader, 8 mA run mode current with peripherals, 4 mA wait mode current), but the case is QFN48 and therefore the PCB layout have to be changed.
>
>
The MK20DX128VLF5 can also be used, but the memory footprint (Flash and RAM) has to be reduced. The MKL27Z256VFT4 would be an excellent alternative (build-in bootloader, 8 mA run mode current with peripherals, 4 mA wait mode current), but the case is QFN48 and therefore you have to change the PCB layout.
 

Revision 72016-04-23 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
%DASHBOARD{ section="banner"
Line: 20 to 20
  Processor Expert Software is a development system to create, configure, optimize, migrate, and deliver software components that generate source code for our (Freescale/NXP) silicon.
Changed:
<
<
Unfortunately the Processor Expert USB Stack v3.2.0 is no longer supported. But you can still find it under:
(ARCHIVED) USB Stack
>
>
Unfortunately the Processor Expert USB Stack v4.1.1 NXP bare metal (no OS) USB Stack is no longer supported. But you can still find it under (ARCHIVED) USB Stack. You need a Windows PC to install, but the Processor Expert components can be used for Linux boxes too, the PEupd files are in the directory C:\Freescale\Freescale USB Stack v4.1.1\ProcessorExpert\Components and have to be imported into the KDS IDE: Processor Expert -> Import Components.
 
Changed:
<
<
I will migrate the Velo Bling-Bling USB software from Freescale USB Stack v3.2.0 to Erich Styger's USB Stack.
>
>
I will migrate the Velo Bling-Bling USB software from Freescale USB Stack v4.1.1 to Erich Styger's USB Stack.
 

Debug Adapter

Line: 73 to 73
 

Import the Project into the IDE

Changed:
<
<
File -> Import -> General -> Existing Projects into Workspace ->
>
>
File -> Import -> General -> Existing Projects into Workspace ->
Select root directory
Copy project into workspace
Browse to veloblingbling-mcu directory
Finish

I don't know why, but I had to change the Processor Expert system directory:
Window -> Preferences -> Processor Expert -> Paths
system directory /opt/Freescale/KDS_2.0.0/eclipse/ProcessorExpert

 

Revision 62016-04-23 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
%DASHBOARD{ section="banner"
Line: 23 to 23
 Unfortunately the Processor Expert USB Stack v3.2.0 is no longer supported. But you can still find it under:
(ARCHIVED) USB Stack
Changed:
<
<
I will migrate the USB Stack v3.2.0 to Erich Styger's USB Stack
>
>
I will migrate the Velo Bling-Bling USB software from Freescale USB Stack v3.2.0 to Erich Styger's USB Stack.
 

Debug Adapter

Line: 49 to 49
 used to connect from the OpenSDAv2 of the FRDM-K22F to an off-board SWD connector.
Changed:
<
<
You can still use the FRDM-K22F as a prototype board. You should solder a pinheader an use a jumper if you want to use the FRDM-K22F as a prototype board.
>
>
You can still use the FRDM-K22F as a prototype board. You should solder a pinheader and plug a jumper if you want to use the FRDM-K22F as a prototype board.
 
Changed:
<
<
See also OpenOCD/CMSIS-DAP Debugging with Eclipse and without an IDE
>
>
See also an excellent introduction to OpenOCD/CMSIS-DAP Debugging by Erich Styger.
 
Changed:
<
<

Repository

>
>

Get the Software and Import it into the IDE

Get the Source from the Repository

The Velo Bling-Bling Kinetis project is on the GitHub repository https://github.com/spyren/veloblingbling-mcu. Download the ZIP-File and unzip it or better clone the repository e.g. for GNU/Linux:
psi@homer:~/veloblingbling> git clone https://github.com/spyren/veloblingbling-mcu
Klone nach 'veloblingbling-mcu' ...
remote: Counting objects: 265, done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 265 (delta 167), reused 260 (delta 166), pack-reused 0
Empfange Objekte: 100% (265/265), 223.50 KiB | 0 bytes/s, Fertig.
Löse Unterschiede auf: 100% (167/167), Fertig.
Prüfe Konnektivität ... Fertig.
psi@homer:~/veloblingbling>

Import the Project into the IDE

 
Changed:
<
<
https://github.com/spyren/veloblingbling-mcu
>
>
File -> Import -> General -> Existing Projects into Workspace ->
 
Added:
>
>
  • Data sheets
 
Changed:
<
<

  • ARM Cortex M4, 50 MHz
>
>
 
  • Run mode current 17 mA, wait 8 mA
  • A/D Converter - Bits (bit) 16
  • Additional Features Vref
Line: 91 to 109
 
  • Total DMA Channels 16
  • Total Flash memory (kB) 320
  • LQFP-48
Added:
>
>
The MK20DX128VLF5 can also be used, but the memory footprint (Flash and RAM) has to be reduced. The MKL27Z256VFT4 would be an excellent alternative (build-in bootloader, 8 mA run mode current with peripherals, 4 mA wait mode current), but the case is QFN48 and therefore the PCB layout have to be changed.
 

Revision 52016-04-22 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
%DASHBOARD{ section="banner"
Line: 10 to 10
 

Tools

Kinetis Design Studio Integrated Development Environment (IDE)

Deleted:
<
<
http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/ides-for-kinetis-mcus/kinetis-design-studio-integrated-development-environment-ide
 
Changed:
<
<
Version 2.0.0 (current is 3.2.0)
>
>
The Kinetis Design Studio (KDS) is a complimentary integrated development environment for Kinetis MCUs that enables robust editing, compiling and debugging of your designs. Based on free, open-source software including Eclipse, GNU Compiler Collection (GCC), GNU Debugger (GDB), and others, the Kinetis Design Studio IDE offers designers a simple development tool with no code-size limitations.

You have to use an old Version (2.0.0, current is 3.2.0) for the veloblingbling project because the Processor Expert USB Stack does not work with newer Kinetis Design Studio Integrated Development Environment.

 

Processor Expert Software and Embedded Components

Deleted:
<
<
http://www.nxp.com/products/software-and-tools/software-development-tools/processor-expert-and-embedded-components:
 
Added:
>
>
Processor Expert Software is a development system to create, configure, optimize, migrate, and deliver software components that generate source code for our (Freescale/NXP) silicon.

Unfortunately the Processor Expert USB Stack v3.2.0 is no longer supported. But you can still find it under:
(ARCHIVED) USB Stack

I will migrate the USB Stack v3.2.0 to Erich Styger's USB Stack

Debug Adapter

 
Changed:
<
<
http://www.nxp.com/products/automotive-products/microcontrollers-and-processors/8-bit-s08-5.5v-mcus/usb-stack USB Stack v3.2.0
>
>
The KDS supports following adapters (protocols):
  • OpenSDA Serial and Debug Adapter (proprietary Freescale/NXP/P&E Microcomputer Systems)
  • Segger (industrial standard)
  • OpenOCD,
 
Added:
>
>
I propose to use a Freescale/NXP Freedom Board e.g. FRDM-K22F as a debug adapter. I use the OpenOCD/CMSIS-DAP/mbed-interface protocol (factory set on FRDM-K22F).
 
Changed:
<
<

OpenSDA Serial and Debug Adapter

>
>
Quote from Freedom Board for Kinetis K22F Hardware (FRDM-K22F), Users Guide
 
Changed:
<
<
https://www.segger.com/opensda.html
>
>
3.2.1 Debug interface
 
Changed:
<
<

Freedom Development Boards

  • FRDM-K22F
  • TWR-K21D50M
>
>
Signals with SPI and GPIO capability are used to connect directly to the SWD of the K22F. These signals are also brought out to a standard 10-pin (0.05”) Cortex debug connector (J11). It is possible to isolate the K22F MCU from the OpenSDAv2 circuit and use J11 to connect to an off-board MCU. To accomplish this, cut the trace on the bottom side of the PCB that connects J7 pin 2 to J11 pin 4. This will disconnect the SWD_CLK pin to the K22F so that it will not interfere with communication to an off-board MCU connected to J7. The J11 header is populated by default. A mating cable, such as a Samtec FFSD IDC cable, can then be used to connect from the OpenSDAv2 of the FRDM-K22F to an off-board SWD connector.
 
Changed:
<
<

MK22DX256VLF5 (wird ab Prototyp 2 eingesetzt)

>
>
You can still use the FRDM-K22F as a prototype board. You should solder a pinheader an use a jumper if you want to use the FRDM-K22F as a prototype board.

See also OpenOCD/CMSIS-DAP Debugging with Eclipse and without an IDE

 
Deleted:
<
<
 
Line: 63 to 91
 
  • Total DMA Channels 16
  • Total Flash memory (kB) 320
  • LQFP-48
Deleted:
<
<
 
Changed:
<
<

Repository

>
>
  -- Peter Schmid - 2016-03-30

Revision 42016-03-31 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
%DASHBOARD{ section="banner"
Line: 24 to 24
 

OpenSDA Serial and Debug Adapter

Added:
>
>
https://www.segger.com/opensda.html
 

Freedom Development Boards

  • FRDM-K22F
  • TWR-K21D50M

Revision 32016-03-30 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
%DASHBOARD{ section="banner"
Line: 7 to 7
  titlestyle="color:#F00000;" }%
Changed:
<
<

Tools

>
>

Tools

Kinetis Design Studio Integrated Development Environment (IDE)

http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/ides-for-kinetis-mcus/kinetis-design-studio-integrated-development-environment-ide

Version 2.0.0 (current is 3.2.0)

Processor Expert Software and Embedded Components

http://www.nxp.com/products/software-and-tools/software-development-tools/processor-expert-and-embedded-components:

http://www.nxp.com/products/automotive-products/microcontrollers-and-processors/8-bit-s08-5.5v-mcus/usb-stack USB Stack v3.2.0

OpenSDA Serial and Debug Adapter

Freedom Development Boards

  • FRDM-K22F
  • TWR-K21D50M

MK22DX256VLF5 (wird ab Prototyp 2 eingesetzt)

  • ARM Cortex M4, 50 MHz
  • Run mode current 17 mA, wait 8 mA
  • A/D Converter - Bits (bit) 16
  • Additional Features Vref
  • Ambient Operating Temperature (Min-Max) (°C) -40 to 105
  • Analog Comparator 2
  • Cache (kB) 0
  • Debug Features JTAG, Serial Wire Debug, cJTAG
  • EEPROM (kB) 4
  • External Bus Interface n/a
  • FlexMemory (KB) 64
  • I/O Pins 29
  • Independent ADC modules 1
  • Internal Flash (kB) 256
  • Internal RAM (kB) 32
  • Max Simultaneous ADC channels 1 DP14 SE
  • Pulse Width Modulators - Channels 10
  • Sample Exception Availability Y
  • Serial Interface - Number of Interfaces 4
  • Serial Interface - Type UART, SPI, I2C, I2S
  • USB OTG LS/FS
  • Supply Voltage (Min-Max) (V) 1.71 to 3.6
  • Timer type Low Power Timer, Periodic Interrupt Timer, Programmable Delay Block
  • Total DMA Channels 16
  • Total Flash memory (kB) 320
  • LQFP-48
 

Changed:
<
<

Repository

>
>

Repository

 

Line: 26 to 80
 
<--/commentPlugin-->

META FILEATTACHMENT attachment="kinetisdesignstudio.png" attr="" comment="" date="1459369622" name="kinetisdesignstudio.png" path="kinetisdesignstudio.png" size="73520" user="PeterSchmid" version="1"
Added:
>
>
META PREFERENCE name="WEBLOGOURL" title="WEBLOGOURL" type="Set" value="http://veloblingbling.ch/twiki/bin/view/Velo/EWheelEn"
META PREFERENCE name="WEBLOGOIMG" title="WEBLOGOIMG" type="Set" value="http://veloblingbling.ch/twiki/pub/Velo/EWheelEn/kmh-veloblingbling-thumb.png"
META PREFERENCE name="WEBLOGOALT" title="WEBLOGOALT" type="Set" value="Velo Bling-Bling home"

Revision 22016-03-30 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="EWheelEn"
Changed:
<
<

Main MCU Firmware

>
>
Main MCU Firmware

Tools

Repository

 

-- Peter Schmid - 2016-03-30

Line: 8 to 24
 

Comments

<--/commentPlugin-->
Added:
>
>
META FILEATTACHMENT attachment="kinetisdesignstudio.png" attr="" comment="" date="1459369622" name="kinetisdesignstudio.png" path="kinetisdesignstudio.png" size="73520" user="PeterSchmid" version="1"

Revision 12016-03-30 - PeterSchmid

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="EWheelEn"

Main MCU Firmware

-- Peter Schmid - 2016-03-30

Comments

<--/commentPlugin-->
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback