2017-06-14 09:04 AM
I have a 32F412GDISCOVERY (the one with LDC) board and the stock demonstration firmware is nowhere to be found. I can find the firmware to other discovery boards, but not this one. How can I obtain this firmware source code package?
2017-06-15 12:15 PM
You need to have called HAL_Init() and have the SysTick handler calling into the HAL
void SysTick_Handler(void)
{ HAL_IncTick();}2017-06-15 12:50 PM
It seems to be doing that. And then HAL_IncTick is incrementing uwTick.
2017-06-15 01:22 PM
Then the issue is perhaps that it needs initializing earlier, or some attention to the priority/preempt level is important.
There are definitely blocking issues using HAL_Delay in interrupt, and thus callback, code when SysTick doesn't preempt everything.
2017-06-15 04:35 PM
Bogdan, did you use Keilv5 to compile it?
2017-06-15 09:15 PM
Does appear to fix the BYPASS issue, 19.7 MBps read on a SanDisk Ultra PLUS 32GB (10 MBps write), 15.9 MBps on a Verbatim Ultra 16GB
2017-06-16 05:53 AM
Yes, Keil v5 is my favorite one.
2017-06-16 08:22 AM
And your discovery board is stock? Nothing changed?
2017-06-16 09:54 AM
Thanks for everyone's help. I'm kinda giving up for now on this demonstration code. I can't get it to run properly for some reason. I was able to run the RTC_TimeStamp and BSP example projects. The RTC_TimeStamp ran fine, and the BSP one worked up to the point of the audio recording, at which time it displayed 'DMA Error' on the screen. I've got enough to know that the LDC works and I'm not about to keep debugging this ST code. I'd rather start work on my project and work things out as I build it.
2017-06-16 12:04 PM
Just bought it, updated the CubeMX with the latest STMF4 drivers. The demo was already uploaded to the STM32F412-DISCO board.
2017-06-16 02:10 PM
I updated the CubeMX just to start my regular goal: recreate the drivers using CubeMX.
I want to say that the demo was already uploaded to the new board - the only purpose of the CubeMX refresh was to have 'latest & greatest' drivers for driver generation.