Search found 12 matches

by MarkusS
Fri Jun 22, 2018 5:06 pm
Forum: User Projects
Topic: STM32F030F4 Shell, PWM Sinewave, ADC, TIM14
Replies: 2
Views: 2344

Re: STM32F030F4 Shell, PWM Sinewave, ADC, TIM14

Hey Robert, thanks for sharing your work. I am struggling with my STM32F030F4 and ChibiOS-18.2.0/1, so I thought I give your example code a try. I downloaded ChibiOS-17.6.4 (since it seems that your project is using 17.6.x) and tried to compile, but the compiler complains that it can't find the boar...
by MarkusS
Tue Jan 30, 2018 10:36 pm
Forum: STM32 Support
Topic: DFU Mode from running code?
Replies: 7
Views: 1984

Re: DFU Mode from running code?

I tried this before and failed. I am not sure what I did wrong, but I was not able to get the DFU mode running after ChibiOS initialized the uC. My solution was a combination of hard and software. I used a 1 MOhm pull-down resistor for the BOOT0 pin and added a 2.2uF cap in parallel. And I also conn...
by MarkusS
Mon Jun 15, 2015 2:45 pm
Forum: STM32 Support
Topic: Is STM32F030K6 supported?
Replies: 14
Views: 3305

Re: Is STM32F030K6 supported?

Gunzung, please find the blink project attached. It compiles with a stock 2.6.8 (my 2.6.3 is a bit modified, so I tested it also against a clean 2.6.8). Works on my very simple STM32F030F4 development/breakout board. LED goes between PIN14 (PB1) and GND (PIN15) with suitable current limiting resisto...
by MarkusS
Fri Jun 12, 2015 4:09 am
Forum: STM32 Support
Topic: Is STM32F030K6 supported?
Replies: 14
Views: 3305

Re: Is STM32F030K6 supported?

I have ChibiOS 2.6.3 running with a STM32F030F4 without issues using PWM, ICU, ADC and Serial. So the F030 are at least somewhat supported. The F4 has also 4kB of RAM and only 16kB of Flash, whereas the K6 has 32kb of Flash... If you tell me on which GPIO your LED is, I could send you a sample blink...
by MarkusS
Tue Apr 14, 2015 4:19 am
Forum: STM32 Support
Topic: DAC error for STM32F4 discovery
Replies: 13
Views: 4179

Re: DAC error for STM32F4 discovery

Fabien, I think I found two small errors in you DAC driver (I used the one from https://github.com/ChibiOS/ChibiOS-Drivers/tree/ChibiOS-2.6): I was trying to use dacConvert with channel 2 on a custom STM32F4 board, but at first I only could set channel 1, channel 2 stayed at 0 V. In dac_lld_single_c...
by MarkusS
Fri Mar 07, 2014 3:47 pm
Forum: STM32 Support
Topic: [TODO] ICU not working in 2.6.3 without period CB
Replies: 7
Views: 2222

Re: ICU not working in 2.6.3 without period CB

Yes, it is working with NULL in 2.6.1 and 2.6.2 (at least for me on an STM32F4 and an STM32F1...). And the overflow cb is NULL in the example as well, so how should one know that the other cb's can't be NULL? If it is that way, perhaps we should add an assert there so we can catch it?
by MarkusS
Wed Mar 05, 2014 11:26 pm
Forum: General Support
Topic: Soft reset
Replies: 16
Views: 9340

Re: Soft reset

Mike, I guess your right (some I got confused, my code would jump to 0x1FFF0004, but you need to jump to the address stored at 0x1FFF0004), but even with the correct jump the boot loader does not start correctly. I tried several different ways to stop ChibiOS and to re/de-initialize the uC, but no l...
by MarkusS
Wed Mar 05, 2014 11:07 pm
Forum: STM32 Support
Topic: [TODO] ICU not working in 2.6.3 without period CB
Replies: 7
Views: 2222

[TODO] ICU not working in 2.6.3 without period CB

Hi, I have problems with 2.6.3 using the ICU wihtout a period CB (on a STM32F4Discovery board). If I define a dummy period CB, 2.6.3 works as 2.6.2.Without the periodCB, the widthCB does not get called. Here is a modified PWM_ICU example showing the problem: #include "ch.h" #include "...
by MarkusS
Wed Mar 05, 2014 1:38 am
Forum: General Support
Topic: Soft reset
Replies: 16
Views: 9340

Re: Soft reset

NVIC_SystemReset works like a charm on STM32. You could also go 'bare-metal' and do a: SCB_AIRCR = (AIRCR_VECTKEY | (SCB_AIRCR & (0x700)) | (1 << 2)); // reset which worked for me on STM32F103xx and STM32F4xx... But I have another question regarding the ChibiOS shutdown/reset: I am trying to jum...
by MarkusS
Sat Jun 02, 2012 2:50 am
Forum: General Support
Topic: Example code for Serial Communication over USB
Replies: 4
Views: 3760

Re: Example code for Serial Communication over USB

Giovanni, thanks for the quick response. Works like a charm on my modded STM32VLDiscovery board. I replaced the VL uC with a STM32F103RG XL): --------- snip ---------- ChibiOS/RT Shell ch> info Kernel: 2.5.0 Compiler: GCC 4.6.0 Architecture: ARMv7-M Core Variant: Cortex-M3 Port Info: Advanced kernel...

Go to advanced search