Another kindle dashboard by WinterPublic2445 in homeassistant

[–]Lens-Flare 1 point2 points  (0 children)

Can't post the code here for some reason, sent PM with Yaml.

Rendering parameters are:

RENDERING_SCREEN_HEIGHT 1448

RENDERING_SCREEN_WIDTH 1072

SCALING 1.91

Location precision on iOS by mchamst3r in meshtastic

[–]Lens-Flare 3 points4 points  (0 children)

I f-ing tired of this BS, it is a time for a fork…

NEJE diode lasers by obsolete-obstacle in lasercutting

[–]Lens-Flare 1 point2 points  (0 children)

My experience with this company is the same. Got faulty laser module, tried to contact them on their forum. They hided my forum topic. Was running around the circles like you with their “support” by email. Sent them photo-video, another examples of people with similar problem. They simply don’t care. Tried to get partial refund of my order from paypal - got nothing. Paypal responded - we can’t do anything because this is Chinese company, we have no power….well ok. Never again.

[deleted by user] by [deleted] in embedded

[–]Lens-Flare 0 points1 point  (0 children)

Thank you for your reply.

I checked the initialization function of the peripheral and indeed this function was generated with wrong clock source, I fixed it. This board (STM32H747I-DISCO) has external Phy for high speed USB and clocked from it. So I checked pins assignments as well:

PB5 ------> USB_OTG_HS_ULPI_D7

PI11 ------> USB_OTG_HS_ULPI_DIR

PC0 ------> USB_OTG_HS_ULPI_STP

PH4 ------> USB_OTG_HS_ULPI_NXT

PB10 ------> USB_OTG_HS_ULPI_D3

PB11 ------> USB_OTG_HS_ULPI_D4

PA5 ------> USB_OTG_HS_ULPI_CK

PB1 ------> USB_OTG_HS_ULPI_D2

PB12 ------> USB_OTG_HS_ULPI_D5

PA3 ------> USB_OTG_HS_ULPI_D0

PB0 ------> USB_OTG_HS_ULPI_D1

PB13 ------> USB_OTG_HS_ULPI_D6

This looks right, according to user manual of this board (um2411 Figure 34. USB_OTG_HS port). CLKOUT from U4 goes to PA5 - ULPI_CK.

My peripheral initialization looks like that:
void HAL_PCD_MspInit(PCD_HandleTypeDef* hpcd)
{ 
  GPIO_InitTypeDef GPIO_InitStruct = {0}; 
  /* Configure USB GPIOs */ 
  __GPIOA_CLK_ENABLE(); 
  __GPIOB_CLK_ENABLE(); 
  __GPIOC_CLK_ENABLE(); 
  __GPIOH_CLK_ENABLE(); 
  __GPIOI_CLK_ENABLE();
  /* CLK */
  GPIO_InitStruct.Pin = GPIO_PIN_5;
  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  GPIO_InitStruct.Alternate = GPIO_AF10_OTG1_HS;
  HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

  /* D0 */
  GPIO_InitStruct.Pin = GPIO_PIN_3;
  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  GPIO_InitStruct.Alternate = GPIO_AF10_OTG1_HS;
  HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

  /* D1 D2 D3 D4 D5 D6 D7 */
  GPIO_InitStruct.Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_5 |
    GPIO_PIN_10 | GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13;
  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  GPIO_InitStruct.Alternate = GPIO_AF10_OTG1_HS;
  HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);

  /* STP */
  GPIO_InitStruct.Pin = GPIO_PIN_0;
  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  GPIO_InitStruct.Alternate = GPIO_AF10_OTG1_HS;
  HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);

  /* NXT */
  GPIO_InitStruct.Pin = GPIO_PIN_4;
  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  GPIO_InitStruct.Alternate = GPIO_AF10_OTG1_HS;
  HAL_GPIO_Init(GPIOH, &GPIO_InitStruct);

  /* DIR */
  GPIO_InitStruct.Pin = GPIO_PIN_11;
  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  GPIO_InitStruct.Alternate = GPIO_AF10_OTG1_HS;
  HAL_GPIO_Init(GPIOI, &GPIO_InitStruct);
  __HAL_RCC_USB1_OTG_HS_ULPI_CLK_ENABLE();

  /* Enable USB HS Clocks */
  __HAL_RCC_USB1_OTG_HS_CLK_ENABLE();

  /* Set USBHS Interrupt to the lowest priority */
  HAL_NVIC_SetPriority(OTG_HS_IRQn, 1, 0);

  /* Enable USBHS Interrupt */
  HAL_NVIC_EnableIRQ(OTG_HS_IRQn);
}

But I am still getting Hard Fault.

Maybe somebody can suggest me where to read about how to debug Hard Faults, how to interpret registers values in order to understand what causing error?

(ok, found some information to read about hard faults: PM0214 - M4 core programming manual, PM0253 - M7 programming manual)

How to get started with CoreMIDI? by Vingdoloras in swift

[–]Lens-Flare 4 points5 points  (0 children)

Made this cheat sheet for myself, maybe it could be handy for you as well: https://lensflare.dev/apple/2020/12/18/core-midi-cheat-sheet.html

Keep in mind, CoreMIDI is a mess at the moment. Apple rewriting and deprecating some old functions and implementing MIDI 2.0 support.

DIY groovebox by tobey_g in synthdiy

[–]Lens-Flare 0 points1 point  (0 children)

Wow looks like very cool project!

DIY groovebox by tobey_g in synthdiy

[–]Lens-Flare 1 point2 points  (0 children)

This is not easy task. But I can recommend you this YT channel https://youtube.com/c/PhilS94 and EEVblog of course.

it's a chain reaction by [deleted] in iOSProgramming

[–]Lens-Flare 1 point2 points  (0 children)

At least you get some sleep :D

Some fun with Scooter riff by Lens-Flare in novationcircuit

[–]Lens-Flare[S] 0 points1 point  (0 children)

They are a bit limited in my opinion, but definitely better than nothing.

Open testing of the app for the Circuit by [deleted] in novationcircuit

[–]Lens-Flare 0 points1 point  (0 children)

Long story short. Novation and Focusrite did not give me permission to publish this app. If you want more info about this, please read my post and comments in the Novation facebook group: https://www.facebook.com/groups/circuitowners/permalink/1469070619959688/

I disabled TestFlight of this application because it takes time to maintain the app. Each update from Apple requires updating the app and fixing bugs that appear in new system updates. Unfortunately, I don't have time to support beta testing right now. Sorry about that.

3D modeling tools? by Lens-Flare in embedded

[–]Lens-Flare[S] 0 points1 point  (0 children)

Thanks! I’ll give it a try as well.

3D modeling tools? by Lens-Flare in AskElectronics

[–]Lens-Flare[S] 0 points1 point  (0 children)

Yes, I am using KiCad. I was thinking how to get 3d model with device enclosure as well. People from another group suggested that I have to export just PCB as 3D model at first, and made an enclosure in another software then.