ladislas

ladislas

CTO @leka

Member Since 9 years ago

Leka Inc. - @leka , Paris, France

Experience Points
62
follower
Lessons Completed
260
follow
Lessons Completed
377
stars
Best Reply Awards
55
repos

1737 contributions in the last year

ladislas Most Used Languages
ladislas GitHub Stats

6 Pinned

⚡ Start your Arduino projects right out of the box
⚡ Homebrew AVR Toolchain
⚡ Lean 'n' Clean Neovim Config
⚡ A simple and easy to use event manager
Sep
17
9 hours ago
Sep
15
2 days ago
Activity icon
issue

ladislas issue comment STMicroelectronics/cmsis_device_f7

ladislas
ladislas

CMSIS configuration defines are too generic

Original posted here: https://github.com/ARMmbed/mbed-os/issues/15047

Description of defect

Some TARGET/CMSIS defines are given names that are really generic such as DMA2D in https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32F7/STM32Cube_FW/CMSIS/stm32f769xx.h

This prevents the user from defining variables/structs/classes with the same name. In our case we want to have:

namespace interface {

class DMA2D
{
	// ...
};

}

To define the DMA2D interface other components would need.

I could rename it DMA2DBase but this breaks our naming rules.

DMA2D is not the only one and the same issues could arise with JPEG, DSI, DAC, ADC, etc.

Target(s) affected by this defect ?

SM32F769 but others might be as well.

Toolchain(s) (name and version) displaying this defect ?

