Search found 140 matches

by avrhack
Tue Sep 14, 2021 10:48 am
Forum: ChibiOS/RT
Topic: chHeapAlloc always returns NULL
Replies: 7
Views: 4485

Re: chHeapAlloc always returns NULL

You need to give me specifics about your setup if you want a meaningful answer. The heap allocator is working on all demos. Giovanni Oh I'm sure it's not a ChibiOS defect but something in my setup. The test that triggers the NULL return is in chmemcore.c: /* Considering also the case where there is...
by avrhack
Mon Sep 13, 2021 10:23 pm
Forum: ChibiOS/RT
Topic: chHeapAlloc always returns NULL
Replies: 7
Views: 4485

Re: chHeapAlloc always returns NULL

Did you ever solve this? I've got the same problem - LWIP is failing in tcpip_init when it tries to allocate a semaphore, because chHeapAlloc is returning NULL. I'm running a shell which shows there is Core Mem of >13k available but no heap. Thoughts?
by avrhack
Mon May 03, 2021 7:52 pm
Forum: Development and Feedback
Topic: Debug startup code
Replies: 3
Views: 2184

Re: Debug startup code

I've tried to find an appropriate point for that breakpoint but can't find one that triggers so I'm starting to think it's the damned changes ST made to the 'boot' pin on later processors ie reversing the polarity. No idea why they did that - just causes bloody pain for everyone.
by avrhack
Mon May 03, 2021 4:47 pm
Forum: Development and Feedback
Topic: Debug startup code
Replies: 3
Views: 2184

Debug startup code

Can someone remind me how the hell to debug Chibios startup code with gdb as it's handing before it gets to main() so 'start' is useless. I've done this before but can't remember how, nor can I find any useful hits through google either in this forum or more generally. I'm sure it will be a clock is...
by avrhack
Sat Apr 24, 2021 9:34 am
Forum: Bug Reports
Topic: STM32L432, STM32L433 and STM32L443 HAL port issues Topic is solved
Replies: 10
Views: 5527

Re: STM32L432, STM32L433 and STM32L443 HAL port issues Topic is solved

Giovanni wrote:Hi,

That other bug has been fixed, could you also check everything is fine now? thanks.

Giovanni


Yes saw your update on that. Will do - may take me a few days as we have visitors this weekend but will test early next week thanks.
by avrhack
Mon Apr 19, 2021 9:26 am
Forum: Development and Feedback
Topic: Explanation of PAL_NEW_INIT
Replies: 7
Views: 2715

Re: Explanation of PAL_NEW_INIT

If you have a separate board file for each board, it doesn't matter at all how they are created. Then use conditionals in the makefile to select the right file (often you need different scatter files, and maybe other files, as well, so its the logical place to put everything). I've found that appro...
by avrhack
Sun Apr 18, 2021 5:29 pm
Forum: Development and Feedback
Topic: Explanation of PAL_NEW_INIT
Replies: 7
Views: 2715

Re: Explanation of PAL_NEW_INIT

Hi, Board files are totally different, you should not assume those are the same. You need a board file for the F1 and a different one for the L4. PAL_NEW_INIT should not even be visible to the end user, it is a macro internal to the driver. Giovanni As the F103 and L433/L443 are compatible, they ca...
by avrhack
Sun Apr 18, 2021 5:18 pm
Forum: Development and Feedback
Topic: Explanation of PAL_NEW_INIT
Replies: 7
Views: 2715

Re: Explanation of PAL_NEW_INIT

Hi, Probably your problem is that F1 uses GPIOv1 while L4 uses GPIOv2 or GPIOv3 depending on the model. Aren't you using makefiles? this should be pretty much transparent. Giovanni Yes I'm using Makefiles - copied from the examples. That's not the issue; it's that the configuration of the board.h a...
by avrhack
Sun Apr 18, 2021 4:27 pm
Forum: Development and Feedback
Topic: Explanation of PAL_NEW_INIT
Replies: 7
Views: 2715

Explanation of PAL_NEW_INIT

I'm really struggling in trying to set up my board.h, board.c etc. etc. with conditional compilation so it can handle being compiled for F103 and L433/L443 processors. The current 'mess' I'm in seems to stem from massive changes to the PAL definitions which are tied to PAL_NEW_INIT but I can't figur...
by avrhack
Mon Apr 12, 2021 7:59 am
Forum: Bug Reports
Topic: STM32L432, STM32L433 and STM32L443 HAL port issues Topic is solved
Replies: 10
Views: 5527

Re: STM32L432, STM32L433 and STM32L443 HAL port issues Topic is solved

Hi, This has been reported among other problems: http://forum.chibios.org/viewtopic.php?f=35&t=5823 Giovanni Thanks Giovanni. I did think it was very strange if no-one else had spotted it and did a search which is how I found this topic but clearly didn’t get the right search terms! Apologies. ...

Go to advanced search