Comments (3)
fx2lib.patch didn't apply to fx2lib master so here is the corrected fx2lib.patch:
diff --git a/lib/fx2.mk b/lib/fx2.mk
index 501040f..359a698 100644
--- a/lib/fx2.mk
+++ b/lib/fx2.mk
@@ -41,15 +41,15 @@ VID?=0x04b4
PID?=0x8613
INCLUDES?=""
-DSCR_AREA?=-Wl"-b DSCR_AREA=0x3e00"
-INT2JT?=-Wl"-b INT2JT=0x3f00"
+DSCR_AREA?=-Wl"-b DSCR_AREA=0x1e00"
+INT2JT?=-Wl"-b INT2JT=0x1f00"
CC=sdcc
# these are pretty good settings for most firmwares.
# Have to be careful with memory locations for
# firmwares that require more xram etc.
-CODE_SIZE?=--code-size 0x3c00
+CODE_SIZE?=--code-size 0x1c00
XRAM_SIZE?=--xram-size 0x0200
-XRAM_LOC?=--xram-loc 0x3c00
+XRAM_LOC?=--xram-loc 0x1c00
BUILDDIR?=build
FX2LIBDIR?=$(dir $(lastword $(MAKEFILE_LIST)))../
from smbusb.
and the diff for the smbusb tree
diff --git a/fx2lib b/fx2lib
index aaa470e..ab74f75 160000
--- a/fx2lib
+++ b/fx2lib
@@ -1 +1 @@
-Subproject commit aaa470e377ca0bf861244b10cdf4bdc4615d8bc1
+Subproject commit ab74f750a4074e0527c8b6d0b149d0756d4dd96d-dirty
diff --git a/fx2lib.patch b/fx2lib.patch
index cbafde6..76a909b 100644
--- a/fx2lib.patch
+++ b/fx2lib.patch
@@ -1,16 +1,20 @@
diff --git a/lib/fx2.mk b/lib/fx2.mk
-index d876a6d..c404ce0 100644
+index 501040f..359a698 100644
--- a/lib/fx2.mk
+++ b/lib/fx2.mk
-@@ -41,11 +41,11 @@ VID?=0x04b4
+@@ -41,15 +41,15 @@ VID?=0x04b4
PID?=0x8613
INCLUDES?=""
-DSCR_AREA?=-Wl"-b DSCR_AREA=0x3e00"
-INT2JT?=-Wl"-b INT2JT=0x3f00"
--CODE_SIZE?=--code-size 0x3c00
+DSCR_AREA?=-Wl"-b DSCR_AREA=0x1e00"
+INT2JT?=-Wl"-b INT2JT=0x1f00"
+ CC=sdcc
+ # these are pretty good settings for most firmwares.
+ # Have to be careful with memory locations for
+ # firmwares that require more xram etc.
+-CODE_SIZE?=--code-size 0x3c00
+CODE_SIZE?=--code-size 0x1c00
XRAM_SIZE?=--xram-size 0x0200
-XRAM_LOC?=--xram-loc 0x3c00
from smbusb.
Configure will detect SDCC version now and do what's necessary.
Thanks for the patches @jjakob
from smbusb.
Related Issues (20)
- writing program to bq8030 doesn't work HOT 9
- Add support for CP2112 development board HOT 2
- Error Opening SMBusb: libusb error -11 HOT 8
- Eeprom verification bypassed? HOT 3
- Firmware seems unstable, help? HOT 6
- adding support for /dev/i2c on linux? HOT 5
- I am using degilent jtag usb cable,can it be supportted? HOT 7
- armv7l/gcc - Build failed HOT 2
- connection issue - smbusb firmware error HOT 2
- Can we use this solution to reset a laptop battery? HOT 3
- Add xxdi as an alternative to xxd
- Python bindings compatible with 'smbus' module HOT 1
- Can't complete make command HOT 4
- Test command write
- can this be used with ch341a chip i2c mode to read smbus on battery? thx
- possible virus attack?
- Can't compile from sources
- PLEASE RELEASE
- Fix for SDCC 4.2.3 (makes the firmware compile with SDCC at least up to current SDCC 4.4.0)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smbusb.