Some functions to handle assembler #369
Replies: 7 comments
-
Posted at 2014-07-08 by @gfwilliams Nice! If this were a module, you could do something like this from within an existing module, and it would all 'just work':
The module could also do some more interesting stuff - perhaps using STM32F1Flash to write the data into flash memory, so it can still be used after power off. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-07-08 by JumJum Module could be like this
It could be used like this
I can't follow the comment about STM32F1Flash. That module already exists in your collection. Which kind of data would you write from ASM to Flash ? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-07-08 by @gfwilliams At the moment, the assembler code is written into RAM at the end of the stack. It means that if you power the board off and back on you'd have to call By writing the data into flash, it could be stored there so the functions worked like you'd expect after power cycling (that's what STM32F1Flash can do). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-07-10 by JumJum IMHO, STM31F1Flash should support this with a command like copyMem(startAdress,endAdress,length) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-07-10 by @gfwilliams Sorry, I'm not sure I understand. You want another method inside it? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-07-10 by JumJum Let me try with other words. The assembler module is designed to support handling of multiple binaries from everywhere (module or main code). We don't have too much experience with binaries, anyway my expection is that they are stored in memory in most cases. To be useful, the modul should be small. The decision of storing in Flash is project specific. If somebody wants to copy binaries to flash, it would be helpful to have a function in the module for Flash handling. Some other functions like copy arrays to Flash may also be helpful. In my project, this is not the case (yet?). Therefore I'm not asking for it. And I will not extend ASM module. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-05-11 by @gfwilliams The situation here has now changed a bit... When you write assembler it's now assembled into a 'flat string' which is stored in the RAM dedicated to variable storage. It means that you can now Loading from flash is now as easy as:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-07-08 by JumJum
I was searching for a way to handle assembler code.
Web Editor supports this in a nice way, but how should assembler be treated in modules.
So a small object was born, which supports loading from array and/or from local sdCard.
Location for storage are calculated inside the object, so multiple binarys are easy to handle.
There is also a list of loaded binarys.
Beta Was this translation helpful? Give feedback.
All reactions