Search found 1486 matches

by Pito
Tue Sep 19, 2017 2:58 pm
Forum: General discussion
Topic: NuttX on a BluePill
Replies: 32
Views: 470

Re: NuttX on a BluePill

NuttShell (NSH) nsh> free total used free largest Mem: 586496 10336 576160 524272 nsh> nsh> ls -l /dev /dev: crw-rw-rw- 0 console crw-rw-rw- 0 null crw-rw-rw- 0 ttyS0 nsh>nsh> echo Hello STM32DUINO World! Hello STM32DUINO World! nsh> nsh> xd 20000000 256 Hex dump: 0000: 0a 00 00 01 00 00 05 00 00 0...
by Pito
Tue Sep 19, 2017 1:16 pm
Forum: General discussion
Topic: NuttX on a BluePill
Replies: 32
Views: 470

Re: NuttX on a BluePill

Alan, when built for 103ZE only (default settings from 103min,btw I created a new config by search/replace all the stuff required in the entire stm32f103ze-sram folder, to be safe), it works NuttShell (NSH) nsh> free total used free largest Mem: 62208 10320 51888 51888 nsh> When I add in menuconfig ...
by Pito
Tue Sep 19, 2017 9:33 am
Forum: General discussion
Topic: NuttX on a BluePill
Replies: 32
Views: 470

Re: NuttX on a BluePill

I've created stm32f103ze_sram, configured for 512kB heap in external sram, changed the ld script, etc., it compiled into 41kB bin, flashed in. The led blinks, it prints out via UART, so basically it works! And I get fyi up_assert: Assertion failed at file:irq/irq_unexpectedisr.c line: 65 up_dumpstat...
by Pito
Mon Sep 18, 2017 11:01 pm
Forum: General discussion
Topic: Overactive interrupt triggering using internal pullups
Replies: 42
Views: 1168

Re: Overactive interrupt triggering using internal pullups

So it means your 10uF capacitor did not work as the capacitor at higher frequencies. Most probably you have not used a 10uF ceramic multilayer smd one :)
by Pito
Mon Sep 18, 2017 10:40 pm
Forum: General discussion
Topic: NuttX on a BluePill
Replies: 32
Views: 470

Re: NuttX on a BluePill

I think RPi and our MCUs are 2 different worlds with different use cases. I messed a lot with retrobsd.org which is almost full implementation of bsd2.11 and bsd4 on pic32mx/mz, and I can tell you FreeRtos on an MCU and posix-like OS/or_linux are different worlds. The overhead of linux/unix/posix_li...
by Pito
Mon Sep 18, 2017 10:12 pm
Forum: General discussion
Topic: Overactive interrupt triggering using internal pullups
Replies: 42
Views: 1168

Re: Overactive interrupt triggering using internal pullups

We will know more when Octavio will show us the code he actually uses when he experiences issues. Most probably he has the switch from pin against GND, pullup, and the 10uF capacitor from pin to GND. So he discharges the capacitor to GND, and then he slowly charges it via pullup. So the voltage rise...
by Pito
Mon Sep 18, 2017 10:07 pm
Forum: General discussion
Topic: Overactive interrupt triggering using internal pullups
Replies: 42
Views: 1168

Re: Overactive interrupt triggering using internal pullups

So pls be so kind and do post your entire code, otherwise we cannot help you..
by Pito
Mon Sep 18, 2017 9:55 pm
Forum: General discussion
Topic: Overactive interrupt triggering using internal pullups
Replies: 42
Views: 1168

Re: Overactive interrupt triggering using internal pullups

@octavio: try to use a different pin for the interrupt, not PA4. Try PA0.
PA4 is SPI1 NSS, you do a remapping of SPI1, maybe there is something weird.
BTW, SPI1 is not at PB3,4,5 by default, but on PA4,5,6,7.
by Pito
Mon Sep 18, 2017 8:51 pm
Forum: General discussion
Topic: Overactive interrupt triggering using internal pullups
Replies: 42
Views: 1168

Re: Overactive interrupt triggering using internal pullups

I get aditionals interrupts without pin changing value, when the button is released and the pin voltage goes slowly (about 200ms) from 0 to 3.3v.Since the interrupt happens without a pin status change,it should be a bug ,not electrical noise. Could you explain me in more detail - what does it mean ...
by Pito
Mon Sep 18, 2017 8:05 pm
Forum: General discussion
Topic: Overactive interrupt triggering using internal pullups
Replies: 42
Views: 1168

Re: Overactive interrupt triggering using internal pullups

Victor, the 3 outputs of CMOS logic (3.3V) are fed into interrupts inputs - ie PA2, PB3, PA0 (works with any pins with index <= 5, not the same index on several ports).. You know what I mean :) There are 360ohm resistors in series in my case. I've put them there to minimize ringing (it may catch mor...