Breakpoints no longer working after freeRTOS osKernelStart() called
Hello Everyone,
Am looking for a little help on what I hope is a simple issue.
A quick summary is when I use freeRTOS + STM32Cube and set a breakpoint in one of the default task lines it never triggers. Breakpoints enabled before the scheduler is started work ok.
Can anyone point me in a direction to remedy this? Will provide more details below.
BTW, I'm new to the community and this is my first time posting. Happy to hear any suggestions from any of you that will improve my posts.
Details
- purchased a STM32F769I-DISCO eval board.
- I have a simple project that blinks the DISCO board LEDS
- originally it was done without the RTOS enabled. Breakpoints and all worked great
- added the FreeRTOS and moved the blinking code over to use OS related stuff in the default task.
- the program ran ok.
- however, when a breakpoint is set it never pauses the app
- i configured the RTOS proxy and that all appears to be working fine if I manually pause the app.
- i also found a suggestion of adding a __asm("bpnt"); line in default task. This did halt the processor.
- have tried many different remedies where I moved the tick to TMR7 and others. Did all the config and code changes etc. Code still runs ok but no BP's.
- have tried using openOCD instead of STLink. no joy
- have followed a couple of different STMicro videos related to this topic without success. the only one I haven't tried yet is the SWT variation i found in one video.
- have tried the system init additions of APB1FZ = 0x7E01BFF, APB2F2 = 0x70003 with no luck
- not sure where to go now. I did find something indicating the M7 Core has an issue in some of the early versions and could be causing the issue.
- I currently believe i have just missed something in setup/config but can't find it.
- would really appreciate some advice / help on this one.
- can provide code blocks if that would help.
Cheers,
MC