arm-none-eabi-c++ (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.2.1 20201103 (release)

How is this defect reproduced ?

See description on how to reproduce.

Ideas on how to fix

From the top of my head:

  • use another name
  • prefix wit ST_, e.g. ST_DMA2D
  • encapsulate in MAKE_SIMPLE_NAMES_PUBLIC macro to be able to opt out from having DMA2D and rely on DMA2D_BASE
ladislas
ladislas

That's too bad...

What about something like:

#ifndef HIDE_PERIPHERAL_DECLARATION
// ...
#define DMA2D               ((DMA2D_TypeDef *)DMA2D_BASE)
// ...
#endif

This way it won't break anything in current code and people who need it can just define HIDE_PERIPHERAL_DECLARATION somewhere.

Sep
13
4 days ago
Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Linking with stl

Thank you for the amazing job , you saved me some hours but I have to ask( it's more of a question and less of an issue): How we link to <atomic>s ? I can't find an implementation of stl for avr's on the internet and I hoped you had some insight Thanks again

ladislas
ladislas

We could make this optional with a patch. Of even a stand-alone formulae if it gains traction.

Sep
10
1 week ago
Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Linking with stl

Thank you for the amazing job , you saved me some hours but I have to ask( it's more of a question and less of an issue): How we link to <atomic>s ? I can't find an implementation of stl for avr's on the internet and I hoped you had some insight Thanks again

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Linking with stl

Thank you for the amazing job , you saved me some hours but I have to ask( it's more of a question and less of an issue): How we link to <atomic>s ? I can't find an implementation of stl for avr's on the internet and I hoped you had some insight Thanks again

ladislas
ladislas

Do you plan on building a recipe with P0829 freestanding proposal?

No, but I'm happy to look at a PR if needed.

Can I see somewhere the flags with which you compiled gcc, and maybe help on linking more of the stl?

Here: https://github.com/osx-cross/homebrew-avr/blob/master/Formula/avr-gcc%4010.rb

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Linking with stl

Thank you for the amazing job , you saved me some hours but I have to ask( it's more of a question and less of an issue): How we link to <atomic>s ? I can't find an implementation of stl for avr's on the internet and I hoped you had some insight Thanks again

ladislas
ladislas

We only provide support for avr-libc, wich is a subset of the C standard library.

https://www.nongnu.org/avr-libc/

C++ syntax does work but the STL is not available as is.

Alternatives do exist:

Sep
9
1 week ago
pull request

ladislas pull request osx-cross/homebrew-avr

ladislas
ladislas

Updated formulas to use patch for ATMega168pb

Second part to fix #245

I removed with-ATMega168pbSupport option from avr-gcc@5 since it seems to be incompatible with the patch, which i didn't noticed before.

I compiled every avr-gcc version on my BigSur machine and gave it a small tests, looks good.

Two questions comes to my mind:

  • should i include the new "with-newer-mcus" option already in this PR?
  • should "with-newer-mcus" replace "with-ATMega168pbSupport" or added?
Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Updated formulas to use patch for ATMega168pb

Second part to fix #245

I removed with-ATMega168pbSupport option from avr-gcc@5 since it seems to be incompatible with the patch, which i didn't noticed before.

I compiled every avr-gcc version on my BigSur machine and gave it a small tests, looks good.

Two questions comes to my mind:

  • should i include the new "with-newer-mcus" option already in this PR?
  • should "with-newer-mcus" replace "with-ATMega168pbSupport" or added?
ladislas
ladislas

@Feuerwerk Thanks for the PR! I've taken your branch to clean up a little bit and merged with 399f9cf

I'm closing this PR :)

push

ladislas push osx-cross/homebrew-avr

ladislas
ladislas

Updated patch url for ATMega168pb

ladislas
ladislas

Removed patch from avr-gcc@5

ladislas
ladislas

Updated patch url to point them to a specific commit to satisfy workflow test

ladislas
ladislas

Fix style issues

Closes #258.

Signed-off-by: osxCrossTestBot osxCrossTestBot@leka.io

ladislas
ladislas

avr-gcc@9: update 9.3.0_3 bottle.

ladislas
ladislas

avr-binutils: update 2.36.1 bottle.

ladislas
ladislas

avr-gcc@8: update 8.4.0_2 bottle.

ladislas
ladislas

avr-gcc@11: update 11.1.0_1 bottle.

ladislas
ladislas

avr-gcc@5: update 5.5.0 bottle.

ladislas
ladislas

avr-gcc@10: update 10.2.0_2 bottle.

commit sha: e745df6a2bd4225f27d0d9d80e0863dcda5128c7

push time in 1 week ago
Activity icon
delete

ladislas in osx-cross/homebrew-avr delete branch ladislas/feature/feuerwerk-fix-support-atmega168pb

deleted time in 1 week ago
pull request

ladislas pull request osx-cross/homebrew-avr

ladislas
ladislas

ladislas/feature/feuerwerk fix support atmega168pb

  • Updated patch url for ATMega168pb
  • Removed patch from avr-gcc@5
  • Updated patch url to point them to a specific commit to satisfy workflow test
  • Removed unused assignment from formula@5
Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Unknown symbol format elf32-avr fix for avr-gdb

Added patch suggested by https://github.com/osx-cross/homebrew-avr/issues/251#issuecomment-879036177 to resolve issue loading avr elf files into avr-gdb.

ladislas
ladislas

Thanks for the PR @failsafe89 -- for the patch to work, you need to submit a first PR with just the patch. when merged into master, you'll then be able to use the correct patch url pointing to this repo instead of yours

Then you can resubmit this PR with a cleaned up git history

push

ladislas push osx-cross/homebrew-avr

ladislas
ladislas

Removed patch from avr-gcc@5

ladislas
ladislas

Updated patch url to point them to a specific commit to satisfy workflow test

commit sha: 11b2a8c7c7e739c49446d10f015bf95cbd8751e9

push time in 1 week ago
push

ladislas push osx-cross/homebrew-avr

ladislas
ladislas

Removed patch from avr-gcc@5

ladislas
ladislas

Updated patch url to point them to a specific commit to satisfy workflow test

commit sha: 7cca11e35b6d3fcad73266bc62398a66f380cf6b

push time in 1 week ago
Activity icon
created branch

ladislas in osx-cross/homebrew-avr create branch ladislas/feature/feuerwerk-fix-support-atmega168pb

createdAt 1 week ago
pull request

ladislas pull request osx-cross/homebrew-avr

ladislas
ladislas

ladislas/feature/feuerwerk fix support atmega168pb

  • Updated patch url for ATMega168pb
  • Removed patch from avr-gcc@5
  • Updated patch url to point them to a specific commit to satisfy workflow test
  • Removed unused assignment from formula@5
Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

avarice 2.14

Created with brew bump-formula-pr.

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

Linking with stl

Thank you for the amazing job , you saved me some hours but I have to ask( it's more of a question and less of an issue): How we link to <atomic>s ? I can't find an implementation of stl for avr's on the internet and I hoped you had some insight Thanks again

ladislas
ladislas

it's a system header, so if it's available your code will compile, and if not it will tell you so.

std::atomic is available with -std=c++11

Here are some interesting reads:

Sep
8
1 week ago
pull request

ladislas pull request leka/LekaOS

ladislas
ladislas

:arrow_up: (toolchain): Upgrade GNU Arm Embedded Toolchain to version 10.3-2021.07

  • :construction_worker: (toolchains): Add workflow for toolchain upgrade
  • :construction_worker: (analysis): Add sticky comment header key to differentiate comments
  • fixup - formatting
push

ladislas push leka/LekaOS

ladislas
ladislas

:construction_worker: (toolchains): Add workflow for toolchain upgrade

ladislas
ladislas

:construction_worker: (toolchains): Upload build artifacts

ladislas
ladislas

:arrow_up: (toolchain): Upgrade GNU Arm Embedded Toolchain to version 10.3-2021.07

ladislas
ladislas

:twisted_rightwards_arrows: Merge branch 'ladislas/feature/upgrade-gcc-toolchain-new' into develop

  • ladislas/feature/upgrade-gcc-toolchain-new: :arrow_up: (toolchain): Upgrade GNU Arm Embedded Toolchain to version 10.3-2021.07 :construction_worker: (toolchains): Upload build artifacts :construction_worker: (toolchains): Add workflow for toolchain upgrade

commit sha: 7d4d2a08a2429f5ac682fe622c4556b41e77a1a7

push time in 1 week ago
Activity icon
delete

ladislas in osx-cross/homebrew-arm delete branch ladislas/bump/arm-gcc-bin@10

deleted time in 1 week ago
push

ladislas push osx-cross/homebrew-arm

ladislas
ladislas

arm-gcc-bin@10: revision bump

Closes #24.

Signed-off-by: osxCrossTestBot osxCrossTestBot@leka.io

ladislas
ladislas

arm-gcc-bin@10: update 10.3-2021.07_1 bottle.

commit sha: c13e1cd742639a3276849ffc312b0faa905f9e14

push time in 1 week ago
Activity icon
created tag

ladislas in osx-cross/homebrew-arm create tag arm-gcc-bin@10-10.3-2021.07_1

createdAt 1 week ago
Activity icon
published release arm-gcc-bin@10-10.3-2021.07_1

ladislas in osx-cross/homebrew-arm create published release arm-gcc-bin@10-10.3-2021.07_1

createdAt 1 week ago
Activity icon
created branch

ladislas in osx-cross/homebrew-arm create branch ladislas/bump/arm-gcc-bin@10

createdAt 1 week ago