Coder Social home page Coder Social logo

Comments (3)

jjakob avatar jjakob commented on June 7, 2024 1

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.

jjakob avatar jjakob commented on June 7, 2024

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.

karosium avatar karosium commented on June 7, 2024

Configure will detect SDCC version now and do what's necessary.
Thanks for the patches @jjakob

from smbusb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.