Search found 4 matches

by RockySong
Mon Nov 20, 2017 2:35 am
Forum: Development of MicroPython
Topic: help is appreciated - memory allocated by m_malloc() is automatically free'ed
Replies: 40
Views: 5595

Re: help is appreciated - memory allocated by m_malloc() is automatically free'ed

Thank you all, I've solved this issue by using root pointers! I indeed see multiple usage of MP_STATE_PORT macro but I didn't understand why user should add them to core struct, now I got it ---- it is to 'fool' the GC :) However, this issue comes back (memory is GC'ed) if I use ctrl-D to soft reset...
by RockySong
Fri Nov 17, 2017 6:53 am
Forum: Development of MicroPython
Topic: help is appreciated - memory allocated by m_malloc() is automatically free'ed
Replies: 40
Views: 5595

help is appreciated - memory allocated by m_malloc() is automatically free'ed

Hi, I discover this issue when I was creating an OLED display driver : I used m_malloc() to allocate a framebuffer of 2kB for an OLED display. Then, after a short while, I found the OLED display get messed at the zones where I never draw onto. Later, I set a watchpoint to an address within the frame...
by RockySong
Fri Oct 06, 2017 1:10 pm
Forum: Development of MicroPython
Topic: Preliminary pyboard port to NXP MCUs ---- how to add to micropython repository
Replies: 6
Views: 1549

Re: Preliminary pyboard port to NXP MCUs ---- how to add to micropython repository

Hi Dave, Many thanks for your interest! My working mail is "rocky.song@nxp.com", my WeChat ID is "RockyJoyin", I do hope to work in a team! Should you meet errors in building under KEIL please let me know. I started my porting on micropython release v1.9.1, and cloned many files from the STMHAL port...
by RockySong
Mon Oct 02, 2017 2:00 am
Forum: Development of MicroPython
Topic: Preliminary pyboard port to NXP MCUs ---- how to add to micropython repository
Replies: 6
Views: 1549

Preliminary pyboard port to NXP MCUs ---- how to add to micropython repository

Dear micropython experts, This is Rocky Song from NXP, principal System&Apps engineer of MICR (microcontroller & microprocessor) Business Line, I work in NXP Beijing site, China. I preliminarily ported pyboard to LPC54608 using SDK by cloning the "STMHAL" (now STM32) port, I've added basic modules i...