Git Product home page Git Product logo

Comments (5)

billroy avatar billroy commented on September 14, 2024

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.

pwl42 avatar pwl42 commented on September 14, 2024

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.

billroy avatar billroy commented on September 14, 2024

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 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.

pwl42 avatar pwl42 commented on September 14, 2024

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 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).


Reply to this email directly or view
it on GitHub.

from bitlash.

billroy avatar billroy commented on September 14, 2024

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 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 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).


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)

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.