Search found 74 matches

by nelfata
Thu May 07, 2015 2:29 am
Forum: Development of MicroPython
Topic: ADC triggered by timer
Replies: 6
Views: 4384

Re: ADC triggered by timer

Hi again, to follow up on the ADC timer trigger. I am trying to oversample the input analog signal and after trying to increase the TIM8 frequency, I am hitting a limit of 66.66KHz (measured on a scope). I am wondering if there is something badly configured, as I intend to trigger the ADC to a rate ...
by nelfata
Sat Mar 21, 2015 12:44 am
Forum: Development of MicroPython
Topic: ADC triggered by timer
Replies: 6
Views: 4384

Re: ADC triggered by timer

ok thanks guys, just needed to double check.
by nelfata
Wed Mar 18, 2015 5:11 pm
Forum: Development of MicroPython
Topic: ADC triggered by timer
Replies: 6
Views: 4384

Re: ADC triggered by timer

Thank you for the reply.
It is working now, it must have been some initialization issue.
So using TIM8 should not be a problem as long as it does not get configured as a PWM.
Also if the pyb.ADC() is not called it should not be attempting to configure the ADC.
Am I mistaken?
by nelfata
Wed Mar 18, 2015 4:39 am
Forum: Development of MicroPython
Topic: ADC triggered by timer
Replies: 6
Views: 4384

ADC triggered by timer

Hi, I created a module to collect ADC data using interrupts that is triggered by a timer (TIM8) with TRGO. I added ADC_IRQHandler() in stm32f4xx_it.c which should call the corresponding ADC HAL handler. For some reason as soon as I enable TIM8, the code hangs. I disabled the TIM8 handlers (thinking ...
by nelfata
Fri Feb 27, 2015 5:11 pm
Forum: Development of MicroPython
Topic: Compile time warning: override-init
Replies: 7
Views: 2291

Re: Compile time warning: override-init

The version I have is about 1 week old, and it compiles fine under Linux.
I will try to dig more and see.
by nelfata
Mon Feb 23, 2015 12:54 am
Forum: Development of MicroPython
Topic: Compile time warning: override-init
Replies: 7
Views: 2291

Re: Compile time warning: override-init

I am using: -std=gnu99 Here are the GCC options I am using: -fomit-frame-pointer;-falign-functions=16;-ffunction-sections;-fdata-sections;-fno-common;-flto;-mfloat-abi=hard;-mfpu=fpv4-sp-d16;-fsingle-precision-constant;-Wall;-Wextra;-Wstrict-prototypes;-DCORTEX_USE_FPU=TRUE;-DTHUMB_PRESENT;-mno-thum...
by nelfata
Sun Feb 22, 2015 3:25 am
Forum: Development of MicroPython
Topic: Compile time warning: override-init
Replies: 7
Views: 2291

Re: Compile time warning: override-init

Yes every line has a warning. I just showed only a few lines in this post.
I am sure I am selecting some different compiler option, but I don't know which.
I can disable the GOTOS option but just wanted to understand the side effects of this warning.
by nelfata
Thu Feb 19, 2015 7:44 pm
Forum: Development of MicroPython
Topic: Compile time warning: override-init
Replies: 7
Views: 2291

Compile time warning: override-init

Hi, I am having many warning compiling vm.c on a GCC compiler that comes with Ride7 IDE. gcc version 4.8.4 20140725 I am not sure why this is happening, I noticed in vmentrytable.h that there is a pragma line, could it be that it is being ignored? What's the impact of that warning? Thanks. micropyth...
by nelfata
Tue Feb 17, 2015 2:55 pm
Forum: Development of MicroPython
Topic: Building MP as a static library
Replies: 10
Views: 4940

Re: Building MP as a static library

I looked into the cc3200 build files, it seems that FreeRTOS is not being built as a library but it being compiled with MPY. My intent was to build MPY as a library to make it more portable into my application(s) (RTOS or not). Damien, made some changes for me a while back that allowed me to build M...
by nelfata
Tue Feb 17, 2015 4:51 am
Forum: Development of MicroPython
Topic: Building MP as a static library
Replies: 10
Views: 4940

Re: Building MP as a static library

If not too much trouble to ask for Makefile help.
I tried to build the library in bare-arm (make staticlib) with no luck, under unix it builds.
Any info on how to get the bare-arm to build as a library (based on the .mk modifications suggested earlier).

Thanks.