Search found 35 matches

by ProudPagan
Sat Jun 15, 2019 1:10 pm
Forum: Other Boards
Topic: [Black STM32F407VET6] Pin map
Replies: 10
Views: 7542

[Black STM32F407VET6] Pin map

Hi,

I am looking for the MicroPython pin name <--> board pin name (PX-## etc.) mapping for the
Black STM32F407VET6.

Could anyone point me to that?

Thanks

PP
by ProudPagan
Fri Jun 14, 2019 6:37 am
Forum: Development of MicroPython
Topic: Can't load external C modules in MP Windows
Replies: 2
Views: 2010

Re: Can't load external C modules in MP Windows

I see. I'll stick to MP on WSL Ubuntu for now. Thanks.
by ProudPagan
Thu Jun 13, 2019 3:52 am
Forum: Development of MicroPython
Topic: Passing structs to external C modules
Replies: 4
Views: 3575

Re: Passing structs to external C modules

Thanks a ton!

My module is now done.

PP
by ProudPagan
Thu Jun 13, 2019 3:50 am
Forum: Development of MicroPython
Topic: Can't load external C modules in MP Windows
Replies: 2
Views: 2010

Can't load external C modules in MP Windows

Hi, I just created a C module that loads and works correctly on the unix port (WSL Ubuntu), but when I create a windows exe and try to load it, I get: >>> import mpmymod Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: no module named 'mpmymod' I cross-compiled on ...
by ProudPagan
Wed Jun 12, 2019 7:59 am
Forum: Development of MicroPython
Topic: Passing structs to external C modules
Replies: 4
Views: 3575

Re: Passing structs to external C modules

Hi jimmo, Thanks for the reply. You are right -- it might get very kludgy trying to use ustruct or uctypes, and probably not possible at all. Instead, I wrote a C wrapper around the lower level C functions. This C wrapper handles all the struct and pointer management and will take a string and an in...
by ProudPagan
Tue Jun 11, 2019 5:38 am
Forum: Development of MicroPython
Topic: Passing structs to external C modules
Replies: 4
Views: 3575

Passing structs to external C modules

Hi, I need to pass a C struct (below) from MicroPython to an external C module. typedef struct { struct myS *stptr; uint32_t i; uint32_t *jptr; } myT; I am planning to pack a ustruct and call the C function, but what `mp_obj_get_ ( )` should I call in my C function to retrieve the struct? Thanks ver...
by ProudPagan
Fri Jun 07, 2019 7:43 am
Forum: Other Boards
Topic: STM32F407VE: mpy-cross ValueError with @micropython.native decorator
Replies: 3
Views: 2310

Re: STM32F407VE: mpy-cross ValueError with @micropython.native decorator

Thanks for tip. I have another question on native code execution: When I enable `MICROPY_DYNAMIC_COMPILER` in py/mpconfig.h // Whether the compiler is dynamically configurable (ie at runtime) // This will disable the ability to execute native/viper code #ifndef MICROPY_DYNAMIC_COMPILER #define MICRO...
by ProudPagan
Thu Jun 06, 2019 4:38 pm
Forum: Other Boards
Topic: STM32F407VE: mpy-cross ValueError with @micropython.native decorator
Replies: 3
Views: 2310

STM32F407VE: mpy-cross ValueError with @micropython.native decorator

Since my frozen modules did not work ( https://github.com/micropython/micropython/issues/4829 ), I am trying to cross compile my sources into frozen bytecode (.mpy files) When I do not use the @micropython.native decorator, the .mpy file works OK. However, when I use the decorator, I see this error:...
by ProudPagan
Wed Jun 05, 2019 5:28 am
Forum: Other Boards
Topic: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails
Replies: 6
Views: 3561

Re: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails

Just did!
jimmo wrote:
Tue Jun 04, 2019 10:20 pm
Can you post a follow-up to the bug?
That warning definitely sounds like it would be related to your problem.
by ProudPagan
Tue Jun 04, 2019 3:20 pm
Forum: Other Boards
Topic: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails
Replies: 6
Views: 3561

Re: BLACK_F407VE: @micropython.native in frozen bytecode decorator build fails

I just picked up the fix to mpy-tool.py that Damien committed (https://github.com/micropython/micropython/issues/4829) The build proceeds with warnings, but now my function (__truediv__) doesn't work -- I get this message: Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeEr...