Search found 12 matches
- Mon Jun 17, 2019 5:06 am
- Forum: General Discussion and Questions
- Topic: How to get uint(uint16_t) from arg?
- Replies: 2
- Views: 2848
Re: How to get uint(uint16_t) from arg?
Can you explain what you mean in more detail? Or perhaps an example showing the problem you're seeing? You should just be able to write int a = mp_obj_get_int(args[5]); uint16_t b = a; If a is in the range [0, 65535] then b will have the same value. If a is negative or greater than 65535 then you'l...
- Sun Jun 16, 2019 3:57 pm
- Forum: General Discussion and Questions
- Topic: How to get uint(uint16_t) from arg?
- Replies: 2
- Views: 2848
How to get uint(uint16_t) from arg?
Hi there,
How can I get uint integer from arg?
int c = mp_obj_get_int(args[5]);
when i use the variable c that fit into uint16_t, i think it will discard values greater than 32767....
............
How can I get uint integer from arg?
int c = mp_obj_get_int(args[5]);
when i use the variable c that fit into uint16_t, i think it will discard values greater than 32767....
............
- Sun Apr 28, 2019 8:32 am
- Forum: Hardware Projects
- Topic: How to expand the size of spiflash?
- Replies: 9
- Views: 9016
Re: How to expand the size of spiflash?
@turoksama it looks like you're using the spiflash #defines, but setting qspiflash pins. e.g. MICROPY_HW_SPIFLASH_IO0 isn't actually used by anything (unless you've also written more code not posted here to configure the soft qpsi?) Have a look at ports/stm32/boards/STM32F769DISC/mpconfigboard.h to...
- Thu Apr 25, 2019 12:54 pm
- Forum: Hardware Projects
- Topic: How to expand the size of spiflash?
- Replies: 9
- Views: 9016
- Tue Apr 23, 2019 11:55 am
- Forum: Hardware Projects
- Topic: How to expand the size of spiflash?
- Replies: 9
- Views: 9016
Re: How to expand the size of spiflash?
Well, it is stm32 platform.
So, why the capacity setting is not affective? Are there any tricks hide somewhere?
So, why the capacity setting is not affective? Are there any tricks hide somewhere?
- Tue Apr 23, 2019 11:46 am
- Forum: Hardware Projects
- Topic: How to expand the size of spiflash?
- Replies: 9
- Views: 9016
Re: How to expand the size of spiflash?
Hi,
A custom board designed by myself, STM32F411RET6 CPU.
Mostly looks like PYBV10, but embeded an spiflash of 16MB capacity(use softqspi).
Due to the size of firmware(add some custom libs), I have to use that spiflash for USB storage instead of internal flash.
A custom board designed by myself, STM32F411RET6 CPU.
Mostly looks like PYBV10, but embeded an spiflash of 16MB capacity(use softqspi).
Due to the size of firmware(add some custom libs), I have to use that spiflash for USB storage instead of internal flash.
- Tue Apr 23, 2019 11:09 am
- Forum: Hardware Projects
- Topic: How to expand the size of spiflash?
- Replies: 9
- Views: 9016
How to expand the size of spiflash?
Hi there, I built a custom stm32f411 board recently, embeded with a 16MB spiflash(Do not use internal flash for storage). When loaded the firmware, it's max size is 2MB, not 16MB, and something wrong with file read or write. I've look up over all codes about spiflash in Micropython but with no luck....
- Thu Apr 04, 2019 3:59 am
- Forum: General Discussion and Questions
- Topic: Where to find any docs about upy FULL FEATURE PORTING guides?
- Replies: 4
- Views: 3246
Re: Where to find any docs about upy FULL FEATURE PORTING guides?
Yep, I found it too.dhylands wrote: ↑Thu Apr 04, 2019 3:25 amSee this thread: https://github.com/micropython/micropython/pull/4669
I'll look into that.
Thanks!
- Thu Apr 04, 2019 3:07 am
- Forum: General Discussion and Questions
- Topic: Where to find any docs about upy FULL FEATURE PORTING guides?
- Replies: 4
- Views: 3246
Re: Where to find any docs about upy FULL FEATURE PORTING guides?
Hi,
Great, thank you!
Where can i find PYBD port?
Great, thank you!
Where can i find PYBD port?
- Wed Apr 03, 2019 2:29 pm
- Forum: General Discussion and Questions
- Topic: Where to find any docs about upy FULL FEATURE PORTING guides?
- Replies: 4
- Views: 3246
Where to find any docs about upy FULL FEATURE PORTING guides?
Hi there, I tried to build upy recently, it is really great! Amazing work. After serial days hard work, I still have little idea about porting to a custom board, there are lots of boards can be refrenced though. Because not all of these boards support a particular feature, and don't know what to do ...