@@ -6,21 +6,30 @@ This work is absolutely **not related** to cypress in any way.
6
6
## Introduction
7
7
8
8
This repository holds an attempt to port some tools of cypress under Linux.
9
- The host bootloader has been replicating using cypress source code for host bootloader .
9
+ It allows to compile and upload application to some cypress boards .
10
10
It has only been successfully tested with a CY8CKIT-049 42xx kit.
11
11
(http://www.cypress.com/documentation/development-kitsboards/psoc-4-cy8ckit-049-4xxx-prototyping-kits )
12
12
13
13
The prerequisites are the following:
14
14
- ` gengetopt `
15
15
- ` make `
16
+ - ` wine ` (to run cyelftool when using makefile)
17
+ - An arm toolchain (arm-none-eabi-)
18
+
19
+ In order to build and install these utilities:
16
20
21
+ ```
22
+ make all
23
+ sudo make install
24
+ ```
17
25
18
26
## Host bootloader
19
27
28
+ The host bootloader has been replicating using cypress source code for host bootloader.
20
29
The Cypress Host Bootloader Tool is available as a command line utility and support various command
21
30
To build it, the ` make ` command should be sufficient.
22
31
23
- ## Usage
32
+ ### Usage
24
33
25
34
```
26
35
-h, --help Print help and exit
@@ -37,3 +46,50 @@ To build it, the `make` command should be sufficient.
37
46
-e, --erase Erase memory
38
47
-v, --verify Verify file
39
48
```
49
+
50
+ ## iHex to cyacd format
51
+
52
+ Thanks from https://github.com/gv1/hex2cyacd , the format is well explained and it was possible to write a C tool.
53
+ ihex2cyacd is a an utility to create cyacd files from ihex files.
54
+ In order to use it, the simplest way is to use it
55
+
56
+ ### Usage
57
+
58
+ ```
59
+
60
+ -h, --help Print help and exit
61
+ -V, --version Print version and exit
62
+ -i, --input=STRING Input ihex file
63
+ -b, --bootloader_size=INT Bootloader text size file
64
+ -o, --output=STRING Output cyacd file
65
+ -c, --cpu=ENUM CPU type (possible values="CY8C41", "CY8C42"
66
+ default=`CY8C42')
67
+ ```
68
+
69
+ ## Makefiles
70
+
71
+ A Makefile.cypress file is available in the repository in order to easily compile cydsn projects.
72
+ Two variable are required to be set which are PSOC_CREATOR_DIR and PROJECT_DIR.
73
+ The easiest way to use it is to create a Makefile with the following content
74
+
75
+ ```
76
+ PSOC_CREATOR_DIR := Path_to_PSoC_Creator
77
+ PROJECT_DIR := Path_to_project.cydsn
78
+
79
+ include Makefile.cypress
80
+
81
+ ```
82
+
83
+ Then type ` make ` to compile the application.
84
+ Note that some old generated files may be outdated and can't compile.
85
+ This typically happens when you change the name of a PSoC component and rebuild the application.
86
+ Simply remove these files in order to compile again.
87
+
88
+ The output files will be in the ` build ` directory.
89
+ The final cyacd file can be flashed using ` cyhostboot ` .
90
+
91
+
92
+ ## Notes
93
+
94
+ The ` cyelftool ` cypress utility has not yet been reversed.
95
+ However thanks to wine, this utility can be used and
0 commit comments