How would I add an attribute to a QSTR def #9832
Replies: 5 comments 31 replies
-
#define FLASHMEM attribute((section(".flashmem"))) these are my attribute DEFS |
Beta Was this translation helpful? Give feedback.
-
Which board/hardware do you use? |
Beta Was this translation helpful? Give feedback.
-
@8888clockradio I'm not quite sure what you're trying to do. QSTR's should be pretty much automatic. All you need to do is use There are a small number of cases where you need to define a QSTR manually if it has special characters in it. I assume you've seen https://docs.micropython.org/en/latest/develop/qstr.html |
Beta Was this translation helpful? Give feedback.
-
Support for the external serial flash and RAM slots of the TEENSY41 is on my list, but not at a high rank. If you need more RAM space, you could use the SEEED ARCH MIX board with 32MByte parallel attached RAM. |
Beta Was this translation helpful? Give feedback.
-
I'm getting this right now? Too many qstrings for the datatype?
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In my python script for the mimxrt port, how would I add an attribute to all the data generated for the frozen state?
I would want to add either FLASHMEM or EXTMEM to all of them. How would I pass a compiler attribute to the QSTR's that are generated. They look like they're macros so I have to dig really deep probably. The root definition of QSTR. Ideally I would like too FLASHMEM QSTR(def), but that doesn't work. Maybe I can convert them to const objtype loose definitions instead of using the QSTR macro. Please help, I'm porting libraries for the cross compiler/mpcross. I can upload some of these, I have the latest numpy ported but all these defs fit into RAM and there's not enough RAM for the QSTRs if I could place them in FLASHMEM or EXTMEM I would be really happy. I also have Kivy ported, that one was easy since it's current python syntax. I could upload these libraries If you would like somewhere. Numpy took like 4 hours to port.
Beta Was this translation helpful? Give feedback.
All reactions