Comments (5)
Hello and thanks for your question.
You can define functions in flash by adding them to the “builtin_table” data structure in the file src/bitlash-builtins.c; see the doc there for the use of the BUILT_IN macro. Functions built-in this way can be run just like eeprom functions.
I hope that helps, and I’m happy to take followup questions.
-br
On Mar 20, 2015, at 2:38 PM, pwl42 [email protected] wrote:
hi Bill,
have you ever built a version that would interpret bitlash code that is stored in the unused part of flash (on a 32K mcu)? it seems to me that would be a good place to put a larger program.—
Reply to this email directly or view it on GitHub #44.
from bitlash.
I guess I am just being too picky. I would prefer to load unused flash memory blocks with bitlash code and have it executed the same way as code in eeprom. Those blocks could be replaced without recompiling. Of course, this would be useful only on the larger devices.
On the internet nobody can hear you being subtle. --Linus Torvalds
On Fri, 3/20/15, Bill Roy [email protected] wrote:
Subject: Re: [bitlash] run bitlash code stored in flash (#44)
To: "billroy/bitlash" [email protected]
Cc: "pwl42" [email protected]
Date: Friday, March 20, 2015, 8:23 PM
Hello and thanks for your question.
You can define functions in flash by adding them to the
“builtin_table” data structure in the file
src/bitlash-builtins.c; see the doc there for the use of the
BUILT_IN macro. Functions built-in this way can be run just
like eeprom functions.
I hope that helps, and I’m happy to take followup
questions.
-br
On Mar 20, 2015, at 2:38 PM, pwl42
[email protected] wrote:hi Bill,
have you ever built a version that would interpret
bitlash code that is stored in the unused part of flash (on
a 32K mcu)? it seems to me that would be a good place to put
a larger program.—
Reply to this email directly or view it on GitHub
#44.
—
Reply to this email directly or view
it on GitHub.
from bitlash.
Thanks for clarifying. If I understand correctly, you would like to write the flash dynamically at runtime, like the eeprom.
Last time I checked, it was considered tricky to write to flash at runtime, and there were no libraries available to do it.
If, however, someone has developed a library to write to flash at runtime, this would not be a difficult feature to implement.
-br
On Mar 21, 2015, at 2:16 AM, pwl42 [email protected] wrote:
I guess I am just being too picky. I would prefer to load unused flash memory blocks with bitlash code and have it executed the same way as code in eeprom. Those blocks could be replaced without recompiling. Of course, this would be useful only on the larger devices.
On the internet nobody can hear you being subtle. --Linus Torvalds
On Fri, 3/20/15, Bill Roy [email protected] wrote:
Subject: Re: [bitlash] run bitlash code stored in flash (#44)
To: "billroy/bitlash" [email protected]
Cc: "pwl42" [email protected]
Date: Friday, March 20, 2015, 8:23 PMHello and thanks for your question.
You can define functions in flash by adding them to the
“builtin_table” data structure in the file
src/bitlash-builtins.c; see the doc there for the use of the
BUILT_IN macro. Functions built-in this way can be run just
like eeprom functions.I hope that helps, and I’m happy to take followup
questions.-br
On Mar 20, 2015, at 2:38 PM, pwl42
[email protected] wrote:hi Bill,
have you ever built a version that would interpret
bitlash code that is stored in the unused part of flash (on
a 32K mcu)? it seems to me that would be a good place to put
a larger program.—
Reply to this email directly or view it on GitHub
#44.—
Reply to this email directly or view
it on GitHub.—
Reply to this email directly or view it on GitHub #44 (comment).
from bitlash.
I was thinking that I would write to those unused blocks when I loaded bitlash and If I needed to change them later I would use avrdude. Is the flash readable only as 16 bit words and, if so, is that a problem?
On the internet nobody can hear you being subtle. --Linus Torvalds
On Sat, 3/21/15, Bill Roy [email protected] wrote:
Subject: Re: [bitlash] run bitlash code stored in flash (#44)
To: "billroy/bitlash" [email protected]
Cc: "pwl42" [email protected]
Date: Saturday, March 21, 2015, 7:17 AM
Thanks for clarifying. If I
understand correctly, you would like to write the flash
dynamically at runtime, like the eeprom.
Last time I checked, it was considered tricky to write to
flash at runtime, and there were no libraries available to
do it.
If, however, someone has developed a library to write to
flash at runtime, this would not be a difficult feature to
implement.
-br
On Mar 21, 2015, at 2:16 AM, pwl42
[email protected] wrote:I guess I am just being too picky. I would prefer to
load unused flash memory blocks with bitlash code and have
it executed the same way as code in eeprom. Those blocks
could be replaced without recompiling. Of course, this would
be useful only on the larger devices.On the internet nobody can hear you being subtle.
--Linus Torvalds
On Fri, 3/20/15, Bill Roy
[email protected] wrote:Subject: Re: [bitlash] run bitlash code stored in flash
(#44)To: "billroy/bitlash"
[email protected]Cc: "pwl42" [email protected]
Date: Friday, March 20, 2015, 8:23 PM
Hello and thanks for your question.
You can define functions in flash by adding them to
the“builtin_table” data structure in the file
src/bitlash-builtins.c; see the doc there for the use
of theBUILT_IN macro. Functions built-in this way can be run
justlike eeprom functions.
I hope that helps, and I’m happy to take followup
questions.
-br
On Mar 20, 2015, at 2:38 PM, pwl42
[email protected] wrote:
hi Bill,
have you ever built a version that would
interpretbitlash code that is stored in the unused part of flash
(ona 32K mcu)? it seems to me that would be a good place
to puta larger program.
—
Reply to this email directly or view it on GitHub
#44.
—
Reply to this email directly or view
it on GitHub.
—
Reply to this email directly or view it on GitHub
#44 (comment).
—
Reply to this email directly or view
it on GitHub.
from bitlash.
IIRC the flash is only writable in pages of some size considerably greater than one byte. And I believe there is some complication about having to be in bootloader mode to write to it, though I may be recalling that incorrectly.
-br
On Mar 21, 2015, at 7:22 AM, pwl42 [email protected] wrote:
I was thinking that I would write to those unused blocks when I loaded bitlash and If I needed to change them later I would use avrdude. Is the flash readable only as 16 bit words and, if so, is that a problem?
On the internet nobody can hear you being subtle. --Linus Torvalds
On Sat, 3/21/15, Bill Roy [email protected] wrote:
Subject: Re: [bitlash] run bitlash code stored in flash (#44)
To: "billroy/bitlash" [email protected]
Cc: "pwl42" [email protected]
Date: Saturday, March 21, 2015, 7:17 AMThanks for clarifying. If I
understand correctly, you would like to write the flash
dynamically at runtime, like the eeprom.Last time I checked, it was considered tricky to write to
flash at runtime, and there were no libraries available to
do it.If, however, someone has developed a library to write to
flash at runtime, this would not be a difficult feature to
implement.-br
On Mar 21, 2015, at 2:16 AM, pwl42
[email protected] wrote:I guess I am just being too picky. I would prefer to
load unused flash memory blocks with bitlash code and have
it executed the same way as code in eeprom. Those blocks
could be replaced without recompiling. Of course, this would
be useful only on the larger devices.On the internet nobody can hear you being subtle.
--Linus Torvalds
On Fri, 3/20/15, Bill Roy
[email protected] wrote:Subject: Re: [bitlash] run bitlash code stored in flash
(#44)To: "billroy/bitlash"
[email protected]Cc: "pwl42" [email protected]
Date: Friday, March 20, 2015, 8:23 PM
Hello and thanks for your question.
You can define functions in flash by adding them to
the“builtin_table” data structure in the file
src/bitlash-builtins.c; see the doc there for the use
of theBUILT_IN macro. Functions built-in this way can be run
justlike eeprom functions.
I hope that helps, and I’m happy to take followup
questions.
-br
On Mar 20, 2015, at 2:38 PM, pwl42
[email protected] wrote:
hi Bill,
have you ever built a version that would
interpretbitlash code that is stored in the unused part of flash
(ona 32K mcu)? it seems to me that would be a good place
to puta larger program.
—
Reply to this email directly or view it on GitHub
#44.
—
Reply to this email directly or view
it on GitHub.
—
Reply to this email directly or view it on GitHub
#44 (comment).—
Reply to this email directly or view
it on GitHub.—
Reply to this email directly or view it on GitHub #44 (comment).
from bitlash.
Related Issues (20)
- Talk to arduino without >command HOT 6
- eeprom overflow error with bitlash run command for a user defined function HOT 3
- Blank user function causes following functions not to appear HOT 2
- Port to spark-core or esp-8266 HOT 7
- Not working on new Arduino.. HOT 9
- Can't save user functions to startup? HOT 27
- Deleted-cant add user functions to memory
- Cant add more then 9 commands inside startup functions
- No support for bypass serial
- Serial flash support? HOT 2
- No need to wait after Wire.requestFrom().
- LED was very dim when using bitlash HOT 1
- bitlash demo - blink does not blink HOT 5
- Problem of output buffer when using bitlash
- ========^ unexpected number error for functions HOT 5
- Run code from eeprom HOT 2
- Make SdCard example code use IDE's inbuilt SD API
- Maintained fork?
- update library for support lastet arduino ide version
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 bitlash.