Search found 209 matches

by danieleff
Mon May 22, 2017 4:15 pm
Forum: Generic STM32F103
Topic: USB Observations
Replies: 25
Views: 204

Re: USB Observations

I have it, the Serial Monitor code only waits a short time for the Serial.begin(). If it doesn't see the Serial.begin() the Serial Monitor screen stays blank. I don't know what the sketch is actually doing. --edit: Doesn't explain the programming not working. Does the boot loader spend 265ms trying...
by danieleff
Mon May 22, 2017 3:45 pm
Forum: Generic STM32F103
Topic: USB Observations
Replies: 25
Views: 204

Re: USB Observations

This actually works in Windows too, waiting 3 seconds at the end of win/maple_upload.bat (`ping -n 3 127.0.0.1 > nul`), and I do not have to close/reopen the serial monitor. (MapleMini, bootloader, Arduino 1.8.2)
by danieleff
Mon May 22, 2017 7:26 am
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 125
Views: 1083

Re: [STM32GENERIC] SDIO DMA

Daniel, if you want to merge the SDIO files to your branch we can do that too. I haven't sent a PR because I have not looked yet and what you did for the F7, so I din't want to overwrite anything with my changes that may be needed for the F7, and I'm working off the version that was not split in se...
by danieleff
Sun May 21, 2017 6:59 am
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 125
Views: 1083

Re: [STM32GENERIC] SDIO DMA

If I put `while (HAL_SD_GetCardState(&hsd) == HAL_SD_CARD_PROGRAMMING);` into the no-dma part of `SDIOClass::writeBlocks` (just like the dma part), noDMA also works: FreeStack: 93359 Type is FAT32 Card size: 7.78 GB (GB = 1E9 bytes) Manufacturer ID: 0X2 OEM ID: TM Product: SA08G Version: 2.2 Ser...
by danieleff
Sun May 21, 2017 6:47 am
Forum: STM32F4 Boards
Topic: linux with COM1 not available message
Replies: 2
Views: 30

Re: linux with COM1 not available message

STM32F407 Discovery has 2 USB:

Normal USB: ST-Link only, no COM
micro USB: COM (USB Serial)

I think it only works if both are connected (board not powers from micro USB(?))
by danieleff
Sun May 21, 2017 6:35 am
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 125
Views: 1083

Re: [STM32GENERIC] SDIO DMA

It it strange but it only works if I set _useDMA = true; with _useDMA = false;, I get write errors: FreeStack: 125619 Type is FAT32 Card size: 7.78 GB (GB = 1E9 bytes) Manufacturer ID: 0X2 OEM ID: TM Product: SA08G Version: 2.2 Serial number: 0XD1C17F26 Manufacturing date: 6/2010 File size 5 MB Buff...
by danieleff
Thu May 18, 2017 5:13 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 125
Views: 1083

Re: [STM32GENERIC] SDIO DMA

Regarding the HAL updates. The core F4 HAL is from 2016. The new HAL from April 2017 has a lot of changes. Different functions, function names, returns. There must be a reason for such major changes. Most likely will result in breaking compatibility with the F1 or others that have not been updated ...
by danieleff
Thu May 18, 2017 3:52 pm
Forum: STM32generic
Topic: [STM32GENERIC] HAL Timer
Replies: 4
Views: 53

Re: [STM32GENERIC] HAL Timer

It seems that the original code was compiled in c, not c++. HAL_TIM_Base_MspInit also needs extern "C", and HAL_TIM_Base_Start_IT starts with interrupts, not HAL_TIM_Base_Start. The whole code seems to be quite complex for an example. This should do the same: static TIM_HandleTypeDef s_Tim...
by danieleff
Thu May 18, 2017 10:26 am
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 125
Views: 1083

Re: [STM32GENERIC] SDIO DMA

Given that for example readBlocks just calls HAL_SD_ReadBlocks and thats it, I hope those issues are fixed in HAL. (except maybe clock setup).

Which reminds me, there are actually newer HAL firmware versions for the series, so I will upgrade them when I get home; that may help too.
by danieleff
Thu May 18, 2017 10:09 am
Forum: STM32generic
Topic: [STM32GENERIC] HAL Timer
Replies: 4
Views: 53

Re: [STM32GENERIC] HAL Timer

void TIM2_IRQHandler
should be
extern "C" void TIM2_IRQHandler

But because PWM is using TIM2 that, you will probably get a compile error. So try TIM3

Go to advanced search