zceemja / psoc1_prog Goto Github PK
View Code? Open in Web Editor NEWCypress PSoC1 Programmer using Arduino nano
Cypress PSoC1 Programmer using Arduino nano
Initialization is getting stuck in infinite loop in data_pull() routine on line 92 of main.cpp
while((PINB & SDA_PIN) == 0); // wait until pin goes high
Commenting out this line will allow initialization to complete but sending a 'd' over serial to get the device ID gives an output of 0.
I've made the relevant changes to platformio.ini for the Uno but it is possible I'm missing something?
Here are changes I've made to platformio.ini:
board = uno
framework = arduino
board_build.mcu = atmega328p
Thanks for sharing your project.
I'm having issues connecting to CY8C27443. I'm using a Nano 328p, is there any additional connections required to the PSOC to set it to programming mode? I don't appear to be able to detect the PSOC. I've tried two different PSOC's. Any additional f\advice would be greatly appreciated. Thanks
Output device identification
Traceback (most recent call last):
File "D:\PSOC programmer\PSOC_1\programmer.py", line 207, in
print(prog.get_device_name())
File "D:\PSOC programmer\PSOC_1\programmer.py", line 119, in get_device_name
devid = self.get_device_id()
File "D:\PSOC programmer\PSOC_1\programmer.py", line 90, in get_device_id
return int(res[:-4], 16)
ValueError: invalid literal for int() with base 16: b''
Output when trying to flash device:
PSoC1_Prog: erasing memory
PSoC1_Prog: writing program
Writing 0x00 [1.56%]
Writing 0x01 [3.12%]
Writing 0x02 [4.69%]
Writing 0x03 [6.25%]
Writing 0x04 [7.81%]
Writing 0x05 [9.38%]
Writing 0x06 [10.94%]
Writing 0x07 [12.50%]
Writing 0x08 [14.06%]
Writing 0x09 [15.62%]
Writing 0x0a [17.19%]
Writing 0x0b [18.75%]
Writing 0x0c [20.31%]
Writing 0x0d [21.88%]
Writing 0x0e [23.44%]
Writing 0x0f [25.00%]
Writing 0x10 [26.56%]
Writing 0x11 [28.12%]
Writing 0x12 [29.69%]
Writing 0x13 [31.25%]
Writing 0x14 [32.81%]
Writing 0x15 [34.38%]
Writing 0x16 [35.94%]
Writing 0x17 [37.50%]
Writing 0x18 [39.06%]
Writing 0x19 [40.62%]
Writing 0x1a [42.19%]
Writing 0x1b [43.75%]
Writing 0x1c [45.31%]
Writing 0x1d [46.88%]
Writing 0x1e [48.44%]
Writing 0x1f [50.00%]
Writing 0x20 [51.56%]
Writing 0x21 [53.12%]
Writing 0x22 [54.69%]
Writing 0x23 [56.25%]
Writing 0x24 [57.81%]
Writing 0x25 [59.38%]
Writing 0x26 [60.94%]
Writing 0x27 [62.50%]
Writing 0x28 [64.06%]
Writing 0x29 [65.62%]
Writing 0x2a [67.19%]
Writing 0x2b [68.75%]
Writing 0x2c [70.31%]
Writing 0x2d [71.88%]
Writing 0x2e [73.44%]
Writing 0x2f [75.00%]
Writing 0x30 [76.56%]
Writing 0x31 [78.12%]
Writing 0x32 [79.69%]
Writing 0x33 [81.25%]
Writing 0x34 [82.81%]
Writing 0x35 [84.38%]
Writing 0x36 [85.94%]
Writing 0x37 [87.50%]
Writing 0x38 [89.06%]
Writing 0x39 [90.62%]
Writing 0x3a [92.19%]
Writing 0x3b [93.75%]
Writing 0x3c [95.31%]
Writing 0x3d [96.88%]
Writing 0x3e [98.44%]
Writing 0x3f [100.00%]
PSoC1_Prog: writing secure
PSoC1_Prog: checking checksum
Traceback (most recent call last):
File "D:\PSOC programmer\PSOC_1\programmer.py", line 194, in
csum = prog.read_checksum()
File "D:\PSOC programmer\PSOC_1\programmer.py", line 104, in read_checksum
return int(res[:-4], 16).to_bytes(2, 'big')
ValueError: invalid literal for int() with base 16: b''
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.